您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Change the page title to 'AAA' when the URL contains 'www.mhhf.com'
当前为
- // ==UserScript==
- // @name HuangQS
- // @namespace http://tampermonkey.net/
- // @version 0.1
- // @description Change the page title to 'AAA' when the URL contains 'www.mhhf.com'
- // @author You
- // @match *://*/*
- // @grant none
- // @license MIT
- // ==/UserScript==
- (function() {
- 'use strict';
- // 获取当前页面的URL
- const currentURL = window.location.href;
- // 亡灵增量
- if (currentURL.includes('www.mhhf.com') || currentURL.includes('www.json1.cn')) {
- document.title = '测试-Canvas绘制展示';
- }
- //json在线解析去广告
- else if (currentURL.includes('www.json.cn')) {
- document.title = 'JSON';
- // 找到对应的按钮元素 触发点击事件
- let clickEvent = new MouseEvent('click', { bubbles: true, cancelable: true, view: window });
- document.getElementById('formatFullScreen').dispatchEvent(clickEvent);
- }
- })();