Last active
June 5, 2024 08:10
-
-
Save trinhvanminh/25f942a6927666a380a27964274dcd23 to your computer and use it in GitHub Desktop.
remove Hola VPN extension loading time overlay, without need to wait
This file contains 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 remove Hola VPN overlay | |
// @namespace http://tampermonkey.net/ | |
// @version 2024-06-05 | |
// @description try to take over the world! | |
// @author You | |
// @match https://*.medium.com/* | |
// @match *://*/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=medium.com | |
// @grant none | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
console.log("Tampermonkey: UserScript - remove Hola VPN overlay") | |
window.addEventListener("load", (event) => { | |
console.log("remove VPN overlay: onLoad"); | |
setTimeout(() => { | |
document.querySelector('html > iframe#_hola_popup_iframe__').style.display = "none"; | |
document.querySelector('html > iframe#_hola_popup_iframe__ + div').style.display = "none"; | |
}, 300) | |
}); | |
})(); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment