这是用来去除开源中国乱弹标签的小功能,暂时不完善。
当前为
// ==UserScript==
// @name 去开源中国用户标签
// @namespace http://tampermonkey.net/
// @version 0.1
// @description 这是用来去除开源中国乱弹标签的小功能,暂时不完善。
// @author MYL
// @match https://www.oschina.net/**
// @grant none
// ==/UserScript==
(function() {
'use strict';
// Your code here...
console.log("开始执行去标签脚本");
var list=document.getElementsByClassName("__user");
for(var i=0; i<list.length; i++){
// console.log(list[i].text);
var item = list[i].parentNode.getElementsByTagName("span")
for(var j=0; j<item.length; j++){
console.log(list[i].text + "标签长度" + item.length + "获取到了标签:" + item[j]);
item[j].remove();
--j;
}
}
console.log("结束执行去标签脚本");
})();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址