json.cn自动全屏去广告

目前為 2022-02-21 提交的版本,檢視 最新版本

// ==UserScript==
// @name         json.cn自动全屏去广告
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  略
// @author       You
// @match        https://www.json.cn/
// @icon         https://www.google.com/s2/favicons?sz=64&domain=json.cn
// @grant        none
// @license      MIT
// ==/UserScript==

(function() {
    'use strict';

    // 自动全屏
    let btn = document.getElementsByClassName('fullScreen')[0]
    let event = document.createEvent("MouseEvents");
    event.initMouseEvent('click',true,true,document.defaultView,0,0,0,0,0,false,false,false,false,0,null);
    btn.dispatchEvent(event)

    // 去广告
    btn.nextElementSibling.nextElementSibling.remove()
})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址