马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
扩展需要在浏览器扩展商店上安装。
然后,新建一个脚本:
输入:
// ==UserScript==
// @name Pygame 官方文档优化:不显示 Pygame Book 广告
// @namespace https://github.com/dddddgz
// @version 1.0
// @description 移除影响体验的 Pygame 新书广告
// @author 歌者文明清理员
// @match https://www.pygame.org/docs/*
// @icon https://www.pygame.org/favicon.ico
// @grant none
// ==/UserScript==
(function() {
'use strict';
function removeAd() {
let ad = document.getElementsByTagName("aside")[0];
ad.remove();
document.title += "(Filtered by Pygame Docs Script)";
}
setTimeout(removeAd, 400);
})();
现在,看 https://www.pygame.org/docs,广告已经被移除:
|