Greasy Fork is available in English.
OPGG删除底部脚本提示遮挡(OPGG 하단 스크립트 프롬프트 제거)(OPGG Remove bottom script prompt obscuring.)
当前为
// ==UserScript==
// @name OPGG去底部脚本提示遮挡
// @namespace http://tampermonkey.net/
// @version 1.0
// @description OPGG删除底部脚本提示遮挡(OPGG 하단 스크립트 프롬프트 제거)(OPGG Remove bottom script prompt obscuring.)
// @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);
})();