21
|
1 // ==UserScript==
|
|
2 // @name rakuten books direct search
|
|
3 // @namespace https://myconan.net
|
33
|
4 // @version 1.0.2
|
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
|
35
|
12 // @downloadURL https://bitbucket.org/!api/2.0/snippets/nanayapro/TK64/tip/files/rakuten-books-direct-search.user.js
|
21
|
13 // ==/UserScript==
|
|
14
|
|
15 ;(function() {
|
49
|
16 var $ = jQuery;
|
|
17 var $form = $("form[name='srchFrm']");
|
33
|
18
|
49
|
19 if (!$form.length) { return; }
|
21
|
20
|
49
|
21 var searchUrl = $form.find("input[name='R2']").attr("value");
|
|
22 $form.attr("action", searchUrl);
|
21
|
23 }).call(); |