Print Twitch Video Bookmarklet

Print Twitch Video Bookmarklet, based off of the same for Youtube from http://labnol.org/?p=28217

Source (gist.github.com)


Download Bookmarklet:


View Bookmarklet Code:

Bookmarklet Source Code:

javascript%3A%20%28function%28%29%7Bvar%20e%3D%7Beval%3A%27%22%21function%28%29%7Ba%3Ddocument.querySelector%28%5C%27meta%5Bproperty%3D%5C%5C%22og%3Avideo%3Aduration%5C%5C%22%5C%27%29.content%2Ca%7C%7C%28alert%28%5C%5C%22Sorry%20we%20cannot%20process%20this%20Twitch%20video.%20Could%20you%20please%20try%20another%20one%5C%5C%22%29%2Cexit%28%29%29%3Bvar%20e%3D%5C%5C%22https%3A//vod-storyboards.twitch.tv/%5C%5C%22+/vods%5C%5C%5C%5C/%28.*%3F%29%5C%5C%5C%5C//.exec%28document.querySelector%28%5C%27meta%5Bproperty%3D%5C%5C%22og%3Aimage%5C%5C%22%5C%27%29.content%29%5B1%5D+%5C%5C%22/storyboards/%5C%5C%22+/%5C%5C%5C%5C/videos%5C%5C%5C%5C/%28.*%3F%29%24/.exec%28document.querySelector%28%5C%27meta%5Bproperty%3D%5C%5C%22og%3Aurl%5C%5C%22%5C%27%29.content%29%5B1%5D+%5C%5C%22-high-%5C%5C%22%2Co%3DMath.min%28Math.ceil%28document.querySelector%28%5C%27meta%5Bproperty%3D%5C%5C%22og%3Avideo%3Aduration%5C%5C%22%5C%27%29.content/5e3%29%2C4%29%2Ct%3D%5C%5C%22%5C%5C%22%3Bfor%28i%3D0%3Bo%3Ei%3Bi++%29t+%3D%5C%5C%22%3CPICTURE%3D%5C%27%5C%5C%22+e+i+%5C%5C%22.jpg%5C%27%3E%3Cbr/%3E%5C%5C%22%3Bvar%20r%3Ddocument.querySelector%28%5C%27meta%5Bproperty%3D%5C%5C%22og%3Atitle%5C%5C%22%5C%27%29.content%3Bmsg%3D%5C%5C%22%3Cbody%20style%3D%5C%27background-color%3A%23444%3Bcolor%3A%23eee%3Bmargin%3A20px%20auto%3Bwidth%3A90%25%3Btext-align%3Acenter%5C%27%3E%3Ch2%3ETITLE%3C/h2%3E%3Cdiv%3EIMAGES%3C/div%3E%3Cbr/%3E%3Cem%3EPrinted%20using%20the%20Twitch%20bookmarklet.%3Cbr/%3E%3Ca%20href%3D%5C%27http%3A//labnol.org/%3Fp%3D28217%5C%27%20style%3D%5C%27text-decoration%3Anone%3Bcolor%3A%23fff%3Bfont-style%3Abold%5C%27%3EBased%20off%20of%20bookmarklet%20from%20labnol.%3C/a%3E%3C/em%3E%3C/body%3E%5C%5C%22%2Cmsg%3Dmsg.replace%28%5C%5C%22TITLE%5C%5C%22%2Cr%29.replace%28%5C%5C%22IMAGES%5C%5C%22%2Ct%29.replace%28/PICTURE/g%2C%5C%5C%22img%20src%5C%5C%22%29%3Bvar%20n%3Dwindow.open%28%29%3Bn.document.open%28%29%2Cn.document.write%28msg%29%2Cn.document.close%28%29%7D%28%29%3B%22%27%7D%2Ct%3D%210%3Bif%28%22object%22%3D%3Dtypeof%20this.artoo%26%26%28artoo.settings.reload%7C%7C%28artoo.log.verbose%28%22artoo%20already%20exists%20within%20this%20page.%20No%20need%20to%20inject%20him%20again.%22%29%2Cartoo.loadSettings%28e%29%2Cartoo.exec%28%29%2Ct%3D%211%29%29%2Ct%29%7Bvar%20o%3Ddocument.getElementsByTagName%28%22body%22%29%5B0%5D%3Bo%7C%7C%28o%3Ddocument.createElement%28%22body%22%29%2Cdocument.firstChild.appendChild%28o%29%29%3Bvar%20r%3Ddocument.createElement%28%22script%22%29%3Bconsole.log%28%22artoo.js%20is%20loading...%22%29%2Cr.src%3D%22//medialab.github.io/artoo/public/dist/artoo-latest.min.js%22%2Cr.type%3D%22text/javascript%22%2Cr.id%3D%22artoo_injected_script%22%2Cr.setAttribute%28%22settings%22%2CJSON.stringify%28e%29%29%2Co.appendChild%28r%29%7D%7D%29.call%28this%29%3B


Rate it:


Tags:

Comments

Comments so far. Add yours.