/matchpattern.js

A Javascript library that manages mach patterns for matching urls

Primary LanguageJavaScriptGNU Lesser General Public License v2.1LGPL-2.1

Usage

Download

Latest

HTML

<script src="https://jc3213.github.io/matchpattern.js/matchpattern.js"></script>

TamperMonkey

// @require https://jc3213.github.io/matchpattern.js/matchpattern.js

Syntax

let pA = MatchPattern(url);
let pB = MatchPattern(host);
  • url
    • string
    • https://example.com/pathname
  • host
    • string
    • example.com