软件NO1 Ajax Download

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

// ==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'}));
});