Last active
July 13, 2023 07:20
-
-
Save aont/7b7b3b86f4db7a9b27df to your computer and use it in GitHub Desktop.
ReGoogle
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
| (function () { | |
| var url = new URL(location); | |
| var searchParams = url.searchParams; | |
| var q = searchParams.get("q"); | |
| var promptResult = prompt("regoogle", q); | |
| if(promptResult&&promptResult!=q) { | |
| searchParams.set("q", promptResult); | |
| url.search = searchParams.toString(); | |
| location.href = url.href; | |
| } | |
| })(); |
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
| !function(){var o=new URL(location),n=o.searchParams,t=n.get("q"),a=prompt("regoogle",t);a&&a!=t&&(n.set("q",a),o.search=n.toString(),location.href=o.href)}(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment