您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
提供运营与开发界面的互跳功能
当前为
// ==UserScript== // @name 德鲁伊被强化了 // @namespace http://tampermonkey.net/ // @version 0.1.1 // @description 提供运营与开发界面的互跳功能 // @author 燕修 // @match http://insiopweb.stable.alipay.net/* // @icon https://www.google.com/s2/favicons?domain=alipay.net // @require https://gf.qytechs.cn/scripts/415581-jquery%E5%BA%93/code/jquery%E5%BA%93.js?version=866373 // @grant none // ==/UserScript== function getQuery(url) { if(!url) url = document.location.href+''; let query = {}; if (url.indexOf("?") != -1) { url = url.split("?")[1]; let str = decodeURI(url); // 获取url中"?"符后的字串(包括问号) const pairs = str.split("&"); for(let i = 0; i < pairs.length; i ++) { const pair = pairs[i].split("="); query[pair[0]] = pair[1]; } } return query ; // 返回对象 } function getPureUrl(url) { url+=''; if (url.indexOf("?") != -1) { return url.split("?")[0]; } return url } function getUrlWithParam(url,param){ let result = getPureUrl(url); result+='?' for(let name in param){ result+=`${name}=${param[name]}&` } result = result.substring(0,result.length-1); console.log('result',result); return result; } var doAfterLoad = (fn)=>{ var inject = setInterval(()=>{ if($('[class^=contentRight]').length){ fn(); clearInterval(inject); } }); } var loadCss = ()=>{ $('body').append(`<style id="super-css"> #super-jump { color:#fd6a01 !important; } </style>`); } var urlReplace = (find,target)=>{ return document.location.href.replace(find,target) } var injectPlugin = ()=>{ $("#super-jump").remove(); $("#super-css").length||loadCss(); var param = getQuery(document.location.href); console.log(param,'param'); if(document.location.href.includes('scene/module')){ let url = urlReplace('scene/module','admin/template').replace('/edit',''); url = getPureUrl(url); delete param.queryCode; url = getUrlWithParam(url,param); $('[class^=contentRight]').prepend(`<a href="${url}" id="super-jump">开发管理</a>`) } if(document.location.href.includes('admin/template')){ let url = urlReplace('admin/template','scene/module').replace('/edit',''); url = getPureUrl(url); delete param.queryCode; url = getUrlWithParam(url,param); $('[class^=contentRight]').prepend(`<a href="${url}" id="super-jump">运营管理</a>`) } } doAfterLoad(()=>{ injectPlugin() }) $(window).on('hashchange',()=>{injectPlugin()}); $(window).on('popstate',()=>{injectPlugin()});
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址