Mercurial > ec-userscripts
diff 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 |
line wrap: on
line diff
--- a/rakuten-books-direct-search.user.js Sun Jan 15 23:15:45 2023 +0900 +++ b/rakuten-books-direct-search.user.js Sun Jan 15 23:24:03 2023 +0900 @@ -13,14 +13,14 @@ // ==/UserScript== /* global jQuery */ -;(function () { - 'use strict' +(function () { + 'use strict'; - const $ = jQuery - const $form = $("form[name='srchFrm']") + const $ = jQuery; + const $form = $("form[name='srchFrm']"); - if (!$form.length) { return } + if (!$form.length) { return; } - const searchUrl = $form.find("input[name='R2']").attr('value') - $form.attr('action', searchUrl) -}).call() + const searchUrl = $form.find("input[name='R2']").attr('value'); + $form.attr('action', searchUrl); +}).call();