Skip to content

Commit

Permalink
Add tips on ways to improve search
Browse files Browse the repository at this point in the history
  • Loading branch information
imdj committed Feb 12, 2024
1 parent 7710d7a commit a3a29d8
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
10 changes: 10 additions & 0 deletions HNRelevant.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,16 @@ const relevantContent = `
<input id="queryCustomization" placeholder="${searchQuery.rawQuery}" value="${searchQuery.query}">
<button type="submit" id="submitCustomization" style="margin-left: 5px;">Submit</button>
</div>
<details>
<summary>The results aren't good?</summary>
<p>Try the following:
<ul>
<li>Omit years and numbers</li>
<li>Remove irrelevant words to avoid noise</li>
<li>Scrap the title and use a custom query instead</li>
</ul>
</p>
</details>
<div id="hnrelevant-controls">
<div>
<label for="numOfResultsDropdown">Num of results</label>
Expand Down
10 changes: 10 additions & 0 deletions scripts/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,16 @@ const relevantContent = `
<input id="queryCustomization" placeholder="${searchQuery.rawQuery}" value="${searchQuery.query}">
<button type="submit" id="submitCustomization" style="margin-left: 5px;">Submit</button>
</div>
<details>
<summary>The results aren't good?</summary>
<p>Try the following:
<ul>
<li>Omit years and numbers</li>
<li>Remove irrelevant words to avoid noise</li>
<li>Scrap the title and use a custom query instead</li>
</ul>
</p>
</details>
<div id="hnrelevant-controls">
<div>
<label for="numOfResultsDropdown">Num of results</label>
Expand Down

0 comments on commit a3a29d8

Please sign in to comment.