Avoid the annoyng popup that locks download buttons until you give a Like or +1 on the page. It also skips the pompous "Download Terms" confirmation dialogue window that appears twice before you actually get to the real download buttons.
Versión del día
// ==UserScript==
// @name Hackintosh.zone Unlock Downloads (currently not working)
// @namespace StephenP
// @description Avoid the annoyng popup that locks download buttons until you give a Like or +1 on the page. It also skips the pompous "Download Terms" confirmation dialogue window that appears twice before you actually get to the real download buttons.
// @include http*://www.hackintosh.zone/file/*/*
// @version 2.0
// @grant none
// ==/UserScript==
window.addEventListener('load', function() {
if(window.location.href.endsWith("confirm=1")){
var overlay=document.getElementsByClassName('onp-sl-overlap-box')[0];
overlay.parentNode.removeChild(overlay);
}
else{
var downloadButton=document.getElementsByClassName("ipsButton ipsButton_fullWidth ipsButton_large ipsButton_important")[0];
downloadButton.href=downloadButton.href+"&confirm=1";
}
}, false);