16
|
1 // ==UserScript==
|
|
2 // @name mandarake direct link
|
|
3 // @namespace https://myconan.net
|
33
|
4 // @version 1.2.2
|
16
|
5 // @description Make proper link on mandarake pages
|
|
6 // @author nanaya
|
|
7 // @match https://order.mandarake.co.jp/*
|
18
|
8 // @match http://order.mandarake.co.jp/*
|
16
|
9 // @grant none
|
35
|
10 // @downloadURL https://bitbucket.org/!api/2.0/snippets/nanayapro/TK64/tip/files/mandarake-direct-link.user.js
|
16
|
11 // ==/UserScript==
|
|
12
|
|
13 ;(function() {
|
33
|
14 "use strict";
|
16
|
15 $(".r18mark").remove()
|
|
16 var fixLink = function(_i, el) {
|
33
|
17 var $el = $(el)
|
|
18 var url = "/order/detailPage/item?itemCode=" + $el.attr("id") + "&ref=list"
|
16
|
19
|
33
|
20 $el.attr("href", url)
|
|
21 $el.removeClass()
|
|
22 }
|
16
|
23
|
33
|
24 $("[href^='#adult_confirm']").each(fixLink)
|
16
|
25 }).call(); |