Hackintosh.zone Unlock Downloads

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.

当前为 2017-11-02 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name        Hackintosh.zone Unlock Downloads
// @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);