Blocking a user on PH?
Discussion
Have a look through here: https://www.pistonheads.com/gassing/topic.asp?h=0&...
Unless it's me you're trying to block, in which case find it yourself.
Unless it's me you're trying to block, in which case find it yourself.
droopsnoot said:
Have a look through here: https://www.pistonheads.com/gassing/topic.asp?h=0&...
Unless it's me you're trying to block, in which case find it yourself.
Perfect, thanks.Unless it's me you're trying to block, in which case find it yourself.
Polly Grigora said:
Unfortunately there's no way of blocking a post from someone else quoting a post from the user you have blocked
You can do that. You just need a better script. // ==UserScript==
// @name PH users
// @namespace http://tampermonkey.net/
// @version 0.4
// @description try to take over the world!
// @author ash73
// @match https://www.pistonheads.com/gassing/*
// @grant none
// @run-at document-start
// @require http://code.jquery.com/jquery-3.4.1.min.js
// ==/UserScript==
(function() {
'use strict';
var $ = window.jQuery;
document.addEventListener("DOMContentLoaded", filter_posts);
function filter_posts() {
var names = ["Polly Grigora", "Turn7"];
for(var x = 0; x<names.length; x++) {
filter_post('msg-header', names[x]);
filter_post('forumQuoter', names[x]);
}
}
function filter_post(obj, text) {
$('div.topic-reply').has("div." + obj + ":contains('" + text + "')").remove();
}
})();
grumbledoak said:
Polly Grigora said:
Unfortunately there's no way of blocking a post from someone else quoting a post from the user you have blocked
You can do that. You just need a better script. // ==UserScript==
// @name PH users
// @namespace http://tampermonkey.net/
// @version 0.4
// @description try to take over the world!
// @author ash73
// @match https://www.pistonheads.com/gassing/*
// @grant none
// @run-at document-start
// @require http://code.jquery.com/jquery-3.4.1.min.js
// ==/UserScript==
(function() {
'use strict';
var $ = window.jQuery;
document.addEventListener("DOMContentLoaded", filter_posts);
function filter_posts() {
var names = ["Polly Grigora", "Turn7"];
for(var x = 0; x<names.length; x++) {
filter_post('msg-header', names[x]);
filter_post('forumQuoter', names[x]);
}
}
function filter_post(obj, text) {
$('div.topic-reply').has("div." + obj + ":contains('" + text + "')").remove();
}
})();
Is there anything else that needs editing apart from the following?
function filter_posts() {
var names = ["Polly Grigora", "Turn7"];
Thank you in advance
grumbledoak said:
Polly Grigora said:
Amazing, can't thank you enough for this
Is there anything else that needs editing apart from the following?
function filter_posts() {
var names = ["Polly Grigora", "Turn7"];
Thank you in advance
No, you only need to edit the list of names. Is there anything else that needs editing apart from the following?
function filter_posts() {
var names = ["Polly Grigora", "Turn7"];
Thank you in advance
This is a life changer
Gassing Station | Computers, Gadgets & Stuff | Top of Page | What's New | My Stuff