Mercurial > ec-userscripts
comparison rakuten-books-direct-search.user.js @ 108:2c4470b73ad9
Switch to semistandard
No more `;` at the start of line.
| author | nanaya <me@nanaya.net> | 
|---|---|
| date | Sun, 15 Jan 2023 23:24:03 +0900 | 
| parents | 9c8cde985caf | 
| children | ef21ef445fc6 | 
   comparison
  equal
  deleted
  inserted
  replaced
| 107:4bc5a633437c | 108:2c4470b73ad9 | 
|---|---|
| 11 // @grant none | 11 // @grant none | 
| 12 // @downloadURL https://hg.myconan.net/ec-userscripts/raw-file/tip/rakuten-books-direct-search.user.js | 12 // @downloadURL https://hg.myconan.net/ec-userscripts/raw-file/tip/rakuten-books-direct-search.user.js | 
| 13 // ==/UserScript== | 13 // ==/UserScript== | 
| 14 | 14 | 
| 15 /* global jQuery */ | 15 /* global jQuery */ | 
| 16 ;(function () { | 16 (function () { | 
| 17 'use strict' | 17 'use strict'; | 
| 18 | 18 | 
| 19 const $ = jQuery | 19 const $ = jQuery; | 
| 20 const $form = $("form[name='srchFrm']") | 20 const $form = $("form[name='srchFrm']"); | 
| 21 | 21 | 
| 22 if (!$form.length) { return } | 22 if (!$form.length) { return; } | 
| 23 | 23 | 
| 24 const searchUrl = $form.find("input[name='R2']").attr('value') | 24 const searchUrl = $form.find("input[name='R2']").attr('value'); | 
| 25 $form.attr('action', searchUrl) | 25 $form.attr('action', searchUrl); | 
| 26 }).call() | 26 }).call(); | 
