Initial commit

main
kirbylife 2022-12-19 15:36:42 -06:00
parent 788e7ac80e
commit c1335ba0ad
3 changed files with 47 additions and 0 deletions

10
amazon-detox.js 100644
View File

@ -0,0 +1,10 @@
setTimeout(() => {
let items = document.getElementsByClassName("s-result-item");
for(let n = 0; n < items.length; n++) {
let item = items[n];
let isInternational = item.innerHTML.includes("01siZb3GpxL");
if(isInternational) {
item.style.display = "none";
}
}
}, 500);

27
manifest.json 100644
View File

@ -0,0 +1,27 @@
{
"manifest_version": 2,
"name": "dropshipping-detox",
"version": "1.0",
"description": "Oculta todos los productos de \"importación\" de MercadoLibre México y Amazon México.",
"icons": {
"48": "icons/48.png"
},
"content_scripts": [
{
"matches": [
"*://*.mercadolibre.com.mx/*"
],
"js": [
"mercadolibre-detox.js"
]
},
{
"matches": [
"*://*.amazon.com.mx/*"
],
"js": [
"amazon-detox.js"
]
}
]
}

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("international");
if(isInternational) {
item.style.display = "none";
}
}
}, 500);