Mercurial > ec-userscripts
annotate rakuten-books-direct-search.user.js @ 126:bf1f7164fd4f
Add more matches so fake redirects work
author | nanaya <me@nanaya.net> |
---|---|
date | Sat, 21 Jan 2023 02:30:07 +0900 |
parents | 8de2d53a4cb1 |
children |
rev | line source |
---|---|
21 | 1 // ==UserScript== |
118 | 2 // @name rakuten books direct search |
3 // @namespace https://nanaya.net | |
4 // @version 1.0.6 | |
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/* | |
9 // @match https://*.books.rakuten.co.jp/* | |
10 // @match http://*.books.rakuten.co.jp/* | |
11 // @grant none | |
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 */ |
117
d9dc190bccaf
Undo combining fixes into single script per site
nanaya <me@nanaya.net>
parents:
109
diff
changeset
|
18 const $ = jQuery; |
d9dc190bccaf
Undo combining fixes into single script per site
nanaya <me@nanaya.net>
parents:
109
diff
changeset
|
19 const $form = $("form[name='srchFrm']"); |
59 | 20 |
117
d9dc190bccaf
Undo combining fixes into single script per site
nanaya <me@nanaya.net>
parents:
109
diff
changeset
|
21 if ($form.length > 0) { |
108 | 22 const searchUrl = $form.find("input[name='R2']").attr('value'); |
23 $form.attr('action', searchUrl); | |
109 | 24 } |