Skip to content

Commit cb49dda

Browse files
authored
feat(): add hide by keyword for Suggested (#58)
1 parent 45677d9 commit cb49dda

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

background.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ chrome.storage.local.get(null, function (res) {
2828
'hide-videos': false,
2929
'hide-whole-feed': false,
3030
'hide-liked': true,
31+
'hide-suggested': true,
3132
'hide-other-reactions': false,
3233
'main-toggle': true,
3334
'sort-by-recent': true,

content/content.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ function getKeywords(res) {
274274
if (res['hide-by-companies'])
275275
keywords.push('href="https://www.linkedin.com/company/')
276276
if (res['hide-by-people']) keywords.push('href="https://www.linkedin.com/in/')
277-
277+
if (res['hide-suggested']) keywords.push('Suggested')
278278
console.log('LinkOff: Current keywords are', keywords)
279279
return keywords
280280
}

popup/popup.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,11 @@ <h2 class="title is-2 has-text-centered">Link Off</h2>
151151

152152
<div class="divider">Hide post by interactions</div>
153153

154+
<div class="field">
155+
<input id="hide-suggested" class="switch is-rounded" type="checkbox" />
156+
<label for="hide-suggested">Hide suggestions</label>
157+
</div>
158+
154159
<div class="field">
155160
<input id="hide-liked" class="switch is-rounded" type="checkbox" />
156161
<label for="hide-liked">Hide liked by connections</label>

0 commit comments

Comments
 (0)