d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > D2jsp Post Blocker Updated
12Next
Add Reply New Topic New Poll
Member
Posts: 26,862
Joined: Feb 27 2013
Gold: 4,445.68
Mar 3 2024 08:13pm
Here is 's guide updated. Thanks to for fixing it!

1) You must have chrome browser
2) down tampermonkey app in google store ( https://chrome.google.com/webstore/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo?hl=en )
3) Once you installed Tampermonkey, you'll need the script : https://greasyfork.org/en/scripts/488938-fokse-s-d2jsp-post-blocker (click install )
4) Once it's installed, refresh your d2jsp page. You should be able to see "block posts" next to "report post" and "quote"
If you click "block posts", all of that user's posts will be blocked from your view. If you want to see his or her posts again, simply click "unblock posts" and it'll go back to normal.



This post was edited by MrSK on Mar 3 2024 08:13pm
Member
Posts: 15,801
Joined: Jul 9 2021
Gold: 291.00
Mar 4 2024 04:05am
:thumbsup: nice
Member
Posts: 64,348
Joined: Aug 3 2019
Gold: 0.00
Mar 21 2024 05:14pm
a big thanks to both of you
Member
Posts: 17,501
Joined: Aug 15 2015
Gold: 3,900.01
Mar 25 2024 03:51pm
This is an admission of breaking the site rules #10, #12, #13 & #21.
Action has been taken against your account.
Member
Posts: 45,204
Joined: Sep 2 2016
Gold: 643,430.22
Apr 11 2024 02:36pm
// ==UserScript==
// @name Topic and Post remover
// @namespace http://tampermonkey.net/
// @version 1
// @description Removes posts and topics if user ID of author/post author is in bannedUsers. You add more users by using this format = ["id","id","id"] etc.
// @author Ehmmkay
// @include https://forums.d2jsp.org/topic.php*
// @include https://forums.d2jsp.org/post.php
// @include https://forums.d2jsp.org/forum.php*
// @icon https://www.google.com/s2/favicons?domain=d2jsp.org
// @require https://code.jquery.com/jquery-latest.js
// @grant none
// ==/UserScript==

var bannedUsers = ["701571"];

function parsePosts() {
$('div.ppc').each(function () {
var userId = $(this).find('div.pU a').attr('href').split("=")[1];
if (bannedUsers.indexOf(userId) !== -1) {
this.remove();
}
});
}

function parseTopics() {
$('tr').each(function () {
if ($(this).find('td:nth-child(3) a').attr('href') && ~$(this).find('td:nth-child(3) a').attr('href').indexOf('user.php?i=')) {
var userId = $(this).find('td:nth-child(3) a').attr('href').split("=")[1];
if (bannedUsers.indexOf(userId) !== -1) {
this.remove();
}
}
});
}

parsePosts();
parseTopics();

this one better
Member
Posts: 26,862
Joined: Feb 27 2013
Gold: 4,445.68
Apr 11 2024 03:09pm
Quote (123456789 @ Apr 11 2024 01:36pm)


That one's a bit more work since users have to manually put in other's IDs to block them :P Appreciate the contribution though! I'm sure someone would prefer blocking every aspect of users they dislike!

Also an update: If you would like to use this on Firefox, you can download Tampermonkey here: https://addons.mozilla.org/en-US/firefox/addon/tampermonkey/
Member
Posts: 45,204
Joined: Sep 2 2016
Gold: 643,430.22
Apr 11 2024 03:13pm
Quote (MrSK @ 11 Apr 2024 17:09)
That one's a bit more work since users have to manually put in other's IDs to block them :P Appreciate the contribution though! I'm sure someone would prefer blocking every aspect of users they dislike!

Also an update: If you would like to use this on Firefox, you can download Tampermonkey here: https://addons.mozilla.org/en-US/firefox/addon/tampermonkey/


you have a nice interface and its more user friendly yea
Member
Posts: 26,862
Joined: Feb 27 2013
Gold: 4,445.68
May 6 2024 10:13am
FYI Tampermonkey will soon require you to enable developer mode to run user scripts. See here if you run into any issues: https://www.tampermonkey.net/changelog.php?version=5.1.1&ext=dhdg&updated=true&old=5.1.0&intr=true
Member
Posts: 19,442
Joined: Sep 25 2021
Gold: 11,011.36
Jun 25 2024 03:49am
works on opera gx (chromium i guess)
Member
Posts: 35,038
Joined: Jan 13 2011
Gold: 2,583.57
Jun 25 2024 03:55am
Quote (MrSK @ 4 Mar 2024 04:13)
Here is ^Whiteshadowmaster's guide updated. Thanks to ^ChocolateCoveredGummyBears for fixing it!

1) You must have chrome browser
2) down tampermonkey app in google store ( https://chrome.google.com/webstore/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo?hl=en )
3) Once you installed Tampermonkey, you'll need the script : https://greasyfork.org/en/scripts/488938-fokse-s-d2jsp-post-blocker (click install )
4) Once it's installed, refresh your d2jsp page. You should be able to see "block posts" next to "report post" and "quote"
If you click "block posts", all of that user's posts will be blocked from your view. If you want to see his or her posts again, simply click "unblock posts" and it'll go back to normal.

https://i.imgur.com/OVXI7an.png


Go to Settings to activate Windows
Go Back To Programming & Development Topic List
12Next
Add Reply New Topic New Poll