Greasy Fork

Greasy Fork is available in English.

动漫花园魔改

动漫花园暗色主题,并且屏蔽了广告

目前为 2023-09-05 提交的版本,查看 最新版本

// ==UserScript==
// @name         动漫花园魔改
// @namespace    http://greasyfork.icu/zh-CN/scripts/474065
// @version      1.1.0
// @license      MIT
// @description  动漫花园暗色主题,并且屏蔽了广告
// @author       kasuie
// @include     http://share.dmhy.org/*
// @include     https://share.dmhy.org/*
// @include     https://dmhy.org/*
// @include     https://dmhy.anoneko.com/*
// @include     https://www.dmhy.org/*
// @resource css https://cdn.jsdelivr.net/gh/kasuie/[email protected]/web-dmhy/index.min.css
// @icon         https://www.google.com/s2/favicons?sz=64&domain=dmhy.org
// @run-at       document-start
// @grant        GM_addStyle
// @grant        GM_getResourceText
// ==/UserScript==
(function() {
    'use strict';
    if (typeof GM_addStyle != "undefined" && typeof GM_getResourceText != "undefined") {
        GM_addStyle(GM_getResourceText("css"));
    } else {
        var linkElement = document.createElement('link');
        linkElement.rel = 'stylesheet';
        linkElement.type = 'text/css';
        linkElement.href = 'https://cdn.jsdelivr.net/gh/kasuie/[email protected]/web-dmhy/index.css';
        var head = document.head || document.getElementsByTagName('head')[0];
        head.insertBefore(linkElement, head.firstChild);
    }
})();