Skip to content

Instantly share code, notes, and snippets.

@trietsch
Last active July 26, 2022 11:35
Show Gist options
  • Save trietsch/1665db6cc6bcc5a290ef6370ca503d73 to your computer and use it in GitHub Desktop.
Save trietsch/1665db6cc6bcc5a290ef6370ca503d73 to your computer and use it in GitHub Desktop.
Automatically skip the redirect notice from Google
// ==UserScript==
// @name Skip redirect notice
// @version 1.0.0
// @description Immediately redirects when presented a redirect notice from Google.
// @author Robin Trietsch
// @include https://www.google.com/url?*
// @grant none
// @updateURL https://gist.github.com/trietsch/1665db6cc6bcc5a290ef6370ca503d73/raw/3b69af9ab266e0af438459337409387ec567d6db/auto-redirect.user.js
// @downloadURL https://gist.github.com/trietsch/1665db6cc6bcc5a290ef6370ca503d73/raw/3b69af9ab266e0af438459337409387ec567d6db/auto-redirect.user.js
// ==/UserScript==
(function() {
'use strict';
window.location = document.querySelectorAll('a')[0].href;
})();
@trietsch
Copy link
Author

trietsch commented Jul 5, 2022

Install Tampermonkey, after install, click the Raw button.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment