Created
December 3, 2025 12:59
-
-
Save anna-oake/9d82df0e2b200fd4f210d7d08d3ba97a to your computer and use it in GitHub Desktop.
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 Tap Strip | |
| // @version 1.0 | |
| // @match *://apple.com/* | |
| // @match *://*.apple.com/* | |
| // @run-at document-end | |
| // @grant none | |
| // ==/UserScript== | |
| (function () { | |
| "use strict"; | |
| const word1 = [ | |
| "Tap", | |
| "Magic", | |
| "Finger", | |
| "Tickle", | |
| "Poke", | |
| "Swipe", | |
| "Gesture", | |
| "Pixel", | |
| "Touch", | |
| "Fidget", | |
| "Function", | |
| "Command", | |
| "Button", | |
| "Control", | |
| "Glass", | |
| "Tappy" | |
| ]; | |
| const word2 = [ | |
| "Bar", | |
| "Strip", | |
| "Rail", | |
| "Shelf", | |
| "Line", | |
| "Row", | |
| "Band", | |
| "Ribbon", | |
| "Screen", | |
| "Keys", | |
| "Lane", | |
| "Ledge", | |
| "Slab", | |
| "Zone", | |
| "Edge" | |
| ]; | |
| function randomFrom(arr) { | |
| return arr[Math.floor(Math.random() * arr.length)]; | |
| } | |
| const replacementName = `${randomFrom(word1)} ${randomFrom(word2)}`; | |
| document.documentElement.innerHTML = | |
| document.documentElement.innerHTML.replace(/Touch Bar/g, replacementName); | |
| })(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment