# HG changeset patch # User Edho Arief # Date 1442817241 0 # Node ID 6415f831aa5a3cc496d6bd49c198ff54d470f69e # Parent 06e6dbdedd47bfc7e7cf37b958b22d9a667ef278 diff -r 06e6dbdedd47 -r 6415f831aa5a jiku-chu-direct-link.js --- a/jiku-chu-direct-link.js Thu Aug 06 05:54:06 2015 +0000 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,22 +0,0 @@ -// ==UserScript== -// @name Jiku-Chu direct link -// @namespace https://myconan.net -// @version 2.3 -// @description Make proper link on Jiku-Chu pages -// @author nanaya -// @match http://www.jiku-chu.com/* -// @grant none -// ==/UserScript== - -;(function() { - Array.prototype.forEach.call( - document.querySelectorAll("a[onclick^=\"age_verification_submit('/products/detail.php?product_id=\"]"), - function(el) { - var - productId = el.getAttribute("onclick").replace(/.*product_id=(\d+).*/, "$1"), - url = "/products/detail.php?product_id=" + productId; - el.setAttribute("href", url); - el.setAttribute("onclick", ""); - } - ) -}).call(); \ No newline at end of file diff -r 06e6dbdedd47 -r 6415f831aa5a jiku-chu-direct-link.user.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/jiku-chu-direct-link.user.js Mon Sep 21 06:34:01 2015 +0000 @@ -0,0 +1,22 @@ +// ==UserScript== +// @name Jiku-Chu direct link +// @namespace https://myconan.net +// @version 2.3 +// @description Make proper link on Jiku-Chu pages +// @author nanaya +// @match http://www.jiku-chu.com/* +// @grant none +// ==/UserScript== + +;(function() { + Array.prototype.forEach.call( + document.querySelectorAll("a[onclick^=\"age_verification_submit('/products/detail.php?product_id=\"]"), + function(el) { + var + productId = el.getAttribute("onclick").replace(/.*product_id=(\d+).*/, "$1"), + url = "/products/detail.php?product_id=" + productId; + el.setAttribute("href", url); + el.setAttribute("onclick", ""); + } + ) +}).call(); \ No newline at end of file diff -r 06e6dbdedd47 -r 6415f831aa5a pixiv-direct-external-link.js --- a/pixiv-direct-external-link.js Thu Aug 06 05:54:06 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 diff -r 06e6dbdedd47 -r 6415f831aa5a pixiv-direct-external-link.user.js --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/pixiv-direct-external-link.user.js Mon Sep 21 06:34:01 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