Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name DLP Ignore++
- // @version 0.2
- // @description Ignore harder than ever before
- // @author BTT
- // @match https://forums.darklordpotter.net/*
- // @grant none
- // @require https://d3js.org/d3.v4.min.js
- // ==/UserScript==
- function ignoreUser(t){
- if (t.attr("data-author") === "user1" || t.attr("data-author") === "Arthellion"){
- t.style("display", "none");
- }
- }
- (function() {
- 'use strict';
- d3.selectAll(".message").each(function(d){ ignoreUser(d3.select(this)); });
- d3.selectAll(".discussionListItem").each(function(d){ ignoreUser(d3.select(this)); });
- var blockedIDs = ['bleh','blah'];
- d3.selectAll(".PreviewTooltip").each(function(d){
- var t = d3.select(this);
- var threadnum = t.attr("href");
- threadnum = threadnum.substring(threadnum.indexOf(".") + 1);
- threadnum = threadnum.substring(0, threadnum.indexOf("/"));
- if (blockedIDs.includes(threadnum)){
- d3.select(this.parentNode.parentNode.parentNode.parentNode).style("display", "none");
- }
- });
- })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement