Mercurial > ec-userscripts
comparison mandarake-direct-link.user.js @ 16:c0fddafb854b
(none)
author | Edho Arief <me@myconan.net> |
---|---|
date | Sun, 11 Oct 2015 01:18:29 +0000 |
parents | |
children | 4dfc6a9d1777 |
comparison
equal
deleted
inserted
replaced
15:aa43130ad87f | 16:c0fddafb854b |
---|---|
1 // ==UserScript== | |
2 // @name mandarake direct link | |
3 // @namespace https://myconan.net | |
4 // @version 1.0 | |
5 // @description Make proper link on mandarake pages | |
6 // @author nanaya | |
7 // @match https://order.mandarake.co.jp/* | |
8 // @grant none | |
9 // @downloadURL https://bitbucket.org/!api/2.0/snippets/nanaya1/TK64/tip/files/mandarake-direct-link.user.js | |
10 // ==/UserScript== | |
11 | |
12 ;(function() { | |
13 $(".r18mark").remove() | |
14 var fixLink = function(_i, el) { | |
15 var | |
16 $el = $(el), | |
17 url = "/order/detailPage/item?itemCode=" + $el.attr("id") + "&ref=list" | |
18 | |
19 $el.attr("href", url); | |
20 }; | |
21 | |
22 $("[href^=#adult_confirm']").each(fixLink); | |
23 }).call(); |