Greasy Fork

Greasy Fork is available in English.

block 蔡徐坤

try to take over the world!

目前为 2019-04-12 提交的版本,查看 最新版本

// ==UserScript==
// @name         block 蔡徐坤
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  try to take over the world!
// @author       heroin
// @match        https://www.gamersky.com/
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    var aList = document.getElementsByTagName("a");
    var i = 0;
    for(i; i<aList.length;i++){
        var title = aList[i].title;
        if(title!=''){

            if(title.indexOf('蔡徐坤') > -1){
                //console.log(aList[i].title);
                aList[i].remove();
            }
        }
    }

    // Your code here...
})();