Mercurial > ec-userscripts
annotate rakuten-books-direct-search.user.js @ 65:72ef6fcdff44
Add missing strict
author | nanaya <me@nanaya.pro> |
---|---|
date | Wed, 10 Jul 2019 22:30:14 +0900 |
parents | 3381a9cb88d1 |
children | 444b17e657be |
rev | line source |
---|---|
21 | 1 // ==UserScript== |
2 // @name rakuten books direct search | |
3 // @namespace https://myconan.net | |
58
960d452dea99
Bump version to force updating to new repository
nanaya <me@nanaya.pro>
parents:
57
diff
changeset
|
4 // @version 1.0.3 |
21 | 5 // @description Search on rakuten without tracking proxy |
6 // @author nanaya | |
7 // @match https://books.rakuten.co.jp/* | |
8 // @match http://books.rakuten.co.jp/* | |
29 | 9 // @match https://*.books.rakuten.co.jp/* |
10 // @match http://*.books.rakuten.co.jp/* | |
21 | 11 // @grant none |
57 | 12 // @downloadURL https://bitbucket.org/nanayapro/ec-userscripts/raw/tip/rakuten-books-direct-search.user.js |
21 | 13 // ==/UserScript== |
14 | |
15 ;(function() { | |
65 | 16 "use strict"; |
17 | |
49 | 18 var $ = jQuery; |
19 var $form = $("form[name='srchFrm']"); | |
33 | 20 |
49 | 21 if (!$form.length) { return; } |
59 | 22 |
49 | 23 var searchUrl = $form.find("input[name='R2']").attr("value"); |
24 $form.attr("action", searchUrl); | |
59 | 25 }).call(); |