21
|
1 // ==UserScript==
|
|
2 // @name rakuten books direct search
|
109
|
3 // @namespace https://nanaya.net
|
82
|
4 // @version 1.0.6
|
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
|
109
|
12 // @downloadURL https://hg.nanaya.net/ec-userscripts/raw-file/tip/rakuten-books-direct-search.user.js
|
21
|
13 // ==/UserScript==
|
|
14
|
109
|
15 'use strict';
|
|
16
|
66
|
17 /* global jQuery */
|
109
|
18 function noTrackSearch () {
|
108
|
19 const $ = jQuery;
|
|
20 const $form = $("form[name='srchFrm']");
|
59
|
21
|
108
|
22 if (!$form.length) { return; }
|
66
|
23
|
108
|
24 const searchUrl = $form.find("input[name='R2']").attr('value');
|
|
25 $form.attr('action', searchUrl);
|
109
|
26 }
|
|
27
|
|
28 noTrackSearch();
|