comparison rakuten-books-direct-search.user.js @ 66:444b17e657be

Standardize code style
author nanaya <me@nanaya.pro>
date Wed, 10 Jul 2019 22:36:31 +0900
parents 72ef6fcdff44
children 521dda0a0b6f
comparison
equal deleted inserted replaced
65:72ef6fcdff44 66:444b17e657be
10 // @match http://*.books.rakuten.co.jp/* 10 // @match http://*.books.rakuten.co.jp/*
11 // @grant none 11 // @grant none
12 // @downloadURL https://bitbucket.org/nanayapro/ec-userscripts/raw/tip/rakuten-books-direct-search.user.js 12 // @downloadURL https://bitbucket.org/nanayapro/ec-userscripts/raw/tip/rakuten-books-direct-search.user.js
13 // ==/UserScript== 13 // ==/UserScript==
14 14
15 ;(function() { 15 /* global jQuery */
16 "use strict"; 16 ;(function () {
17 'use strict'
17 18
18 var $ = jQuery; 19 var $ = jQuery
19 var $form = $("form[name='srchFrm']"); 20 var $form = $("form[name='srchFrm']")
20 21
21 if (!$form.length) { return; } 22 if (!$form.length) { return }
22 23
23 var searchUrl = $form.find("input[name='R2']").attr("value"); 24 var searchUrl = $form.find("input[name='R2']").attr('value')
24 $form.attr("action", searchUrl); 25 $form.attr('action', searchUrl)
25 }).call(); 26 }).call()