小黑盒

小黑盒跳转社区和黑暗模式

目前为 2023-05-19 提交的版本。查看 最新版本

// ==UserScript==
// @name         小黑盒
// @namespace    http://tampermonkey.net/
// @version      1.1
// @description  小黑盒跳转社区和黑暗模式
// @match        *.xiaoheihe.cn/*
// @license      MIT
// ==/UserScript==

(function() {
    'use strict';

    // Your code here...
    var button1 = document.createElement('button');
    button1.innerHTML = 'PC游戏--';
    button1.onclick = function() {
        window.location.href = 'https://www.xiaoheihe.cn/community/1/list/';
    };
    document.body.appendChild(button1);

    var button2 = document.createElement('button');
    button2.innerHTML = '盒友杂谈--';
    button2.onclick = function() {
        window.location.href = 'https://www.xiaoheihe.cn/community/7214/list/';
    };
    document.body.appendChild(button2);

    var button3 = document.createElement('button');
    button3.innerHTML = '沙雕日常--';
    button3.onclick = function() {
        window.location.href = 'https://www.xiaoheihe.cn/community/73907/list/';
    };
    document.body.appendChild(button3);

    var button4 = document.createElement('button');
    button4.innerHTML = 'roll区--';
    button4.onclick = function() {
        window.location.href = 'https://www.xiaoheihe.cn/community/486554/list/';
    };
    document.body.appendChild(button4);

    var button5 = document.createElement('button');
    button5.innerHTML = 'roll专区--';
    button5.onclick = function() {
        window.location.href = 'https://www.xiaoheihe.cn/community/54539/list/';
    };
    document.body.appendChild(button5);

    var button6 = document.createElement('button');
    button6.innerHTML = '情投一盒--';
    button6.onclick = function() {
        window.location.href = 'https://www.xiaoheihe.cn/community/416158/list/';
    };
    document.body.appendChild(button6);

    var button7 = document.createElement('button');
    button7.innerHTML = 'gal游戏综合区--';
    button7.onclick = function() {
        window.location.href = 'https://www.xiaoheihe.cn/community/53182/list/';
    };
    document.body.appendChild(button7);

    var button8 = document.createElement('button');
    button8.innerHTML = '主机游戏--';
    button8.onclick = function() {
        window.location.href = 'https://www.xiaoheihe.cn/community/23563/list/';
    };
     document.body.appendChild(button8);

    var button9 = document.createElement('button');
    button9.innerHTML = '数码硬件--';
    button9.onclick = function() {
        window.location.href = 'https://www.xiaoheihe.cn/community/18745/list/';
    };
     document.body.appendChild(button9);

    var button10 = document.createElement('button');
    button10.innerHTML = 'switch--';
    button10.onclick = function() {
        window.location.href = 'https://www.xiaoheihe.cn/community/66738/list/';
    };
     document.body.appendChild(button10);

    var button = document.createElement('button');
    button.innerHTML = '回到顶部';
    button.onclick = function() {
        window.scrollTo(0, 0);
    };
    document.body.appendChild(button);




 var images = document.getElementsByTagName("img");
    for (var i = 0; i < images.length; i++) {
        images[i].style.filter = "invert(100%)";
    }
    document.body.style.filter = "invert(100%)";


    function isThumbnail(element) {
        var width = element.offsetWidth;
        var height = element.offsetHeight;
        if (width < 100 || height < 100) {
            return true;
        }
        return false;
    }


})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址