Mercurial > ec-userscripts
comparison pixiv-direct-external-link.user.js @ 49:2e1cae72a63e
Semicolons
author | nanaya <me@nanaya.pro> |
---|---|
date | Thu, 12 Oct 2017 16:40:13 +0900 |
parents | 32a213717e6a |
children | 09f735548b2c |
comparison
equal
deleted
inserted
replaced
48:b60f0fd9c417 | 49:2e1cae72a63e |
---|---|
11 | 11 |
12 ;(function() { | 12 ;(function() { |
13 "use strict"; | 13 "use strict"; |
14 | 14 |
15 var fixLink = function(_i, el) { | 15 var fixLink = function(_i, el) { |
16 var $el = $(el) | 16 var $el = $(el); |
17 var url = decodeURIComponent($el.attr("href").replace(/^\/?jump.php\?/, "")) | 17 var url = decodeURIComponent($el.attr("href").replace(/^\/?jump.php\?/, "")); |
18 | 18 |
19 $el.attr("href", url) | 19 $el.attr("href", url); |
20 } | 20 }; |
21 | 21 |
22 $("[href^='jump.php?']").each(fixLink) | 22 $("[href^='jump.php?']").each(fixLink); |
23 $("[href^='/jump.php?']").each(fixLink) | 23 $("[href^='/jump.php?']").each(fixLink); |
24 }).call(); | 24 }).call(); |