Mercurial > ec-userscripts
annotate rakuten-books-direct-search.user.js @ 66:444b17e657be
Standardize code style
| author | nanaya <me@nanaya.pro> |
|---|---|
| date | Wed, 10 Jul 2019 22:36:31 +0900 |
| parents | 72ef6fcdff44 |
| children | 521dda0a0b6f |
| 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 | |
| 66 | 15 /* global jQuery */ |
| 16 ;(function () { | |
| 17 'use strict' | |
| 33 | 18 |
| 66 | 19 var $ = jQuery |
| 20 var $form = $("form[name='srchFrm']") | |
| 59 | 21 |
| 66 | 22 if (!$form.length) { return } |
| 23 | |
| 24 var searchUrl = $form.find("input[name='R2']").attr('value') | |
| 25 $form.attr('action', searchUrl) | |
| 26 }).call() |
