Created
January 12, 2025 10:10
-
-
Save niskala5570/98493df6ec9ff29304b12be401da1976 to your computer and use it in GitHub Desktop.
Buang layar timbul (pop-up) PRPM - Tampermonkey
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name Buang layar timbul PRPM | |
| // @version 1.0 | |
| // @description Buang layar timbul prpm yg menyemak | |
| // @author Niskala5570 x CGPT (sebab aku tak pandai) | |
| // @match *://*/* | |
| // @grant none | |
| // ==/UserScript== | |
| (function() { | |
| 'use strict'; | |
| function buangModal() { | |
| const modal = document.getElementById('myModal'); | |
| if (modal) { | |
| modal.remove(); | |
| console.log('Pop-up dengan id="myModal" telah dibuang.'); | |
| } | |
| } | |
| const pemerhati = new MutationObserver(() => { | |
| buangModal(); | |
| }); | |
| pemerhati.observe(document.body, { childList: true, subtree: true }); | |
| })(); |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Serabut dengan layar timbul (popup) PRPM dengan perkataan sama berulang kali?
Nah penyelesaiannya!!!
document-body