Mercurial > ec-userscripts
view rakuten-books-direct-search.user.js @ 57:09f735548b2c
No more snippets
author | nanaya <me@nanaya.pro> |
---|---|
date | Fri, 20 Jul 2018 00:43:27 +0900 |
parents | 2e1cae72a63e |
children | 960d452dea99 |
line wrap: on
line source
// ==UserScript== // @name rakuten books direct search // @namespace https://myconan.net // @version 1.0.2 // @description Search on rakuten without tracking proxy // @author nanaya // @match https://books.rakuten.co.jp/* // @match http://books.rakuten.co.jp/* // @match https://*.books.rakuten.co.jp/* // @match http://*.books.rakuten.co.jp/* // @grant none // @downloadURL https://bitbucket.org/nanayapro/ec-userscripts/raw/tip/rakuten-books-direct-search.user.js // ==/UserScript== ;(function() { var $ = jQuery; var $form = $("form[name='srchFrm']"); if (!$form.length) { return; } var searchUrl = $form.find("input[name='R2']").attr("value"); $form.attr("action", searchUrl); }).call();