软件NO1 Ajax Download

软件NO1 下载地址加载,免打开下载地址页面 + 广告移除

目前為 2020-11-16 提交的版本,檢視 最新版本

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

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

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name 			软件NO1 Ajax Download
// @description		软件NO1 下载地址加载,免打开下载地址页面 + 广告移除
// @author			极品小猫
// @version			1.0.2
// @namespace   	https://greasyfork.org/users/3128
// @icon         https://www.rjno1.com/favicon.ico
// @include      https://www.rjno1.com/*
// @license     	GPL version 3
// @run-at			document-idle
//
// @grant			GM_addStyle
// @grant       	GM_xmlhttpRequest
// ==/UserScript==


let u=unsafeWindow, $=u.$, webHost=location.host;

let Loaded=document.querySelector('script[src*="https://www.rjno1.com/wp-content/themes/moban/moban-js/show_ads.js"]').getAttribute('onload');

window.addEventListener('load', function(){
    let adID=Loaded.replace(/rjno1adsjsload=\w+;?/i,'');
    console.log(adID, Loaded);
    eval(
        adID+`rjno1adsjsload = true;
`+adID+`scriptLoaded = true;
`+adID+`checkguishow = false;
`+adID+`rjno1settimeout = true;
`+adID+`=true;
console.log(u.`+adID+`scriptLoaded );
`);
    u.Goog_Osd_UnloadAdBlock=true;
    u.rjno1canrunads = false;
    $('[style="width: 0px; height: 0px; overflow: hidden; visibility: hidden; display: none;"]').hide();
});

$.get($('.post-download-address-button').attr('href'), function (result) {
    let download=$(result).find('.attachment-download-link-wrap');
    $('.single-tags').before(download.css({'border':'3px dotted red'}));
});