color changer

change sth style of a website

此脚本不应直接安装。它是供其他脚本使用的外部库,要使用该库请加入元指令 // @require https://update.gf.qytechs.cn/scripts/21918/139529/color%20changer.js

  1. // ==UserScript==
  2. // @name color changer
  3. // @namespace http://www.greasespot.net/
  4. // @version 0.2
  5. // @author Arnie
  6. // ==/UserScript==
  7.  
  8. function changeColor(font, bg, objId, objClass){
  9. if(objClass == undefined){
  10. $('#' + objId).css({'color':font, 'backgroundColor':bg})
  11. }else if(objId == "" || objId == ''){
  12. $('.' + objClass).css({'color':font, 'backgroundColor':bg})
  13. }
  14. }

QingJ © 2025

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