您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
屈臣氏uat后台快捷打开菜单
// ==UserScript== // @name 屈臣氏后台 // @namespace http://tampermonkey.net/ // @version 0.0.4 // @description 屈臣氏uat后台快捷打开菜单 // @author wivenzheng // @match http://epapi-uat.was.ink/* // @icon https://www.google.com/s2/favicons?sz=64&domain=was.ink // @grant none // @license GPL License // ==/UserScript== (function() { 'use strict'; function creatUl () { const hpzt = document.querySelector('#ucFuncList1_DataList1_ctl00_hlFuncName'); const ydhd = document.querySelector('#ucFuncList1_DataList1_ctl01_hlFuncName'); const ydglht = document.querySelector('#ucFuncList1_DataList1_ctl04_hlFuncName'); if(!hpzt) return const host = 'http://localhost' const urls = { hpzt: { url: hpzt.href.replace('http://goods-mp.was.ink', host + ':8080'), title: '货品中台' }, ydhd: { url: ydhd.href.replace('https://mystore-uat.watsonsestore.com.cn/01h5/new-cms', host + ':8081'), title: '云店活动' }, hdglht: { url: ydglht.href.replace('http://msc-mystore-uat-admin.was.ink', host + ':9527'), title: '云店管理后台' } } const ul = document.createElement('ul'); ul.style.position = 'fixed'; ul.style.top = '0'; ul.style.right = '0'; ul.style.background = '#fff' for(const k in urls) { const li = document.createElement('li'); const a = document.createElement('a'); a.href = urls[k].url; a.target = '_blank'; a.textContent = urls[k].title; li.appendChild(a); ul.appendChild(li); } document.body.appendChild(ul); } window.onload = () => { creatUl() } // Your code here... })();