mang0
2021-05-20T16:48:40+00:00
NGA自带屏蔽功能,但是屏蔽之后依然会在列表中显示,像下面这样。
[img]https://img.nga.178.com/attachments/mon_202105/30/-7Q2o-jih1K6T1kSfh-2d.jpg[/img]
配合油猴执行两个小脚本,就看不到了,代码如下。
[img]https://img.nga.178.com/attachments/mon_202105/30/-7Q2o-jih1K6T1kSfh-2d.jpg[/img]
配合油猴执行两个小脚本,就看不到了,代码如下。
// ==UserScript==
// @name NGA屏蔽傻逼(列表)
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://bbs.nga.cn/thread.php*
// @icon https://bbs.nga.cn/
// @grant none
// ==/UserScript==
(function() {
'use strict';
//alert("aa");
var box1 = document.getElementsByClassName("userblockcontents");
for(var i=0;i<box1.length;i++){
box1[i].parentNode.parentNode.style.display="none"
}
// Your code here...
})();
// @name NGA屏蔽傻逼(列表)
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://bbs.nga.cn/thread.php*
// @icon https://bbs.nga.cn/
// @grant none
// ==/UserScript==
(function() {
'use strict';
//alert("aa");
var box1 = document.getElementsByClassName("userblockcontents");
for(var i=0;i<box1.length;i++){
box1[i].parentNode.parentNode.style.display="none"
}
// Your code here...
})();
// ==UserScript==
// @name NGA屏蔽傻逼(内容)
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://bbs.nga.cn/read.php*
// @icon https://bbs.nga.cn/
// @grant none
// ==/UserScript==
(function() {
'use strict';
//alert("aa");
var box1 = document.getElementsByClassName("userblockcontents");
for(var i=0;i<box1.length;i++){
box1[i].parentNode.style.display="none"
}
// Your code here...
})();
// @name NGA屏蔽傻逼(内容)
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://bbs.nga.cn/read.php*
// @icon https://bbs.nga.cn/
// @grant none
// ==/UserScript==
(function() {
'use strict';
//alert("aa");
var box1 = document.getElementsByClassName("userblockcontents");
for(var i=0;i<box1.length;i++){
box1[i].parentNode.style.display="none"
}
// Your code here...
})();