![見出し画像](https://assets.st-note.com/production/uploads/images/137254293/rectangle_large_type_2_eb7999f229386ffcb7b76664c61406bb.png?width=1200)
アドレスバーから遊戯王DBを検索する
以下の画像のように、アドレスバーから遊戯王DBの検索をできるように設定する方法を紹介します。
![](https://assets.st-note.com/img/1713075594684-KsA64gkgR3.png)
設定方法
①以下の順番で設定を開きます。
「設定」
「検索エンジン」
「検索エンジンとサイト内検索を管理する」
場所:
chrome://settings/searchEngines
![](https://assets.st-note.com/img/1713075022390-teu4tY7fU9.png?width=1200)
②「サイト内検索」の右上にある「追加」から、項目を追加します。
![](https://assets.st-note.com/img/1713075827761-FQGOdmg02U.png?width=1200)
名前… アドレスバーに表示されるラベル。好きな名前でOK
ショートカット…呼び出す時のワード。好きなワードでOK
URL… 設定したURLでページをリクエストする
URLの設定値は以下。最新の100件で検索できるように設定しています。
https://www.db.yugioh-card.com/yugiohdb/card_search.action?ope=1&sess=1&rp=100&mode=&sort=21&keyword=%s&stype=1&ctype=&othercon=2&starfr=&starto=&pscalefr=&pscaleto=&linkmarkerfr=&linkmarkerto=&link_m=2&atkfr=&atkto=&deffr=&defto=&releaseDStart=1&releaseMStart=1&releaseYStart=1999&releaseDEnd=&releaseMEnd=&releaseYEnd=
これで完了です。
あとはアドレスバーから設定したショートカット(今回だとyd)を入力し、スペースを空けて検索すればOK。
![](https://assets.st-note.com/img/1713076154026-uJWOkJ4Q9I.png)
解説
遊戯王DBではクエリパラメータを使用して検索の設定を制御しています。
以下の太字の部分ですね。
https://www.db.yugioh-card.com/yugiohdb/card_search.action?ope=1&sess=1&rp=100&mode=&sort=21&keyword=%s&stype=1&ctype=&othercon=2&starfr=&starto=&pscalefr=&pscaleto=&linkmarkerfr=&linkmarkerto=&link_m=2&atkfr=&atkto=&deffr=&defto=&releaseDStart=1&releaseMStart=1&releaseYStart=1999&releaseDEnd=&releaseMEnd=&releaseYEnd=
ここをいじれば好きな設定で検索することができます。
今回は以下の設定を適用しました。(以下URLの太字部分)
検索時によく設定するので、手間が減ります。
100件表示(rp=)
最新順に表示(sort=)
https://www.db.yugioh-card.com/yugiohdb/card_search.action?ope=1&sess=1&rp=100&mode=&sort=21&keyword=%s&stype=1…
検索方法の変更は、以下の設定を。
stype=○
1 = 「カード名」検索
2 = 「カードテキスト」検索
3 = 「ペンデュラム効果」検索
4 = 「カードNo」検索
(思いついた例)期限を設定して、1103環境のカードを素早く検索したい時
https://www.db.yugioh-card.com/yugiohdb/card_search.action?ope=1&sess=1&rp=100&mode=&sort=21&keyword=&stype=1&ctype=&othercon=2&starfr=&starto=&pscalefr=&pscaleto=&linkmarkerfr=&linkmarkerto=&link_m=2&atkfr=&atkto=&deffr=&defto=&releaseDStart=1&releaseMStart=1&releaseYStart=1999&releaseDEnd=1&releaseMEnd=9&releaseYEnd=2011
遊戯王DBだけではなく、検索が可能な他のサイトでも登録できるため、なかなか便利な機能だと思います。
以上となります。読んでくれてありがとうございました!
おまけ
他にも遊戯王DBを使いやすくするための記事を投稿しています。
よければぜひ。
この記事が気に入ったらサポートをしてみませんか?