您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Remove ads and white spaces.
当前为
// ==UserScript== // @name CtgoFx // @author Itsuki // @version 0.11 // @match https://*.chatango.com/* // @description Remove ads and white spaces. // @license WTFPL // @namespace https://greasyfork.org/en/users/6316-itsuki // @homepageURL https://greasyfork.org/en/scripts/6004-ctgofx // @grant GM_addStyle // @grant GM_getResourceText // @resource CSS https://userstyles.world/api/style/4560.user.css // ==/UserScript== // Load style sheet const cssSrc = GM_getResourceText("CSS"); GM_addStyle(cssSrc); function fcol() { const cols = document.getElementsByTagName("col"); if (cols.length > 1) { cols[1].style.display = "none"; } const colGroups = document.getElementsByTagName("colgroup"); if (colGroups.length > 0) { colGroups[0].style.display = "none"; } const embeds = document.getElementsByTagName("embed"); for (let i = 0; i < embeds.length; i++) { embeds[i].style.height = "100%"; embeds[i].style.width = "100%"; } } try { fcol(); } catch (err) { console.log(err); }