Created
April 23, 2013 11:21
-
-
Save yobud/5442799 to your computer and use it in GitHub Desktop.
Automagically process to watch video on rock3tvid.com using rock3tvid extension
Tampermonkey script for rock3tvid.com chrome extension (may also work with firefox / greasemoney with maybe some modifications)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Rock3tvid immediate reading | |
// @version 1.0 | |
// @description Automagically process to watch video on rock3tvid.com using rock3tvid extension | |
// @match http://www.rock3tvid.com/watch?v=* | |
// @copyright 2013+, Jérémy Hubert <[email protected]> | |
// @require http://ajax.googleapis.com/ajax/libs/jquery/2.0.0/jquery.min.js | |
// ==/UserScript== | |
$(function() { | |
var clickEvent = document.createEvent('MouseEvents'); | |
clickEvent.initEvent('click', true, true); | |
$('.btn.start')[0].dispatchEvent(clickEvent); | |
setTimeout(function() { | |
$('.debrided-link:first-child')[0].dispatchEvent(clickEvent); | |
setTimeout(function() { window.location.href=$('#watch-btn').attr('href'); }, 1000); | |
}, 100); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment