// ==UserScript== // @name 去除广告模块 // @name:zh 去除广告模块 // @namespace Violentmonkey Scripts // @match *://*.weibo.com/* // @include *://weibo.com/* // @exclude *://weibo.com/tv* // @grant none // @version 2.1 // @author fbz // @description 过滤掉响应体中未关注的用户(不包括快转) // @description:zh 过滤掉响应体中未关注的用户(不包括快转) // @require https://unpkg.com/ajax-hook@2.0.3/dist/ajaxhook.min.js // @downloadURL none // ==/UserScript== (function(){ ah.proxy({ //请求成功后进入 onResponse: (response, handler) => { const url = response.config.url let res = response.response if (url.includes('friendstimeline') && res){ res = JSON.parse(res) res.statuses = res.statuses.filter(item => item.user.following || item.screen_name_suffix_new) response.response = JSON.stringify(res) } handler.next(response) } }) })()