Guest User

myvideo.ge bookmarklet 2

a guest
Dec 13th, 2025
253
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JavaScript 1.73 KB | Source Code | 0 0
  1. javascript:(function() { if (document.location.href !== 'https://tv.myvideo.ge/') { alert('Navigate to https://tv.myvideo.ge to use this bookmarklet'); return; } let c = document.createElement('div'); c.style.display = 'none'; c.style.position = 'fixed'; c.style.right = '0'; c.style.top = '0'; c.style.margin = '.5em'; c.style.gap = '.125em'; c.style.fontSize = '4em'; c.style.color = 'rgb(192, 192, 192)'; let ct = document.createElement('div'); ct.style.display = 'none'; ct.style.padding = '.25em'; ct.style.backgroundColor = 'rgb(26, 26, 26)'; let a = document.querySelectorAll('.chanDetails'); let l = a.length; ct.append(a[0].textContent); c.append(ct); let cn = document.createElement('div'); cn.style.padding = '.25em'; cn.style.backgroundColor = 'rgb(26, 26, 26)'; cn.textContent = '1'; c.append(cn); document.querySelector('.app-root').append(c); let b = 1; let p = 1; let i = 1; let n = 0; let d = 0; let t = null; addEventListener('keydown', function(ev) { let f = document.activeElement; if (f.tagName === 'INPUT' && f.type === 'text') return; let u = ev.key.charCodeAt(0); if (u < 48 || u > 57) return; clearTimeout(t); ct.style.display = 'none'; if (!d) { c.style.display = 'inline-flex'; d = 1; } let k = Number(ev.key); if (n) { cn.textContent = i = n * 10 + k; n = 0; } else if (k) { cn.textContent = i = n = k; } else { cn.textContent = i = p; n = 0; } t = setTimeout(function() { if (b !== i) { if (i < l + 1) { a[i - 1].parentElement.click(); p = b; b = i; ct.textContent = a[i - 1].textContent; } else { cn.textContent = b; } } if (k && b < 10) { n = 0; } a[b - 1].parentElement.scrollIntoView(); ct.style.removeProperty('display'); t = setTimeout(function() { ct.style.display = 'none'; c.style.display = 'none'; d = 0; }, 5000); }, 3000); }); })();
Advertisement
Add Comment
Please, Sign In to add comment