Created
March 14, 2020 23:11
-
-
Save gregilo/3c0017f2c2cd36c6e14f898205435662 to your computer and use it in GitHub Desktop.
Google IFL Auto-click
This file contains hidden or 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 Google IFL Auto-click | |
| // @namespace https://www.google.com | |
| // @version 0.1 | |
| // @description Auto-click I'm feeling lucky link on redirect notice page | |
| // @author gregilo | |
| // @match https://www.google.com/url?q=* | |
| // @grant none | |
| // ==/UserScript== | |
| (function() { | |
| 'use strict'; | |
| const links = document.querySelectorAll('a'); | |
| if (links.length > 0) { | |
| const linkToClick = links[0]; | |
| window.location.href = linkToClick.getAttribute('href'); | |
| } | |
| })(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment