Upload.so & Uplod.ws

Quitar elementos innecesarios y evitar la descarga de virus

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

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

(I already have a user script manager, let me install it!)

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.

(I already have a user style manager, let me install it!)

// ==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