Fetches something from itemDB, handling authentication issues arising from the March 2026 API update.
이 스크립트는 직접 설치하는 용도가 아닙니다. 다른 스크립트에서 메타 지시문 // @require https://update.greasyfork.org/scripts/567036/1759045/itemDB%20Fetch%20Lib.js을(를) 사용하여 포함하는 라이브러리입니다.
This is not a script and does nothing on its own. It was created to be @required by userscripts.
This allows an userscript to send a query to itemDB, showing an error message if the user is unauthenticated.
To use it, asynchronously call the function fetchItemDb(url, scriptName), using the URL you would use for a fetch (example: https://itemdb.com.br/api/v1/items/negg) as url, and your script's name for UI purposes in case authorization fails.