Mercurial > ec-userscripts
comparison pixiv-direct-external-link @ 11:888cdeba7a16
(none)
author | Edho Arief <me@myconan.net> |
---|---|
date | Thu, 06 Aug 2015 05:50:51 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
10:fe7cedc6205d | 11:888cdeba7a16 |
---|---|
1 // ==UserScript== | |
2 // @name pixiv direct external link | |
3 // @namespace https://myconan.net | |
4 // @version 1.0 | |
5 // @description Make proper link on pixiv pages | |
6 // @author nanaya | |
7 // @match http://www.pixiv.net/* | |
8 // @grant none | |
9 // ==/UserScript== | |
10 | |
11 ;(function() { | |
12 var fixLink = function(_i, el) { | |
13 var | |
14 $el = $(el), | |
15 url = decodeURIComponent($el.attr('href').replace(/^\/?jump.php\?/, "")); | |
16 | |
17 $el.attr('href', url); | |
18 }; | |
19 | |
20 $("[href^='jump.php?']").each(fixLink); | |
21 $("[href^='/jump.php?']").each(fixLink); | |
22 }).call(); |