0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Block Annoying Google Pop-ups with Violentmonkey/Tampermonkey Browser Extensions

Last updated at Posted at 2024-09-21

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

Extension Links

Violentmonkey Extension Links

Tampermonkey Extension Links

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?