comparison rakuten-books-direct-search.user.js @ 21:771359d863c2

(none)
author Edho Arief <me@myconan.net>
date Fri, 23 Oct 2015 07:28:23 +0000
parents
children c4a091629ffb
comparison
equal deleted inserted replaced
20:0552100cceb3 21:771359d863c2
1 // ==UserScript==
2 // @name rakuten books direct search
3 // @namespace https://myconan.net
4 // @version 0.1.0
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 // @grant none
10 // @downloadURL https://bitbucket.org/!api/2.0/snippets/nanaya1/TK64/tip/files/mandarake-direct-link.user.js
11 // ==/UserScript==
12
13 ;(function() {
14 var $ = jQuery;
15 var $form = $("form[name='srchFrm']");
16 if (!$form.length) { return; }
17
18 var searchUrl = $form.find("input[name='R2']").attr("value");
19 $form.attr("action", searchUrl);
20 }).call();