您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
浙江中国移动
// ==UserScript== // @name CMCCZJ // @namespace warden // @version 0.0.1 // @description 浙江中国移动 // @author Warden // @match ccs.chnl.zj.chinamobile.com/* // @grant unsafeWindow // @run-at context-menu // ==/UserScript== (function() { 'use strict'; console.log('Hooked!'); var btn = document.getElementById('searchCustInfo'); var showMes = function() { setTimeout(function(){ Rose.ajax.getJson(unsafeWindow.dataArray.loadCustOffers,{BUSINESS_ID:"1",BUSI_TYPE:"0"}, function(json,status){ if(status){ art.dialog.data('json', json); }else{ console.log('错误!'); } $("#personal-recomm").after('<div class="ui-grid-line fn-hide" style="display: block;"><div class="ui-box"><div class="ui-box-head"><div class="ui-box-head-border"><i class="ui-box-head-icon ui-box-icon-01"></i><h3 class="ui-box-head-title">已订业务</h3></div></div><div class="ui-box-container"><div class="ui-box-content" style="padding: 0px;"><div class="ui-list-icon ui-list-float-recom fn-clear" id="slides" style="padding: 0px;"><iframe scrolling="yes" frameborder="0" marginheight="0" allowtransparency="true" marginwidth="0" border="0" src="https://ccs.chnl.zj.chinamobile.com/business?service=page/ydyw" style="width: 786px; height: 380px;"></iframe></div></div></div></div></div>'); }) }, 500); }; btn.addEventListener('click', showMes); })();