favicon.js

A simple javascript library to change the page favicon.

How to use

To use favicon.js, include it in your head element:

<head>
  <script src="https://oxmc.is-a.dev/favicon.js/favicon.min.js"></script>
</head>

Then run the function favicon:

favicon('https://github.com/favicon.ico');

That’s it!

heres an example: https://oxmc.is-a.dev/favicon.js/example.html