Last active
July 3, 2025 17:46
-
-
Save danny8376/2909942248fe7f6ac354f032005ba032 to your computer and use it in GitHub Desktop.
Google utm 14 for iOS default search
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 utm 14 for iOS default search | |
| // @namespace http://saru.moe/ | |
| // @version 2025-07-03 | |
| // @description Try to add utm 14 for google search only for iOS default search engine | |
| // @author DannyAAM | |
| // @license MIT | |
| // @match https://www.google.com/search* | |
| // @icon https://www.gstatic.com/images/branding/searchlogo/ico/favicon.ico | |
| // @grant none | |
| // @run-at document-start | |
| // ==/UserScript== | |
| (function() { | |
| 'use strict'; | |
| const url = new URL(window.location.href); | |
| if (url.searchParams.get("client") != "safari") return; | |
| if (url.searchParams.get("udm")) return; | |
| url.searchParams.set("udm", "14"); | |
| window.location.replace(url); | |
| })(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment