王永杰图片管理添加背景

图片管理添加背景插件

当前为 2020-03-31 提交的版本,查看 最新版本

您需要先安装一个扩展,例如 篡改猴Greasemonkey暴力猴,之后才能安装此脚本。

You will need to install an extension such as Tampermonkey to install this script.

您需要先安装一个扩展,例如 篡改猴暴力猴,之后才能安装此脚本。

您需要先安装一个扩展,例如 篡改猴Userscripts ,之后才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。

您需要先安装用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         王永杰图片管理添加背景
// @myBlog       wangyongjie.top
// @namespace    undefined
// @version      4.0.0
// @description  图片管理添加背景插件
// @author       图片管理添加背景
// @match        *://cxcms.ds.gome.com.cn/gome-cms-web/gomeCmsImgInfo/list.do
// @match        *://cms.gome.inc/gomeCmsImgInfo/list.do
// @match        http://cxcms.ds.gome.com.cn/gome-cms-web/gomeCmsImgInfo/list.do
// @match        http://cms.gome.inc/gomeCmsImgInfo/list.do
// @match        http://cms.gome.inc/gomeCmsImgInfo/list.do?token=57c20979-d07f-4656-aa47-f69e7ab09f3d
// @match        *://erm.ds.gome.com.cn/main.action
// @match        http://erm.ds.gome.com.cn/main.action
// @match        *
// @match        图片管理添加背景
// ==/UserScript==
$(document).ready(function () {
    function colorRandom() {
        var a, b, c;
        var a = parseInt(255 - Math.random() * 255).toString(16);
        var b = parseInt(255 - Math.random() * 255).toString(16);
        var c = parseInt(255 - Math.random() * 255).toString(16);
        colorStr = '#' + a + b + c;
    } colorRandom();

    $(".img_slide").css({
        background: colorStr
    })
    console.log("变色成功")
    $(".layui-btn").click(function(){
        var w_iframe = $(".layui-show .layadmin-iframe").attr("src");
        var w_dom = `<li><a href="${w_iframe}" target="_blank"  style="font-size: 16px; color:red;font-weight:900">牛逼Plus</a></li>`;
        $(".layui-layout-admin .layui-layout-right").prepend(w_dom)
    })
})