Skip to content

Instantly share code, notes, and snippets.

@yobud
Created April 23, 2013 11:21
Show Gist options
  • Save yobud/5442799 to your computer and use it in GitHub Desktop.
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)
// ==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 <jeremy.hubert@infogroom.fr>
// @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