Greasy Fork

Greasy Fork is available in English.

我愛蘋果日報

Only for Academic Research

目前为 2019-06-13 提交的版本,查看 最新版本

// ==UserScript==
// @name         我愛蘋果日報
// @namespace    http://greasyfork.icu/users/244830
// @version      1.0
// @description  Only for Academic Research
// @icon         https://img.appledaily.com.tw/appledaily/pinsite/64x64.ico
// @match        *://tw*.appledaily.com/*
// @run-at       document-start
// @grant        none
// ==/UserScript==

var content = "";
var xhr = new XMLHttpRequest();
xhr.onreadystatechange = function() {
    if (xhr.readyState === XMLHttpRequest.DONE && xhr.status === 200) {
        content = this.responseText.replace("switch(e)", "switch('ad')").replace(/3000/g, "30000000000000000");
    }
}
xhr.open("GET", document.location.href, false);
xhr.send();

document.open();
console.log(content);
document.write(content);
document.close();