您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
themes alis.io
- // ==UserScript==
- // @name Background themes
- // @namespace http://tampermonkey.net/
- // @version 0.1
- // @description themes alis.io
- // @author XaVier
- // @match *://alis.io/*
- // @grant none
- // ==/UserScript==
- (function() {
- 'use strict';
- $("#maincard #ad_main iframe,#maincard #ad_main script")[0].remove();
- var $html = '<input style="position: absolute;'+
- 'left: 303px;'+
- 'bottom: 303px;'+
- 'border: 0;'+
- 'padding: 0;'+
- 'width: 20px;" id="hx-chnl" type="color" value="">'+
- '<input id="hx-chnl2" class="uk-input" placeholder="NameColorGame" maxlength="150">'+
- '';
- $("#maincard #ad_main").html($html);
- var input = document.getElementById("hx-chnl");
- input.value = localStorage.getItem("cardcolorback") || "";
- var input2 = document.getElementById("hx-chnl2");
- input2.value = localStorage.getItem("cardcolorback2") || "";
- $("#hx-chnl, #hx-chnl2").on("input", function() {
- localStorage.setItem("cardcolorback", input.value);
- localStorage.setItem("cardcolorback2", input2.value);
- });
- $("#hx-chnl").on("input", function() {
- var regIs = $(this).val();
- $("html").css("background", regIs);
- $("#hx-chnl2").val(regIs);
- });
- $("#hx-chnl2").on("input", function() {
- var regI = $(this).val();
- $("html").css("background", regI);
- $("#hx-chnl").val(regI);
- });
- return $("#hx-chnl, #hx-chnl2").trigger("input");
- })();