Violentmonkey/Tampermonkey Scripts
Block Sign in with Google
Pop-up
// ==UserScript==
// @name Sign in with Google
// @namespace Violentmonkey Scripts
// @match *://*/*
// @grant GM_addStyle
// @version 1.0
// @author -
// @description Block the `Sign in with Google` pop-up with Violentmonkey
// ==/UserScript==
GM_addStyle(`
#credential_picker_container:has(iframe[src*="accounts.google.com"]) {
display: none;
}
`);
Block Sign in to Google
and Google recommends using Chrome
Pop-ups
// ==UserScript==
// @name Google.com
// @namespace Violentmonkey Scripts
// @match *://*google.com/*
// @grant GM_addStyle
// @version 1.0
// @author -
// @description Block the `Sign in to Google` and `Google recommends using Chrome` pop-ups with Violentmonkey
// ==/UserScript==
GM_addStyle(`
div[aria-hidden="false"]:has(iframe[src*="google.com"]) {
display: none;
}
div[role="dialog"][aria-labelledby="promo-header"] aside {
display: none;
}
`);
Violentmonkey Documentation
-
GM_addStyle()
https://violentmonkey.github.io/api/gm/#gm_addstyle - Matching (
@match
/@exclude-match
)
https://violentmonkey.github.io/api/matching/ -
@grant
https://violentmonkey.github.io/api/metadata-block/#grant
Extension Links
Violentmonkey Extension Links
Tampermonkey Extension Links