您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
F**k twitter!
// ==UserScript== // @name Fck Twitter // @license MIT // @namespace zam157.fck-twit // @version 0.1.1 // @run-at document-start // @description F**k twitter! // @author Zam157 // @homepageURL https://github.com/zam157/tamper/tree/master/scripts/fck-twit // @supportURL https://github.com/zam157/tamper/tree/master/scripts/fck-twit // @match https://twitter.com/** // ==/UserScript== (() => { function injectXHRResponse(thisArg, prop = 'response') { const getter = Object.getOwnPropertyDescriptor(XMLHttpRequest.prototype, prop).get Object.defineProperty(thisArg, prop, { get: () => { const result = getter.call(thisArg) if (!result) return const json = JSON.parse(result) const instructions = json.data.home.home_timeline_urt.instructions const _instructions = instructions.map((instruction) => { if (instruction.type !== 'TimelineAddEntries') return instruction instruction.entries = instruction.entries.filter(entry => !entry.entryId.includes('promoted-tweet')) return instruction }) json.data.home.home_timeline_urt.instructions = _instructions const _result = JSON.stringify(json) return _result }, }) } XMLHttpRequest.prototype.open = new Proxy(XMLHttpRequest.prototype.open, { apply(target, thisArg, args) { if (/HomeTimeline|HomeLatestTimeline/.test(args[1])) { injectXHRResponse(thisArg, 'response') injectXHRResponse(thisArg, 'responseText') } return target.apply(thisArg, args) }, }) })()
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址