您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Greasy Fork is available in English.
移除页面浮窗
// ==UserScript== // @name 中关村企业统一申报服务平台 // @namespace http://tampermonkey.net/ // @version 0.1 // @description 移除页面浮窗 // @author Human // @match http://120.52.185.156:28068/* // @grant document-end // ==/UserScript== (function() { 'use strict'; if(!$){ var s = document.createElement ("script"); s.src = "http://cdn.bootcss.com/jquery/1.8.3/jquery.min.js"; s.async = false; document.documentElement.appendChild (s); } $(document).ready(function(){ const {pathname} = window.location if(pathname.includes('index.do')){ const src = $('#ad1 img').attr('src'); if(src) $('.header_content .logo').append(`<img style="width: 100px;" src="${src}">`); }else{ const html = $('#ad1 span:nth-child(2)').text(); if(html) $('header').append(`<div style="font-size:12px !important;position:absolute;right:0;top:0;width:450px;padding:4px;background: rgba(255,255,255,0.8)">${html}</div>`) } $('#ad1').remove(); }); })();