Mercurial > ec-userscripts
comparison mandarake-direct-link.user.js @ 72:17c94a818088
Update lint
| author | nanaya <me@nanaya.pro> |
|---|---|
| date | Fri, 03 Apr 2020 22:00:21 +0900 |
| parents | 444b17e657be |
| children | 521dda0a0b6f |
comparison
equal
deleted
inserted
replaced
| 71:20c42dd14d17 | 72:17c94a818088 |
|---|---|
| 28 | 28 |
| 29 var currentQuery = new URLSearchParams(window.location.search) | 29 var currentQuery = new URLSearchParams(window.location.search) |
| 30 var fixSearchLink = function (_i, el) { | 30 var fixSearchLink = function (_i, el) { |
| 31 var query = new URLSearchParams(el.search) | 31 var query = new URLSearchParams(el.search) |
| 32 | 32 |
| 33 for (let [key, value] of currentQuery) { | 33 for (const [key, value] of currentQuery) { |
| 34 if (!query.has(key)) { | 34 if (!query.has(key)) { |
| 35 query.set(key, value) | 35 query.set(key, value) |
| 36 } | 36 } |
| 37 } | 37 } |
| 38 | 38 |
