您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
To disable douban jump
// ==UserScript== // @name Disable Douban Jump // @namespace A-SOUL // @version 0.1 // @description To disable douban jump // @author hicarol // @match https://www.douban.com/group/topic/* // @match https://douban.com/group/topic/* // @icon https://img9.doubanio.com/favicon.ico // @grant none // @run-at document-start // @license MIT // ==/UserScript== XMLHttpRequest.prototype.realOpen = XMLHttpRequest.prototype.open; var myOpen = function(method, url, async, user, password) { //do whatever mucking around you want here, e.g. //changing the onload callback to your own version //call original if(url.startsWith("/j/group/check_content_clean")){ return "{\"r\":0}"; } return this.realOpen (method, url, async, user, password); } //ensure all XMLHttpRequests use our custom open method XMLHttpRequest.prototype.open = myOpen ;