View Single Post
Old 08-24-2018, 07:16 PM  
blackmonsters
Making PHP work
 
blackmonsters's Avatar
 
Industry Role:
Join Date: Nov 2002
Location: 🌎🌅🌈🌇
Posts: 20,227
Quote:
Originally Posted by RyuLion View Post
What's the script so I can completely block those user's threads, I don't even wanna see their threads but they're are still visible even when I block them.
This is the browser extension to install : https://tampermonkey.net/


This is the script to put into tampermonkey :


PHP Code:
// ==UserScript==
// @name        gfy.com
// @description block  threads,  posts, etc from certain users
// @include     https://gfy.com/*
// @include     http://*.gfy.com/*
// @include     https://gfy.com/*
// @include     https://*.gfy.com/*
// @require     https://code.jquery.com/jquery-1.7.2.min.js
// @version     1.0
// @grant       none
// ==/UserScript==
 
var hide_users = [
    
'Juicy D. Links',
    
'mineistaken',
    
'TheSquealer',
    
'420',
    
'#23',
    
'Brian837',
    
'desertfoxx',
    
'xXXtesy10',
    
'L-Pink',
    
'escorpio',
    
'Sid70',
    
'Horatio Caine',
    
'CjTheFish',
    
'nico-t',
    
'Relic',
    
'Smack dat',
    
'Grapesoda',
    
'Matt 26z',
    
'Nitzer Ebb',
    
'wehateporn',
    
'Google Expert',
    
'Joshua G',
    
'Smut-Talk',
    
'MrMaxwell',
    
'onwebcam',
    
'OneHungLo',
    
'Just Alex',
    
'GFED',
    
'BobJones123',
    
'Boozer',
    
'MFCT',
    
'Scott McD',
    
'Drax',
    
'DraX',
    
'JohnnyNight',
    
'Juicifer',
    
'Steve Rupe',
    
'oppoten',
    
'Matt-ADX',
    
'xKingx',
    
'Acepimp',
    
'hottoddy',
    
'ianmoone332000',
    
'ghjghj',
    
'Ernie D. Links',
    
'Bladewire',
    
'SilentKnight',
    
'DBS.US',
    
'SIK',
    
'8pt-buck',
    
'$5 submissions',
    
'2MuchMark',
    
'Busty2'
];
 
$(
document).ready(function () {
    $(
'#threadslist tbody tr').each(function (thread_indexthread_value) {
        var 
thread_block = $(this);
        var 
thread_starter = $('span[style="cursor:pointer"]'this).text();
        $(
hide_users).each(function (hide_indexhide_user) {
            if (
thread_starter === hide_user) {
//         $('#threadslist tbody:last').append("<tr style='opacity: 0.5'>" + thread_block.html() + "</tr>");
                
thread_block.remove();
            }
        });
    });
 
    $(
'table[id^="post"]').each(function (post_indexpost_value) {
        var 
post_block = $(this);
        var 
post_author = $('a.bigusername'this).text();
        $(
hide_users).each(function (hide_indexhide_user) {
            if (
post_author === hide_user) {
                
post_block.remove();
            }
        }); 
//removes entire post of someone on the ignore list.
 
$('div[style^="margin:"]').each(function (post_indexpost_value) {
   var 
post_block = $(this);
   var 
post_block_quote = $('div[style^="font-style:italic"]'this);
   var 
post_author = $('strong'this).text();
   $(
hide_users).each(function (hide_indexhide_user) {
       if (
post_author === hide_user) {
           
//post_block.remove();
           
$(post_block_quote).html("<br><font color=#998877><i>I'm a useless piece of </i></font><font size=6>&#128169</font>");
       }
   });
}); 
//removes any quotes someone may have made of a person on ignore, even if quotes multiple times but they have to have the name in the quote
 
    
}); //end of nested forloops for checking both posts and quotes.
}); 
__________________
Make Money with Porn
blackmonsters is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote