// ==UserScript== // @name SimpleZK8 // @namespace http://tampermonkey.net/ // @version 1.0 // @description 屏蔽不必要的元素,优化页面浏览体验。 // @author StayExploring // @match http://www.zuanke8.com/* // @grant none // @license MIT // @icon none // @downloadURL none // ==/UserScript== (function() { // 隐藏 #nv 元素 var nvElement = document.getElementById('nv'); if (nvElement) { nvElement.style.display = 'none'; console.log('#nv 元素已隐藏。'); } // 隐藏 logo 的
元素及其内容 var hmElement = document.querySelector('td.plc.plm'); if (hmElement) { hmElement.style.display = 'none'; console.log('今日热门帖子推荐的 | 元素已隐藏。');
}
// 隐藏所有头像元素
var avatarElements = document.querySelectorAll('.avatar');
avatarElements.forEach(function(avatarElement) {
avatarElement.style.display = 'none';
console.log('头像元素已隐藏。');
});
// 隐藏 元素
var bmElement = document.querySelector('div.bm.bml.pbn');
if (bmElement) {
bmElement.style.display = 'none';
console.log(' 元素已隐藏。');
}
// 隐藏 元素
var stickThreadElement = document.getElementById('stickthread_8268000');
if (stickThreadElement) {
stickThreadElement.style.display = 'none';
console.log(' 元素已隐藏。');
}
// 隐藏 元素
var stickThread8831116Element = document.getElementById('stickthread_8831116');
if (stickThread8831116Element) {
stickThread8831116Element.style.display = 'none';
console.log(' 元素已隐藏。');
}
})();
|