Greasy Fork

Greasy Fork is available in English.

智友&zd&52&果核&卡饭&殁漂遥 页面精简--去推广无用信息

try to take over the world!

目前为 2020-12-03 提交的版本,查看 最新版本

// ==UserScript==
// @name         智友&zd&52&果核&卡饭&殁漂遥 页面精简--去推广无用信息
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  try to take over the world!
// @author       You
// @match        http://bbs.zhiyoo.net/forum.php*
// @match        http://bbs.zhiyoo.net/search.php?mod=forum&adv=yes
// @match        https://www.423down.com/
// @match        https://www.52pojie.cn/search.php*
// @match        https://www.ghpym.com/
// @match        https://www.ghpym.com/?btwaf*
// @match        https://bbs.kafan.cn/forum-65-1.html
// @match        https://www.mpyit.com/
// @match        https://www.mpyit.com/?btwaf*
// @grant        none
// ==/UserScript==

(function () {
    'use strict';
    var url = window.location.href;
    if (url == 'https://www.423down.com/') {
        var excerpt = document.getElementsByClassName('excerpt')[0];
        excerpt.children[0].style.display = 'none';
        excerpt.children[1].style.display = 'none';
    } else if (url.indexOf('http://bbs.zhiyoo.net/forum') != -1) {
        document.getElementById('hm_qrcode_main').style.display = 'none';
        document.querySelectorAll('.plc')[1].style.display = 'none';
        document.querySelectorAll('.box ')[4].style.display = 'none';
        document.getElementById('fastpostmessage').value = '感谢您分享的内容!';
    } else if (url.indexOf('http://bbs.zhiyoo.net/search') != -1) {
        var order = document.getElementById('orderby1');
        if (order != null) {
            order.options[1].selected = true;
        }
    }else if (url.indexOf('/www.52pojie.cn/search') != -1) {
    document.getElementById('orderby1').options[1].selected = true;
} else if (url == 'https://www.ghpym.com/' || url.indexOf('://www.ghpym.com/?btwaf') != -1) {
    var se = document.querySelectorAll('section');
    for (var i = 1; i < 4; i++) {
        se[i].style.display = 'none';
    }
    var top = document.querySelectorAll('.sticky-post');
    for (i = 0; i < top.length; i++) {
        top[i].parentNode.parentNode.parentNode.parentNode.style.display = 'none';
    }
} else if (url.indexOf('https://bbs.kafan.cn/forum-65-1.html') != -1) {
    document.querySelector('.comeing_box').style.display = 'none';
    document.querySelectorAll('.bm')[2].style.display = 'none';
    document.getElementById('threadlisttableid').children[0].style.display = 'none';
} else if (url == 'https://www.mpyit.com/' || url.indexOf('www.mpyit.com/?btwaf') != -1) {
    document.getElementById('playBax').style.display = 'none';
    document.getElementById('sidebar').style.display = 'none';
    var post = document.getElementById('post');
    post.style.marginLeft = "15%";
    var ch = post.children;
    for (let i = 2; i < 6; i++) {
        ch[i].style.display = 'none';
    }
}
})();