Mercurial > ec-userscripts
changeset 12:c1a01d692910
(none)
author | Edho Arief <me@myconan.net> |
---|---|
date | Thu, 06 Aug 2015 05:52:29 +0000 |
parents | 888cdeba7a16 |
children | 06e6dbdedd47 |
files | pixiv-direct-external-link pixiv-direct-external-link.js |
diffstat | 2 files changed, 22 insertions(+), 22 deletions(-) [+] |
line wrap: on
line diff
--- a/pixiv-direct-external-link Thu Aug 06 05:50:51 2015 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,22 +0,0 @@ -// ==UserScript== -// @name pixiv direct external link -// @namespace https://myconan.net -// @version 1.0 -// @description Make proper link on pixiv pages -// @author nanaya -// @match http://www.pixiv.net/* -// @grant none -// ==/UserScript== - -;(function() { - var fixLink = function(_i, el) { - var - $el = $(el), - url = decodeURIComponent($el.attr('href').replace(/^\/?jump.php\?/, "")); - - $el.attr('href', url); - }; - - $("[href^='jump.php?']").each(fixLink); - $("[href^='/jump.php?']").each(fixLink); -}).call(); \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/pixiv-direct-external-link.js Thu Aug 06 05:52:29 2015 +0000 @@ -0,0 +1,22 @@ +// ==UserScript== +// @name pixiv direct external link +// @namespace https://myconan.net +// @version 1.0 +// @description Make proper link on pixiv pages +// @author nanaya +// @match http://www.pixiv.net/* +// @grant none +// ==/UserScript== + +;(function() { + var fixLink = function(_i, el) { + var + $el = $(el), + url = decodeURIComponent($el.attr('href').replace(/^\/?jump.php\?/, "")); + + $el.attr('href', url); + }; + + $("[href^='jump.php?']").each(fixLink); + $("[href^='/jump.php?']").each(fixLink); +}).call(); \ No newline at end of file