') + ')', 'gi'); if (regex.test(text)) { found = true; var frag = document.createDocumentFragment(); var parts = text.split(regex); parts.forEach(function(part, i) { if (i % 2 === 0) { frag.appendChild(document.createTextNode(part)); } else { var span = document.createElement('span'); span.className = 'userscript-highlight'; span.textContent = part; frag.appendChild(span); } }); node.parentNode.replaceChild(frag, node); } }); } else if (node.nodeType === 1 && node.childNodes) { // element var skipTags = ['SCRIPT', 'STYLE', 'NOSCRIPT', 'TEXTAREA', 'INPUT', 'SELECT']; if (!skipTags.includes(node.tagName)) { Array.from(node.childNodes).forEach(highlight); } } } highlight(document.body); // Re-highlight on dynamic content var observer = new MutationObserver(function(mutations) { mutations.forEach(function(m) { m.addedNodes.forEach(function(node) { if (node.nodeType === 1 || node.nodeType === 3) highlight(node); }); }); }); observer.observe(document.body, { childList: true, subtree: true }); })(); } } catch(__e) { console.warn('[Userscript:Highlight Search Terms]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + ', 'i'); if (__m === '*' || __re.test(location.href)) { // Strip utm_, fbclid, gclid, etc. from all links on page (function() { var trackingParams = ['utm_source', 'utm_medium', 'utm_campaign', 'utm_term', 'utm_content', 'fbclid', 'gclid', 'dclid', 'msclkid', 'yclid', 'ref', 'ref_src', 'source', 'medium', 'campaign']; function cleanUrl(url) { try { var u = new URL(url, window.location.origin); var changed = false; trackingParams.forEach(function(p) { if (u.searchParams.has(p)) { u.searchParams.delete(p); changed = true; } }); return changed ? u.toString() : url; } catch (e) { return url; } } function cleanLinks() { document.querySelectorAll('a[href]').forEach(function(a) { var clean = cleanUrl(a.href); if (clean !== a.href) a.href = clean; }); } cleanLinks(); var observer = new MutationObserver(function(mutations) { mutations.forEach(function(m) { m.addedNodes.forEach(function(node) { if (node.nodeType === 1) { if (node.tagName === 'A') cleanLinks(); node.querySelectorAll('a[href]').forEach(function(a) { var clean = cleanUrl(a.href); if (clean !== a.href) a.href = clean; }); } }); }); }); observer.observe(document.body, { childList: true, subtree: true }); })(); } } catch(__e) { console.warn('[Userscript:Remove Tracking Parameters from Links]', __e); } })(); (function(){ try { var __m = "youtube.com"; var __re = new RegExp('^' + "youtube\\.com" + ', 'i'); if (__m === '*' || __re.test(location.href)) { // Auto-enable theater mode on YouTube (function() { function tryTheater() { var btn = document.querySelector('button[aria-label="Theater mode"], ytd-player #player button[title="Theater mode"]'); if (btn && !btn.classList.contains('activated')) { btn.click(); } } // Try immediately tryTheater(); // Try after navigation (SPA) var lastUrl = location.href; setInterval(function() { if (location.href !== lastUrl) { lastUrl = location.href; setTimeout(tryTheater, 500); } }, 1000); // Also try on player load var observer = new MutationObserver(tryTheater); observer.observe(document.body, { childList: true, subtree: true }); })(); } } catch(__e) { console.warn('[Userscript:YouTube Theater Mode Default]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + ', 'i'); if (__m === '*' || __re.test(location.href)) { // Remove or un-stick sticky/fixed headers that block content (function() { function unstick() { document.querySelectorAll('header, nav, [role="banner"], .header, .navbar, .sticky, .fixed-top, [style*="position: fixed"], [style*="position:sticky"]').forEach(function(el) { if (el.style.position === 'fixed' || el.style.position === 'sticky' || getComputedStyle(el).position === 'fixed' || getComputedStyle(el).position === 'sticky') { el.style.position = 'static'; el.style.top = 'auto'; el.style.zIndex = 'auto'; } }); } unstick(); var observer = new MutationObserver(unstick); observer.observe(document.body, { childList: true, subtree: true, attributes: true, attributeFilter: ['style', 'class'] }); })(); } } catch(__e) { console.warn('[Userscript:Kill Sticky Headers]', __e); } })(); })(); Commands · primaeval/script.tvguide.fullscreen Wiki · GitHub
Skip to content
primaeval edited this page Jul 18, 2017 · 2 revisions

To get the most out of TV Guide Fullscreen you really need a good remote with lots of buttons although you can probably get a long way with a three button mouse. I use one of these Keyboard and Mouse IR Remotes.

Almost all the keyboard commands can be customized with the help of "Settings \ Lab1 \ Action Editor" and the Kodi "Keymap Editor" addon.

Default Keyboard Commands

*commands.txt

EPG Window
- exit (escape, back if not playing or Exit On Back Setting)
- back to tv window (back if playing)
- movement (up,down,left,right,page up, page down)
- play channel (select,ok,enter)
- main menu (c, context)
- channel listings view (1)
- programs on now view (2)
- programs on next view (3)
- search programs (4)
- reminders list (5)
- autoplays (6)
- Extended Info (i,info)
- delete unwanted IMDB/TVDB image (ACTION_DELETE_ITEM)
- categories menu (m, menu)
- Choose Stream (play)
Main Menu
- exit to epg (esc, back)
- add channels to categories (c, context)
TV Window
- back to epg (back, escape)
- show osd (info, i)
- show last channel (left)
- show Now menu (up)
- show quick epg (down)
- change to next/prev channel (page up, page down)
- change to last channel (0)
- Fullscreen mode for normal kodi osd (right)
- main menu (c, context)
OSD Window
- back to epg (back, escape)
- close osd window (info,i)
- next/prev channel (up,down)
- next/prev program (left,right)
- change channel (ok, select, enter)
- change to next/prev channel (page up, page down)
- change to last channel (0)
- main menu (c, context)
Quick EPG Window
- close (esc, back, info)
- next/prev channel (up,down)
- next/prev program (left,right)
- change channel (ok, select, enter)
- change to next/prev channel (page up, page down)
- change to last channel (0)
- main menu (c, context)
Last Channel Window
- back to epg (back, escape)
- close osd window (info,i, left, right)
- change channel (ok, select, enter)
- change to last channel (0)
- main menu (c, context)
Now Window
- Next menu (right)
- Listing (left)
Next Window
- Now menu (left)
- Menu (right)
Listing Window
- Menu (left,select)

Clone this wiki locally