Mercurial > ec-userscripts
view mandarake-direct-link.user.js @ 31:e18a3d8230c9
(none)
author | Edho Arief <me@myconan.net> |
---|---|
date | Sat, 24 Dec 2016 04:40:27 +0000 |
parents | 0552100cceb3 |
children | 28505554a8b9 |
line wrap: on
line source
// ==UserScript== // @name mandarake direct link // @namespace https://myconan.net // @version 1.2.1 // @description Make proper link on mandarake pages // @author nanaya // @match https://order.mandarake.co.jp/* // @match http://order.mandarake.co.jp/* // @grant none // @downloadURL https://bitbucket.org/!api/2.0/snippets/nanaya1/TK64/tip/files/mandarake-direct-link.user.js // ==/UserScript== ;(function() { $(".r18mark").remove() var fixLink = function(_i, el) { var $el = $(el), url = "/order/detailPage/item?itemCode=" + $el.attr("id") + "&ref=list" $el.attr("href", url); $el.removeClass(); }; $("[href^='#adult_confirm']").each(fixLink); }).call();