Skip to content

jsDelivr

Kain edited this page Jun 14, 2024 · 15 revisions

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/tidy-url@1.18/lib/tidyurl.min.js

Example

You'd use this like so:

<script src='https://cdn.jsdelivr.net/npm/tidy-url@1.18/lib/tidyurl.min.js'>
tidyurl.clean('https://google.com');

Make sure you update the version to the latest, or whatever one you want to use tidy-url@1.15

Userscript

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

// @require      https://cdn.jsdelivr.net/npm/tidy-url@1.18/lib/tidyurl.min.js
Clone this wiki locally