Advertisement
Guest User

Linkshrink mod

a guest
Apr 13th, 2017
483
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $.register({
  2.   rule: {
  3.     host: /^linkshrink\.net$/,
  4.     path: /^\/[a-zA-Z0-9]+$/,
  5.   },
  6.   start: function () {
  7.     'use strict';
  8.     $.window._impspcabe = 0;
  9.   },
  10.   ready: function () {
  11.     'use strict';
  12.     var l = $('#skip .bt');
  13. //    $.openLink(l.href);
  14.     GM_xmlhttpRequest({
  15.       method: "HEAD",
  16.       url: l.href,
  17.       onload: function(response) {
  18.         var h = response.finalUrl;
  19.         var i = h.lastIndexOf('http');
  20.         h = h.substr(i);
  21.         $.openLink(h);
  22.       }
  23.     });
  24.   },
  25. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement