Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Putzfrau.js
- // @namespace Putzfrau
- // @match https://www.dbna.com/**
- // @grant none
- // @version 1.0
- // @author d_ice
- // @description Effektive Putzfrau für Posts von Müll usern
- // ==/UserScript==
- var blacklist = [
- "Pacenotes",
- "DrChiller",
- "nuages",
- "hvob"
- ];
- window.setInterval(function(){
- // Click "View More" Buttons
- for(let elem of document.getElementsByClassName("ui icon button")) {
- if(elem.innerHTML.toString().includes("Mehr anzeigen")){
- if(elem.parentNode.parentNode.className.includes("comments")) {
- elem.click();
- }
- }
- }
- // Remove entries from users on blacklist
- for(let e of document.getElementsByClassName("content heading")) {
- for(let bl of blacklist) {
- if(e.innerHTML.toString().toLowerCase().includes(bl.toLowerCase())) {
- e.parentNode.innerHTML = "";
- console.log("Removed Post from "+bl);
- break;
- }
- }
- }
- // Remove Rotations (Für Dich / Empfohlene Gruppen)
- for(let e of document.getElementsByClassName("rotation")) {
- e.innerHTML = "";
- }
- }, 50);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement