16
|
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(); |