Add filter to Mercadolibre Argentina

main
kirbylife 2022-12-21 11:26:50 -06:00
parent e18f16d8a6
commit e5c3a680a1
2 changed files with 20 additions and 2 deletions

View File

@ -1,8 +1,8 @@
{ {
"manifest_version": 2, "manifest_version": 2,
"name": "dropshipping-detox", "name": "dropshipping-detox",
"version": "1.0", "version": "1.0.1",
"description": "Oculta todos los productos de \"importación\" de MercadoLibre México y Amazon México.", "description": "Oculta todos los productos de \"importación\" de MercadoLibre México/Argentina y Amazon México.",
"icons": { "icons": {
"48": "icons/48.png", "48": "icons/48.png",
"72": "icons/72.png", "72": "icons/72.png",
@ -20,6 +20,14 @@
"mercadolibre-detox.js" "mercadolibre-detox.js"
] ]
}, },
{
"matches": [
"*://*.mercadolibre.com.ar/*"
],
"js": [
"mercadolibre-arg-detox.js"
]
},
{ {
"matches": [ "matches": [
"*://*.amazon.com.mx/*" "*://*.amazon.com.mx/*"

View File

@ -0,0 +1,10 @@
setTimeout(() => {
let items = document.getElementsByClassName("ui-search-layout__item");
for(let n = 0; n < items.length; n++) {
let item = items[n];
let isInternational = item.innerHTML.includes("días después de tu compra");
if(isInternational) {
item.style.display = "none";
}
}
}, 500);