Mercurial > ec-userscripts
comparison rakuten-books-direct-search.user.js @ 117:d9dc190bccaf
Undo combining fixes into single script per site
| author | nanaya <me@nanaya.net> |
|---|---|
| date | Sun, 15 Jan 2023 23:49:35 +0900 |
| parents | ef21ef445fc6 |
| children | 8de2d53a4cb1 |
comparison
equal
deleted
inserted
replaced
| 116:0e108a9dc6d7 | 117:d9dc190bccaf |
|---|---|
| 13 // ==/UserScript== | 13 // ==/UserScript== |
| 14 | 14 |
| 15 'use strict'; | 15 'use strict'; |
| 16 | 16 |
| 17 /* global jQuery */ | 17 /* global jQuery */ |
| 18 function noTrackSearch () { | 18 const $ = jQuery; |
| 19 const $ = jQuery; | 19 const $form = $("form[name='srchFrm']"); |
| 20 const $form = $("form[name='srchFrm']"); | |
| 21 | 20 |
| 22 if (!$form.length) { return; } | 21 if ($form.length > 0) { |
| 23 | |
| 24 const searchUrl = $form.find("input[name='R2']").attr('value'); | 22 const searchUrl = $form.find("input[name='R2']").attr('value'); |
| 25 $form.attr('action', searchUrl); | 23 $form.attr('action', searchUrl); |
| 26 } | 24 } |
| 27 | |
| 28 noTrackSearch(); |
