Skip to content

jsDelivr

Kain edited this page Mar 2, 2024 · 15 revisions

As of 1.2.0 onward a webpacked version will be included in the lib directory. You can access this through jsdelivr.net.

Usage

For the latest version (from GitHub):
Warning: Using this may break apps when the package updates.

https://cdn.jsdelivr.net/gh/DrKain/tidy-url/lib/tidyurl.min.js

Or a specific version from NPM (recommended):

https://cdn.jsdelivr.net/npm/[email protected]/lib/tidyurl.min.js

Example

You'd use this like so:

<script src='https://cdn.jsdelivr.net/npm/[email protected]/lib/tidyurl.min.js'>
tidyurl.clean('https://google.com');

Userscript

You can also add this to any UserScript with the following line:

// @require      https://cdn.jsdelivr.net/npm/[email protected]/lib/tidyurl.min.js
Clone this wiki locally