Greasy Fork

Greasy Fork is available in English.

OPGG去底部脚本提示遮挡

删除OPGG页面底部的脚本提示遮挡(OPGG 페이지 하단에서 화면을 가리는 스크립트 알림을 제거합니다)(Remove the script notification at the bottom of the OPGG page that blocks the view)

当前为 2025-11-24 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         OPGG去底部脚本提示遮挡
// @namespace    http://tampermonkey.net/
// @version      1.0
// @description  删除OPGG页面底部的脚本提示遮挡(OPGG 페이지 하단에서 화면을 가리는 스크립트 알림을 제거합니다)(Remove the script notification at the bottom of the OPGG page that blocks the view)
// @license      Copyright © 2025 Leon. All rights reserved.
// @author       Leon
// @match        https://*.op.gg/*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=op.gg
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    let timer = setInterval(() => {
       const picSrc = 'https://www.gstatic.com/images/icons/material/system/1x/warning_amber_24dp.png';

       let body = document.body;
       let allElements = body.querySelectorAll('*');

       allElements.forEach(element => {
           
           if (element.tagName.toLowerCase() === 'img' && element.src === picSrc) {
               removeGrandparent(element);
               // clearInterval(timer);

           }
       });

       function removeGrandparent(element) {
           if (element?.parentNode?.parentNode) {
               element.parentNode.parentNode.remove();
           }
       }
   }, 1000);
})();