TamperMonkeyRouter

Router for TamperMonkey scripts

Ten skrypt nie powinien być instalowany bezpośrednio. Jest to biblioteka dla innych skyptów do włączenia dyrektywą meta // @require https://update.greasyfork.org/scripts/468396/1203270/TamperMonkeyRouter.js

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

You will need to install an extension such as Tampermonkey to install this script.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

Autor
Howardzhangdqs
Wersja
0.1
Utworzono
11-06-2023
Zaktualizowano
11-06-2023
Rozmiar
2,06 KB
Licencja
WTFPL

TamperMonkey Router

Usage:

// Wildcard matching path
window.TamperMonkeyRouter("*/zh-CN/*", () => { console.log("Chinese") });
window.TamperMonkeyRouter("*/zh-??/*", () => { console.log("Chinese (CN/TW/HK/etc)") });

// Regular expression matching path
window.TamperMonkeyRouter(/\/zh-CN\//, () => {console.log("Chinese")});
window.TamperMonkeyRouter(/\/zh-..\//, () => {console.log("Chinese (CN/TW/HK/etc)")});