Skip to content

Commit

Permalink
feat(Carousels): ✨ Add hide carousel feature
Browse files Browse the repository at this point in the history
  • Loading branch information
Valdo Ryu committed Nov 21, 2024
1 parent 11a25da commit f777840
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 @@ -277,6 +277,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 @@ -33,6 +33,7 @@ chrome.runtime.onInstalled.addListener((details) => {
'hide-other-reactions': false,
'main-toggle': true,
'sort-by-recent': true,
'hide-carousel': false,
})
})
}
Expand Down

0 comments on commit f777840

Please sign in to comment.