-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmarktplaats.user.js
30 lines (24 loc) · 999 Bytes
/
marktplaats.user.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// ==UserScript==
// @name Remove ad/link entries from marktplaats
// @namespace https://github.com/Alistair1231/my-userscripts/
// @version 0.2.3
// @description Remove ad/link entries from marktplaats!
// @author Alistair1231
// @match https://www.marktplaats.nl/q/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=marktplaats.nl
// @license MIT
// ==/UserScript==
function removeStuff(){
// enties with links to websites
document.querySelectorAll("span.mp-Listing-seller-link").forEach(x => x.parentElement.parentElement.remove())
// ad entries at bottom
document.querySelector("div.mp-Listings__admarktTitle + ul").remove();
// entry heading
document.querySelector(".mp-adsense-header.mp-text-meta").remove();
// text beneath ad heading
document.querySelector("div.mp-Listings__admarktTitle").remove();
}
(function() {
'use strict';
setInterval(removeStuff,500);
})();