Skip to content

Commit

Permalink
feat(Carousels): ✨ Add hide carousel feature (#65)
Browse files Browse the repository at this point in the history
* feat(Carousels): ✨ Add hide carousel feature

* fix(Carousels): 🐛 Fix chrome storage default label

---------

Co-authored-by: Valdo Ryu <[email protected]>
  • Loading branch information
valdoryu and Valdo Ryu authored Nov 22, 2024
1 parent 5b0e366 commit c886b1d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
2 changes: 2 additions & 0 deletions content/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -289,6 +289,8 @@ function getKeywords(res) {
keywords.push('href="https://www.linkedin.com/company/')
if (res['hide-by-people']) keywords.push('href="https://www.linkedin.com/in/')
if (res['hide-suggested']) keywords.push('Suggested')
if (res['hide-carousels']) keywords.push('iframe')

console.log('LinkOff: Current keywords are', keywords)
return keywords
}
Expand Down
8 changes: 8 additions & 0 deletions popup/popup.html
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,14 @@ <h2 class="title is-2 has-text-centered">Link Off</h2>
<input id="hide-images" class="switch is-rounded" type="checkbox" />
<label for="hide-images">Hide images</label>
</div>
<div class="field">
<input
id="hide-carousels"
class="switch is-rounded"
type="checkbox"
/>
<label for="hide-carousels">Hide carousels</label>
</div>
<div class="field">
<input id="hide-promoted" class="switch is-rounded" type="checkbox" />
<label for="hide-promoted">Hide promoted</label>
Expand Down
1 change: 1 addition & 0 deletions service_worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ chrome.runtime.onInstalled.addListener((details) => {
'hide-other-reactions': false,
'main-toggle': true,
'sort-by-recent': true,
'hide-carousels': false,
})
})
}
Expand Down

0 comments on commit c886b1d

Please sign in to comment.