comparison mandarake-direct-link.user.js @ 33:28505554a8b9

(none)
author Edho Arief <me@myconan.net>
date Sun, 25 Dec 2016 07:41:17 +0000
parents 0552100cceb3
children 32a213717e6a
comparison
equal deleted inserted replaced
32:41953e59d06f 33:28505554a8b9
1 // ==UserScript== 1 // ==UserScript==
2 // @name mandarake direct link 2 // @name mandarake direct link
3 // @namespace https://myconan.net 3 // @namespace https://myconan.net
4 // @version 1.2.1 4 // @version 1.2.2
5 // @description Make proper link on mandarake pages 5 // @description Make proper link on mandarake pages
6 // @author nanaya 6 // @author nanaya
7 // @match https://order.mandarake.co.jp/* 7 // @match https://order.mandarake.co.jp/*
8 // @match http://order.mandarake.co.jp/* 8 // @match http://order.mandarake.co.jp/*
9 // @grant none 9 // @grant none
10 // @downloadURL https://bitbucket.org/!api/2.0/snippets/nanaya1/TK64/tip/files/mandarake-direct-link.user.js 10 // @downloadURL https://bitbucket.org/!api/2.0/snippets/nanaya1/TK64/tip/files/mandarake-direct-link.user.js
11 // ==/UserScript== 11 // ==/UserScript==
12 12
13 ;(function() { 13 ;(function() {
14 "use strict";
14 $(".r18mark").remove() 15 $(".r18mark").remove()
15 var fixLink = function(_i, el) { 16 var fixLink = function(_i, el) {
16 var 17 var $el = $(el)
17 $el = $(el), 18 var url = "/order/detailPage/item?itemCode=" + $el.attr("id") + "&ref=list"
18 url = "/order/detailPage/item?itemCode=" + $el.attr("id") + "&ref=list"
19 19
20 $el.attr("href", url); 20 $el.attr("href", url)
21 $el.removeClass(); 21 $el.removeClass()
22 }; 22 }
23 23
24 $("[href^='#adult_confirm']").each(fixLink); 24 $("[href^='#adult_confirm']").each(fixLink)
25 }).call(); 25 }).call();