Commit 8523eb99 authored by Pierre M's avatar Pierre M
Browse files

only check for user registered names for unlisting


Signed-off-by: Pierre M's avatarPierre Mazière <pierre.maziere@gmx.com>
parent a5ccfaa7
......@@ -181,21 +181,12 @@
onload: function(response) {
if(response.responseText.match(/Compte fermé/)){
response.context.style.display = "none";
let userLink =response.context.getElementsByClassName('meta').item(0).getElementsByTagName('a').item(0);
let listModified = false;
let index = plonkList.indexOf(userLink.textContent);
if(index !== -1){
plonkList.splice(index,1);
listModified = true;
}
index = plonkList.indexOf(userLink.href.match(userRE)[1]);
if(index !== -1){
plonkList.splice(index,1);
listModified = true;
}
if(listModified){
GM_setValue("plonkList",JSON.stringify(plonkList));
}
let userLink =response.context.getElementsByClassName('meta').item(0).getElementsByTagName('a').item(0);
index = plonkList.indexOf(userLink.href.match(userRE)[1]);
if(index !== -1){
plonkList.splice(index,1);
GM_setValue("plonkList",JSON.stringify(plonkList));
}
}
}
});
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment