Marktplaats Opschoner

Cleans up marktplaats.nl (Topadvertenties, Adsense, Admarkt, cookie notice)

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey, Greasemonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

You will need to install an extension such as Tampermonkey to install this script.

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्क्रिप्ट व्यवस्थापक एक्स्टेंशन इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्क्रिप्ट व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्टाईल व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

// ==UserScript==
// @name        Marktplaats Opschoner
// @namespace   CookieFoetsie
// @include     http://www.marktplaats.*/*
// @grant       none
// @version     1.10
// @description Cleans up marktplaats.nl (Topadvertenties, Adsense, Admarkt, cookie notice)
// @require     http://ajax.googleapis.com/ajax/libs/jquery/1.6/jquery.min.js
// ==/UserScript==

// remove cookie notice footer (black bar at bottom)
var CookieFoetsie = document.getElementById('layover-target');
CookieFoetsie.parentElement.removeChild(CookieFoetsie);

// Remove 'Topadvertenties' (by pettenstein - jquery)
$("span.mp-listing-priority-product:contains('Topadvertentie')").parent().parent().parent().remove();
$("td.inline-listings-banner").parent().remove();

// Remove Admarkt zut
$("#bottom-listings-divider").remove();
$("tr.bottom-listing").remove();
$("#adsense-top.adsense-block").remove();
$("#adsense-bottom.adsense-block").remove();
$("div.row.bottom-group-1.search-result.bottom-listing.listing-cas").remove();
$("div.row.bottom-group-0.search-result.bottom-listing.listing-cas").remove();
$("div.mp-adsense-header-top").remove();
$("#superCasContainerTop.adsense-csa").remove();

// Remove stupid saved searches widget
$("#saved-searches-widget.saved-searches-widget").remove();

// Remove ads with "gezocht"
$("span.mp-listing-title.wrapped:contains('Gezocht')").parent().parent().parent().parent().parent().remove();
$("div.listing-title-description:contains('Gezocht')").parent().parent().parent().remove();

// Remove ads with "Heel Nederland"
$("div.location-name:contains('Heel Nederland')").parent().parent().parent().parent().remove();

// Remove ads with thumbs-up icon
$("span.icon-thumb-up").parent().parent().parent().remove();

// Remove "Ook van deze adverteerder" junk
$("TR.search-result.horizontalRichSnippet.group-0").remove();
$("TR.search-result.horizontalRichSnippet.group-1").remove();
$("TR.horizontal-extended-listing.group-0").remove();
$("TR.horizontal-extended-listing.group-1").remove();
$("div.listing-extension").remove();

// Remove useless "Anderen Bekeken"
var SimilarFoetsie = document.getElementById('vip-right-cas-listings');
SimilarFoetsie.parentElement.removeChild(SimilarFoetsie);