// ==UserScript== // @name cf隐藏中国某个省的旗帜 // @name:en hider of the flag of a certain province of China in Codeforces // @name:zh-TW cf隐藏中国某个省的旗帜 // @namespace http://userstyles.org // @description 隐藏cf中国某个省的旗帜 // @description:en hiding the flag of a certain province of China in Codeforces // @description:zh-TW 隐藏cf中国某个省的旗帜 // @author TerryWang // @homepage https://www.luogu.com.cn/user/146416 // @include http://codeforces.com/* // @include https://codeforces.com/* // @include http://*.codeforces.com/* // @include https://*.codeforces.com/* // @include http://codeforces.ml/* // @include https://codeforces.ml/* // @include http://*.codeforces.ml/* // @include https://*.codeforces.ml/* // @include http://codeforces.org/* // @include https://codeforces.org/* // @include http://*.codeforces.org/* // @include https://*.codeforces.org/* // @include http://codeforc.es/* // @include https://codeforc.es/* // @include http://*.codeforc.es/* // @include https://*.codeforc.es/* // @run-at document-start // @version 0.0.0.1.0 // @downloadURL none // ==/UserScript== (function() {var css = [ " img[src*=\"tw.png\"] { opacity: .0; filter: hue-rotate(.3turn); }" ].join("\n"); if (typeof GM_addStyle != "undefined") { GM_addStyle(css); } else if (typeof PRO_addStyle != "undefined") { PRO_addStyle(css); } else if (typeof addStyle != "undefined") { addStyle(css); } else { var node = document.createElement("style"); node.type = "text/css"; node.appendChild(document.createTextNode(css)); var heads = document.getElementsByTagName("head"); if (heads.length > 0) { heads[0].appendChild(node); } else { // no head yet, stick it whereever document.documentElement.appendChild(node); } } })();