Skip to content

Instantly share code, notes, and snippets.

@trinhvanminh
Last active June 5, 2024 08:10
Show Gist options
  • Save trinhvanminh/25f942a6927666a380a27964274dcd23 to your computer and use it in GitHub Desktop.
Save trinhvanminh/25f942a6927666a380a27964274dcd23 to your computer and use it in GitHub Desktop.
remove Hola VPN extension loading time overlay, without need to wait
// ==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