Mercurial > ec-userscripts
diff rakuten-books-direct-search.user.js @ 33:28505554a8b9
(none)
author | Edho Arief <me@myconan.net> |
---|---|
date | Sun, 25 Dec 2016 07:41:17 +0000 |
parents | d467e1e0ec98 |
children | 32a213717e6a |
line wrap: on
line diff
--- a/rakuten-books-direct-search.user.js Sat Dec 24 04:41:13 2016 +0000 +++ b/rakuten-books-direct-search.user.js Sun Dec 25 07:41:17 2016 +0000 @@ -1,7 +1,7 @@ // ==UserScript== // @name rakuten books direct search // @namespace https://myconan.net -// @version 1.0.1 +// @version 1.0.2 // @description Search on rakuten without tracking proxy // @author nanaya // @match https://books.rakuten.co.jp/* @@ -13,10 +13,11 @@ // ==/UserScript== ;(function() { - var $ = jQuery; - var $form = $("form[name='srchFrm']"); - if (!$form.length) { return; } + var $ = jQuery + var $form = $("form[name='srchFrm']") + + if (!$form.length) { return } - var searchUrl = $form.find("input[name='R2']").attr("value"); - $form.attr("action", searchUrl); + var searchUrl = $form.find("input[name='R2']").attr("value") + $form.attr("action", searchUrl) }).call(); \ No newline at end of file