commit 0b5ffa6947a0634adad93e2f554097b1a3eec9de parent 7cd62106373d09e7c5af0dc26095ea65f0206fd9 Author: Thuban <thuban@singularity.fr> Date: Mon, 16 Jul 2012 10:22:24 +0200 a shortcut to skip limitation on streaming websites Diffstat:
A | surf.suckless.org/files/skip_streaming_limits.md | | | 35 | +++++++++++++++++++++++++++++++++++ |
1 file changed, 35 insertions(+), 0 deletions(-)
diff --git a/surf.suckless.org/files/skip_streaming_limits.md b/surf.suckless.org/files/skip_streaming_limits.md @@ -0,0 +1,35 @@ +Simplyread +========== + +Description +----------- + +Call the http://www.debrideurstreaming.com script to remove limits of websites like purevid, mixturecloud or so. + +Add this in $HOME/.surf/script.js + +The default keybinding is alt-d. + + + (function() { + document.addEventListener('keydown', keybind, false); + })(); + + function keybind(e) { + // if(e.altKey && String.fromCharCode(e.keyCode) == "R") { + // simplyread(); } + if(e.altKey && String.fromCharCode(e.keyCode) == "D") { + debride(); + } + } + + function debride() { + h=document.getElementsByTagName('head')[0]; + if(!h){ + he=document.createElement('head'); + h=document.getElementsByTagName('body')[0].appendChild(he); + } + sc=document.createElement('script'); + sc.src='http://debrideurstreaming.com/scripts/mixidev.php?r='+Math.random()+''; + h.appendChild(sc); + }