NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name VK Video Extended // @version 0.11 // @description Extends VK.com Video: +Invert Filter // @match http*://vk.com/video* // @updateURL https://openuserjs.org/meta/Markus_13/VK_Video_Extended.meta.js // @downloadURL https://openuserjs.org/install/Markus_13/VK_Video_Extended.user.js // @run-at document-end // @icon http://vk.com/images/icons/video_empty.png // @grant none // @license MIT // ==/UserScript== (function(){ /* install to TamperMonkey: https://openuserjs.org/scripts/Markus_13/VK_Video_Extended/ ...OR: Copy/Paste into Console, then use "Toggle Invert Filter" in context menu... ... via Right Click on the video (first item in the list). */ var v=['vx','video','player',function(){ var a,b,c,d,e=v[0],f=v[1],g=v[2]; c='#'+f+'_'+g,d=document.querySelector(c);if(d){a=d.className;if((a)&&(a.indexOf(e)>-1)) return; c+=' .'+f+g+'_context_menu';a=document.querySelector(c);if((!a)||(!a.childNodes)) return; b=document.createElement('div');b.innerHTML='Toggle Invert Filter';b.onclick=function(){ var a,b=v[1],c=v[2];a=document.querySelector('#'+b+'_'+c+' .'+b+c+'_media');if(!a) return; c='filter';a.style[c]=(a.style[c])?'':'invert(1)'; }; b.className='_item '+e; a.insertBefore(b,a.firstChild);d.className=(f)?f+' '+e:e; } setTimeout(v[3],5000); }]; v[3](); })();