您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Adds site's colors to the mobile skin of FANDOM
- // ==UserScript==
- // @name ColoredMercury
- // @namespace http://tampermonkey.net/
- // @version 1.11
- // @description Adds site's colors to the mobile skin of FANDOM
- // @author Unai Mengual
- // @match http://*.wikia.com/*
- // @grant none
- // @require https://code.jquery.com/jquery-2.1.4.min.js
- // ==/UserScript==
- jQuery(function () {
- 'use strict';
- if (!jQuery('body').hasClass('mobile-wiki')) {
- return;
- }
- jQuery.get('/__load/-/only=scripts&skin=oasis/startup', function (startup) {
- var color = startup.replace(/[\s\S]*color-buttons":"(#[A-Fa-f0-9]{6}|[A-Fa-f0-9]{3})[\s\S]*/, '$1');
- jQuery('.wiki-page-header:not(.has-hero-image), .portable-infobox .pi-secondary-background')
- .css('background', color);
- jQuery('.edit-section .icon').not('.wiki-page-header__wrapper .edit-section .icon')
- .css('fill', color + '!important');
- });
- });
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址