[~] Refactor
This commit is contained in:
parent
b9297f6863
commit
1e55e7baac
5
deps/greasyfork/linkedin.user.js
vendored
5
deps/greasyfork/linkedin.user.js
vendored
@ -391,6 +391,7 @@ const online_fxreader_linkedin = new Linkedin();
|
||||
action,
|
||||
word,
|
||||
};
|
||||
|
||||
}).filter((o) => o.action !== null);
|
||||
|
||||
let filtered_entries = sorted_entries.filter((o) => {
|
||||
@ -402,14 +403,14 @@ const online_fxreader_linkedin = new Linkedin();
|
||||
{
|
||||
if (k.action == 'include')
|
||||
{
|
||||
if (text.search(text) == -1)
|
||||
if (text.search(k.word) == -1)
|
||||
{
|
||||
match = false;
|
||||
}
|
||||
}
|
||||
else if (k.action == 'exclude')
|
||||
{
|
||||
if (text.search(text) != -1)
|
||||
if (text.search(k.word) != -1)
|
||||
{
|
||||
match = false;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user