王永杰图片管理添加背景

图片管理添加背景插件

  1. // ==UserScript==
  2. // @name 王永杰图片管理添加背景
  3. // @myBlog wangyongjie.top
  4. // @namespace undefined
  5. // @version 8.0.0
  6. // @description 图片管理添加背景插件
  7. // @author 图片管理添加背景
  8. // @match *://cxcms.ds.gome.com.cn/gome-cms-web/gomeCmsImgInfo/list.do
  9. // @match *://cms.gome.inc/gomeCmsImgInfo/list.do
  10. // @match http://cxcms.ds.gome.com.cn/gome-cms-web/gomeCmsImgInfo/list.do
  11. // @match http://cms.gome.inc/gomeCmsImgInfo/list.do
  12. // @match http://cms.gome.inc/gomeCmsImgInfo/list.do?token=57c20979-d07f-4656-aa47-f69e7ab09f3d
  13. // @match *://erm.ds.gome.com.cn/main.action
  14. // @match http://erm.ds.gome.com.cn/main.action
  15. // @match *
  16. // @match 图片管理添加背景
  17. // ==/UserScript==
  18. $(document).ready(function () {
  19. function colorRandom() {
  20. var a, b, c;
  21. var a = parseInt(255 - Math.random() * 255).toString(16);
  22. var b = parseInt(255 - Math.random() * 255).toString(16);
  23. var c = parseInt(255 - Math.random() * 255).toString(16);
  24. colorStr = '#' + a + b + c;
  25. } colorRandom();
  26.  
  27. $(".img_slide").css({
  28. background: colorStr
  29. })
  30. console.log("变色成功")
  31. })

QingJ © 2025

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