Autolinker script for blog or website

An easy and convenient way to convert all of your links to Binbox without the hassle of creating pastes.


To use this widget, include the following script on your HTML-enabled web page:
<script type='text/javascript' src='https://binbox.io/autolink.js'></script>
<script type='text/javascript'>
Linker.init({ 'user' : "api" });
</script>

By default, the autolinker script runs in whitelist mode, where all links are replaced. To change which links are whitelisted, simply use the "links" parameter. You can supply an array of links to use (with wildcard support) or use a function that returns true or false for matches.
<script type='text/javascript' src='https://binbox.io/autolink.js'></script>
<script type='text/javascript'>
Linker.init({ 'user' : "api", 'mode' : 'whitelist', 'links' : ['http://example.com/*']});
</script>

The other option is blacklist mode, where the script will not replace the matched links. Use blacklist mode for when you want to replace many links except for a few.
<script type='text/javascript' src='https://binbox.io/autolink.js'></script>
<script type='text/javascript'>
Linker.init({ 'user' : "api", 'mode' : 'blacklist', 'links' : ['http://otherdomain.com/*']});
</script>