14
|
1 // ==UserScript==
|
|
2 // @name pixiv direct external link
|
|
3 // @namespace https://myconan.net
|
19
|
4 // @version 1.1.0
|
14
|
5 // @description Make proper link on pixiv pages
|
|
6 // @author nanaya
|
|
7 // @match http://www.pixiv.net/*
|
|
8 // @grant none
|
15
|
9 // @downloadURL https://bitbucket.org/!api/2.0/snippets/nanaya1/TK64/tip/files/pixiv-direct-external-link.user.js
|
14
|
10 // ==/UserScript==
|
|
11
|
|
12 ;(function() {
|
|
13 var fixLink = function(_i, el) {
|
|
14 var
|
|
15 $el = $(el),
|
|
16 url = decodeURIComponent($el.attr('href').replace(/^\/?jump.php\?/, ""));
|
|
17
|
|
18 $el.attr('href', url);
|
|
19 };
|
|
20
|
|
21 $("[href^='jump.php?']").each(fixLink);
|
|
22 $("[href^='/jump.php?']").each(fixLink);
|
|
23 }).call(); |