[~] Refactor
This commit is contained in:
parent
1018ad3266
commit
7444095e03
10
deps/greasyfork/linkedin.user.js
vendored
10
deps/greasyfork/linkedin.user.js
vendored
@ -69,6 +69,14 @@ class Linkedin {
|
||||
};
|
||||
}
|
||||
|
||||
clean_page() {
|
||||
if (location.href.search('empty_body=true') != -1)
|
||||
{
|
||||
$('head').empty();
|
||||
$('body').empty();
|
||||
}
|
||||
}
|
||||
|
||||
async data_load() {
|
||||
let self = this;
|
||||
const keys = await GM_listValues();
|
||||
@ -462,6 +470,8 @@ const online_fxreader_linkedin = new Linkedin();
|
||||
const l = new Linkedin();
|
||||
|
||||
(async () => {
|
||||
l.clean_page();
|
||||
|
||||
await l.data_load();
|
||||
|
||||
const disconnect = l.listener_add();
|
||||
|
Loading…
Reference in New Issue
Block a user