Skip to content

Commit

Permalink
Support for shortenurl.tk
Browse files Browse the repository at this point in the history
  • Loading branch information
devnoname120 committed Dec 2, 2014
1 parent 628cce8 commit ec525d4
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/sites/link/shortenurl.tk.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
$.register({
rule: {
host: /^(www\.)?shortenurl\.tk$/,
path: /^\/\w+$/,
},
ready: function (m) {
'use strict';

var l = $('a.btn-block.redirect').href;
var b64 = l.match(/\?r=(\w+={2})/);

$.openLink(atob(b64[1]));
},
});

// ex: ts=2 sts=2 sw=2 et
// sublime: tab_size 2; translate_tabs_to_spaces true; detect_indentation false; use_tab_stops true;
// kate: space-indent on; indent-width 2;

0 comments on commit ec525d4

Please sign in to comment.