Commit 4fb4507a authored by ronald's avatar ronald

return after unselect an image

parent efb74216
......@@ -55,14 +55,18 @@ if (link.match(/login/g)){
if(a.innerText.match(/PDP\(Product Cut\)/g)) {
if(a.innerText.match(/MB/g))
a.click();
return;
}
//Unselect posters
if(a.innerText.match(/Poster/g))
if(a.innerText.match(/Poster/g)) {
a.click();
return;
}
//If images names start with "G" but it isnt a model image, unselect
if(a.innerText.match(/^G/g)) {
if(!a.innerText.match(/Model/g))
a.click();
return;
}
//If images doesnt have sku, unselect
if(!a.querySelector(".name").innerText.match(currentSku))
......
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