Skip to content

Commit e035c52

Browse files
committed
Fix script searching
1 parent c944090 commit e035c52

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Public/dashboard.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -807,7 +807,7 @@ async function searchGreasyfork(elements) {
807807
// Fix: Use correct endpoint with query parameter
808808
const encodedQuery = encodeURIComponent(query);
809809
const response = await fetch(
810-
`https://greasyfork.org/en/scripts.json?q=${encodedQuery}`
810+
`https://api.greasyfork.org/en/scripts.json?q=${encodedQuery}`
811811
);
812812

813813
if (!response.ok) {
@@ -863,7 +863,7 @@ function createScriptCard(script) {
863863
<h3>${escapeHtml(script.name)}</h3>
864864
<div class="script-card-meta">
865865
<span>👤 ${formatNumber(script.total_installs)}</span>
866-
<span> ${formatNumber(script.daily_installs)}</span>
866+
<span>👍 ${formatNumber(script.good_ratings)}</span>
867867
<span>v${script.version || "1.0.0"}</span>
868868
</div>
869869
<p class="script-card-description">${escapeHtml(

0 commit comments

Comments
 (0)