Skip to content

Latest commit

 

History

History
53 lines (33 loc) · 1.08 KB

README.md

File metadata and controls

53 lines (33 loc) · 1.08 KB

Affiiate beautifier

Version 1.3

Affiliate urls often looks like a mess, similar to below.

http://affiliate-url.com/?ad=123122&campaign=123&id=213&url=beautiful-url.com

This url looks better.

http://beautiful-url.com

In short

  • Inspired by Google. Google does the same thing to their links.
  • Dependency free
  • Only 1KB
  • Uses ES6 version of javascript
  • Tested in Chrome, Firefox and Edge

Install

Javascript

Put the script above </body>.

<script src="assets/js/dist/script.min.js"></script>

HTML

<a href="http://affiliate-url.com/long-and-not-nice" data-href="http://beautiful-url.com">Link text</a>

Test it

Hover the url of the link. It should show the beautiful url, instead of the ugly affiliate url.

When you click the link, it should switch to the affiliate url on mousedown. To prevent a click when testing, you can drag the link instead. After that, hover it and you should see the affiliate url instead.

Donate

Donate to DevoneraAB if you want.

License

MIT