解除各种网页限制。网页列表,请查看源代码。
当前为
// ==UserScript==
// @namespace ATGT
// @name remove page limit
// @name:zh-CN 解除网页限制
// @description Remove various page limit, check the code for the page list.
// quora.com: Remove login page
// 360doc.com: Remove copy limit
// @description:zh-CN 解除各种网页限制。网页列表,请查看源代码。
// @version 1.0.1
// @include http*://*quora.com/*
// @include http*://*360doc.com/*
// @run-at document-end
// ==/UserScript==
console.log("!!!!!!!!!!!!!!!!!!!!!unlock-page!!!!!!!!!!!!!!!!!!!!!!!!");
(function () {
function quoraHandler() {
console.log(new Date().toLocaleString(), " ", arguments.callee.name);
for (var d of document.body.childNodes) {
if (/signup_wall_wrapper$/.test(d.id)) {
d.remove();
break;
}
}
document.body.style.overflow = "visible";
}
function _360docHandler() {
console.log(new Date().toLocaleString(), " ", arguments.callee.name);
document.body.onclick = document.body.oncontextmenu = document.body.oncopy = document.body.onmouseup = null;
}
var pageHandlers = [
/* !!! Need to add the global match to @include also */
[/quora\.com/, quoraHandler],
[/360doc\.com/, _360docHandler, 500]
];
for (var ph of pageHandlers) {
if (ph[0].test(location.href)) {
console.log("handle ", ph[0]);
setTimeout(ph[1], ph[2] ? ph[2] : 0);
}
}
})();
console.log("!!!!!!!!!!!!!!!!!!!!!/unlock-page!!!!!!!!!!!!!!!!!!!!!!!!");