Upload.so & Uplod.ws

Quitar elementos innecesarios y evitar la descarga de virus

K instalaci tototo skriptu si budete muset nainstalovat rozšíření jako Tampermonkey, Greasemonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Violentmonkey.

K instalaci tohoto skriptu si budete muset nainstalovat rozšíření jako Tampermonkey nebo Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

K instalaci tohoto skriptu si budete muset nainstalovat manažer uživatelských skriptů.

(Už mám manažer uživatelských skriptů, nechte mě ho nainstalovat!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Už mám manažer uživatelských stylů, nechte mě ho nainstalovat!)

// ==UserScript==
// @name        Upload.so & Uplod.ws
// @namespace   yadoh
// @description Quitar elementos innecesarios y evitar la descarga de virus
// @include     http*://upload.so/*
// @include     http*://uplod.ws/*
// @version     1
// @grant       none
// ==/UserScript==
function addGlobalStyle(css) {
    var head, style;
    head = document.getElementsByTagName('head')[0];
    if (!head) { return; }
    style = document.createElement('style');
    style.type = 'text/css';
    style.innerHTML = css;
    head.appendChild(style);
}
$("#chkIsAdd").click();
//Ocultar partes innecesarias de la página
addGlobalStyle('img, .adsbygoogle, .mainfooter, #downloadBtnClick, #sDLbEiyY{display: none !important;}');
addGlobalStyle('#downloadBtnClickOrignal{ display: inherit !important; margin: auto;}');

//Quitar check y ocultarlo para evitar descargar virus
var chkboxes=document.getElementsByTagName('input')
for (var i=0; i < chkboxes.length; i++) {
  if (chkboxes[i].type=="checkbox") {
    chkboxes[i].checked=false;
  }
}
$("#downloadBtnClick").click();
$("#content").remove();
//Saltar al botón real de descarga
setInterval(click, 0);

function click()
{
 $("#downloadBtnClickOrignal").click();
}

//Descargar enlace real
var TargetLink = $("a:contains('Click here to download')")

if (TargetLink.length)
    window.location.href = TargetLink[0].href