annotate mandarake-direct-link.user.js @ 17:4dfc6a9d1777

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