Mercurial > ec-userscripts
view mandarake-direct-link.user.js @ 35:32a213717e6a
Update update url
author | nanaya <me@nanaya.pro> |
---|---|
date | Sat, 20 May 2017 06:55:13 +0900 |
parents | 28505554a8b9 |
children | b60f0fd9c417 |
line wrap: on
line source
// ==UserScript== // @name mandarake direct link // @namespace https://myconan.net // @version 1.2.2 // @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/nanayapro/TK64/tip/files/mandarake-direct-link.user.js // ==/UserScript== ;(function() { "use strict"; $(".r18mark").remove() var fixLink = function(_i, el) { var $el = $(el) var url = "/order/detailPage/item?itemCode=" + $el.attr("id") + "&ref=list" $el.attr("href", url) $el.removeClass() } $("[href^='#adult_confirm']").each(fixLink) }).call();