comparison rakuten-books-direct-search.user.js @ 33:28505554a8b9

(none)
author Edho Arief <me@myconan.net>
date Sun, 25 Dec 2016 07:41:17 +0000
parents d467e1e0ec98
children 32a213717e6a
comparison
equal deleted inserted replaced
32:41953e59d06f 33:28505554a8b9
1 // ==UserScript== 1 // ==UserScript==
2 // @name rakuten books direct search 2 // @name rakuten books direct search
3 // @namespace https://myconan.net 3 // @namespace https://myconan.net
4 // @version 1.0.1 4 // @version 1.0.2
5 // @description Search on rakuten without tracking proxy 5 // @description Search on rakuten without tracking proxy
6 // @author nanaya 6 // @author nanaya
7 // @match https://books.rakuten.co.jp/* 7 // @match https://books.rakuten.co.jp/*
8 // @match http://books.rakuten.co.jp/* 8 // @match http://books.rakuten.co.jp/*
9 // @match https://*.books.rakuten.co.jp/* 9 // @match https://*.books.rakuten.co.jp/*
11 // @grant none 11 // @grant none
12 // @downloadURL https://bitbucket.org/!api/2.0/snippets/nanaya1/TK64/tip/files/rakuten-books-direct-search.user.js 12 // @downloadURL https://bitbucket.org/!api/2.0/snippets/nanaya1/TK64/tip/files/rakuten-books-direct-search.user.js
13 // ==/UserScript== 13 // ==/UserScript==
14 14
15 ;(function() { 15 ;(function() {
16 var $ = jQuery; 16 var $ = jQuery
17 var $form = $("form[name='srchFrm']"); 17 var $form = $("form[name='srchFrm']")
18 if (!$form.length) { return; } 18
19 if (!$form.length) { return }
19 20
20 var searchUrl = $form.find("input[name='R2']").attr("value"); 21 var searchUrl = $form.find("input[name='R2']").attr("value")
21 $form.attr("action", searchUrl); 22 $form.attr("action", searchUrl)
22 }).call(); 23 }).call();