Last active
August 8, 2021 05:33
-
-
Save splintor/1ba478e534060b77ca5b3c8c9acb7bec 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 Planet of Apes - Add vertical name | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.1 | |
| // @author Shmulik Flint | |
| // @match https://manage.wix.com/dashboard/*/preinstall-automations | |
| // @icon https://www.google.com/s2/favicons?domain=wix.com | |
| // @downloadURL https://gist.github.com/splintor/1ba478e534060b77ca5b3c8c9acb7bec/raw | |
| // @updateURL https://gist.github.com/splintor/1ba478e534060b77ca5b3c8c9acb7bec/raw | |
| // ==/UserScript== | |
| (function() { | |
| 'use strict'; | |
| const verticals = { | |
| '8e4461c9-f0b7-4ea1-949d-7e1883d2607d': 'Wix Forms', | |
| '0227fbf1-50f3-4d5f-8286-1e41fd3e64f4': 'Wix Events', | |
| 'ab6ee2a4-454b-4c2b-8816-7df381f0bb42': 'Pricing Plans', | |
| '71e6b14a-cfa0-49c9-88d3-37cecf7567b3': 'Blog', | |
| '29fefc38-95b0-4f83-820b-99024559a68b': 'Forum', | |
| 'db53bbbc-ce65-428d-ae7a-737fb69504dc': 'Groups', | |
| '6a610e2b-f520-4c91-8f84-545bcf310f90': 'Identity', | |
| '5611c8da-eae4-44a4-bc46-471c04a3ab21': 'Wix Labs', | |
| '64e9c442-0de7-42d2-a8b0-cf53eda7c45b': 'Inbox', | |
| 'b3a73f9b-953a-4cd2-b2bd-e4db1fdcdb81': 'Rise', | |
| '2efdbc64-e946-4bd6-8c33-ae6574b40178': 'The Button', | |
| }; | |
| function appendToHeader() { | |
| const header = document.querySelector('[data-hook="page-header-title"]') | |
| if (!header) { | |
| setTimeout(appendToHeader, 100); | |
| return; | |
| } | |
| const verticalMsid = location.href.split('/')[4]; | |
| header.append(' - ' + (verticals[verticalMsid] || 'Unknown')); | |
| } | |
| appendToHeader(); | |
| })(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment