comparison rakuten-books-direct-search.user.js @ 49:2e1cae72a63e

Semicolons
author nanaya <me@nanaya.pro>
date Thu, 12 Oct 2017 16:40:13 +0900
parents 32a213717e6a
children 09f735548b2c
comparison
equal deleted inserted replaced
48:b60f0fd9c417 49:2e1cae72a63e
11 // @grant none 11 // @grant none
12 // @downloadURL https://bitbucket.org/!api/2.0/snippets/nanayapro/TK64/tip/files/rakuten-books-direct-search.user.js 12 // @downloadURL https://bitbucket.org/!api/2.0/snippets/nanayapro/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 18
19 if (!$form.length) { return } 19 if (!$form.length) { return; }
20 20
21 var searchUrl = $form.find("input[name='R2']").attr("value") 21 var searchUrl = $form.find("input[name='R2']").attr("value");
22 $form.attr("action", searchUrl) 22 $form.attr("action", searchUrl);
23 }).call(); 23 }).call();