//
// ==UserScript==
// @name oxyshare Premium Downloader
// @namespace
// @description Bypasses the oxyshare download time delay, and downloads the file immediately. Works both with javascript enabled or disabled!
// @author Edited By Menan Vadivelpillai(I don't know the real authors name, i edited it)
// @include http://www.oxyshare.com/*
// ==/UserScript==
//
var firstre = new RegExp;
//firstre = /^http\:\/\/www\.oxyshare\.com\/get\/[^a-z]{32}\//i;
firstre = /^http\:\/\/www\.oxyshare\.com\/get\//i;
if (location.href.match(firstre)) {
if (!document.body.parentNode.innerHTML.indexOf("/got/")) {
return;
} else {
(function() {
//GM_log("Rapidshare Quick DL Loaded");
//First, get all INPUT elements that say 'Free' on them
hiddenbuttons = document.evaluate("//input[@value='Fast and Extreme']", document, null,7, null);
//Need to click "Free", so lets grab it
hiddenbutton = freebuttons.snapshotItem(0);
if (hiddenbutton.wrappedJSObject) {
hiddenbutton = hiddenbutton.wrappedJSObject; //Check for XPCNativeWrapper, and unwrap if req.
}
hiddenbutton.click();
})();
}
}
var dlre = new RegExp;
dlre = /^http\:\/\/www\.oxyshare\.com\/got\//i;
if (location.href.match(dlre)) {
if (!document.body.parentNode.innerHTML.indexOf("/dld/")) {
return;
} else {
var str2 = document.body.parentNode.innerHTML.indexOf("/dld/");
str2 = document.body.parentNode.innerHTML.substr(str2);
str2 = str2.split('"')[0];
// add table
var sbox2 = document.createElement("div");
sbox2.setAttribute("id", "hackeddiv");
sbox2.innerHTML = '<table style="width:98%;text-align:center;border:1px dotted black;">' +
'<tr><td style="text-align:center;valign:center;">' +
'<b>Download Will Start Automatically </b><img src="http://menanonline.info/tiny_templates/period_ani.gif" /><br />' +
'</td></tr></table><br />'+
'<iframe FRAMEBORDER="no" width="0" height= "0" src="' + str2 + '"/>';
document.getElementById('counter').parentNode.insertBefore(sbox2, document.getElementById('counter').parentNode.firstChild);
}
}
//};