Safe.mn, URL shortener
Security and Transparency
Security and Transparency
Drag this button to your bookmarks to shorten URLs from any page:
This will create a new bookmark called "Shorten with Safe.mn". When you want to make a short URL of the page you are visiting, simply click on the bookmark "Shorten with Safe.mn". A new tab or new window will be opened in your browser, with the Safe.mn short URL.
Top ↑
Add this code on each page to display a short URL for that page:
<script src="http://safe.mn/tools/javascript?format=link&target=_blank"></script>You can modify the output of the script
Add this code on each page to display a QR code for that page:
<script src="http://safe.mn/tools/javascript?format=qr"></script>You can modify the output of the script
Coming soon...
Here is a simple example to add Safe.mn to your website.
<p style="margin:0 0 2px; padding:0;"><input type="text" id="url"
title="e.g.: http://www.google.com/" style="width: 400px" />
<input type="button" id="shorten" value="Shorten" /></p>
<p style="margin:0 0 2px; padding:0;" id="result"></p>
<p style="margin: 0 0 0 150px; padding: 0; line-height:1.25em; font-size: 60%;">
<a href="http://safe.mn/" target="_blank">Safe.mn, URL shortener - Security and Transparency</a>
</p>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript">
jQuery(document).ready(function($) {
$('#shorten').click(function(e) {
e.preventDefault();
var url = $('#url').val();
$.getJSON("http://safe.mn/api/?format=jsonp&url=" + escape(url) + "&callback=?",
function(data){
if (data.url) {
$('#result').html('<input type="text" id="code" value="' + data.url + '">');
}
else if(data.error) {
$('#result').html('<span style="color: Red;" id="warning">' +
data.error + '</span>');
}
});
});
});
</script>
Download a full example. Feel free to modify it.
You can add Safe.mn to your website without knowledge of HTML or Javascript
<iframe src="http://safe.mn/tools/widget/?lang=en" width="560" height="160" style="border: 0" ></iframe>
<iframe src="http://safe.mn/tools/widget2/?lang=fr" height="160" style="border: 0" ></iframe>
Download the iframe example.
Add the Safe.mn URL shortener as a Google gadget:
<script src="http://www.gmodules.com/ig/ifr?
url=http://hosting.gmodules.com/ig/gadgets/file/100564391894550368434/google.xml
&synd=open&w=550&h=150&title=Safe.mn+URL+shortener
&border=%23ffffff%7C3px%2C1px+solid+%23999999&output=js">
</script>
Customize your version at Google.
Coming soon...
Top ↑
You can add the Safe.mn gadget to your Google home page: Safe.mn URL shortener
You can add the Safe.mn application to your Facebook profile: http://apps.facebook.com/safe-mn/
Top ↑