comparison mandarake-direct-link.user.js @ 51:f0d5a5d80bfd

Remove extra element
author nanaya <me@nanaya.pro>
date Tue, 05 Dec 2017 19:52:44 +0900
parents 2e1cae72a63e
children f8c3374d862c
comparison
equal deleted inserted replaced
50:e8517cc75a74 51:f0d5a5d80bfd
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.3.0 4 // @version 1.3.1
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/nanayapro/TK64/tip/files/mandarake-direct-link.user.js 10 // @downloadURL https://bitbucket.org/!api/2.0/snippets/nanayapro/TK64/tip/files/mandarake-direct-link.user.js
11 // ==/UserScript== 11 // ==/UserScript==
12 12
13 ;(function() { 13 ;(function() {
14 "use strict"; 14 "use strict";
15
15 $(".r18mark").remove(); 16 $(".r18mark").remove();
17 $(".r18item").remove();
18
16 var fixR18Link = function(_i, el) { 19 var fixR18Link = function(_i, el) {
17 var url = `/order/detailPage/item?itemCode=${el.id}`; 20 var url = `/order/detailPage/item?itemCode=${el.id}`;
18 21
19 el.setAttribute("href", url); 22 el.setAttribute("href", url);
20 el.setAttribute("class", ""); 23 el.setAttribute("class", "");