屏蔽腾讯搜狐号桌面网页右侧推荐/热门精选的方法
=== 2022.08.07更新 ===
一种简单的方法(无需油猴插件):安装AdGuard插件,在右边栏推荐或广告处右击选择拦截元素,之后可自由选择要屏蔽拦截的内容范围。
=== 以下为原文(需要安装油猴插件) ===
目前写得还比较繁琐(而且可能需要刷新一下网页等几秒),欢迎提出修改建议。
1.腾讯
// ==UserScript==
// @name 纯净腾讯新闻资讯页面
// @namespace http://tampermonkey.net/
// @version 0.1
// @description
// @author d
// @match *://new.qq.com/*
// @grant none
// @require https://cdn.bootcss.com/jquery/3.4.1/jquery.min.js
// ==/UserScript==
(function() { 'use strict'; // Your code here... //已登陆 $('#RIGHT').remove() setTimeout(function(){ $('#RIGHT').remove() ; }, 1000); setTimeout(function(){ $('#RIGHT').remove() ; }, 3000); setTimeout(function(){ $('#RIGHT').remove() ; }, 5000); setTimeout(function(){ //顶部信息屏蔽 $('#RIGHT').remove() ; }, 8000); })();
2.搜狐
// ==UserScript==
// @name 纯净搜狐资讯页面
// @namespace http://tampermonkey.net/
// @version 0.1
// @description
// @author d
// @match *://www.sohu.com/*
// @grant none
// @require https://cdn.bootcss.com/jquery/3.4.1/jquery.min.js
// ==/UserScript==
(function() {
'use strict'; // Your code here... //已登陆 $('#right-side-bar').remove() setTimeout(function(){ $('#right-side-bar').remove() ; }, 1000); setTimeout(function(){ $('#right-side-bar').remove() ; }, 3000); setTimeout(function(){ $('#right-side-bar').remove() ; }, 5000); setTimeout(function(){ //顶部信息屏蔽 $('#right-side-bar').remove() ; }, 8000); })();
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 10年+ .NET Coder 心语 ── 封装的思维:从隐藏、稳定开始理解其本质意义
· 地球OL攻略 —— 某应届生求职总结
· 提示词工程——AI应用必不可少的技术
· Open-Sora 2.0 重磅开源!
· 周边上新:园子的第一款马克杯温暖上架