User Controls

Greasemonkey Script for Blocking Posts Based on Various Conditions

  1. #41
    Mahmoud Houston
    Hey, OP is discussing it, he's equally culpable.
  2. #42
    gadzooks Dark Matter [keratinize my mild-tasting blossoming]
    Here's a version that simply looks for the substring "infinity" in the username (in case you would rather block on that basis than to block based on registration date:


    if (window.location.hostname === 'niggasin.space') {
    var posts = document.getElementsByClassName('post');

    for (var i = 0; i < posts.length; i++) {

    var post = posts[i];

    var user = post.getElementsByClassName('user-block')[0].getElementsByTagName('a')[0];

    var user_id = parseInt(user.href.split("/").slice(-1)[0]);
    var user_name = user.innerText;

    if (user_name.includes("infinity")) {
    console.log("User, "+user_name+", has been blocked.");
    post.innerHTML = "<div style='color: #D5DEE5;'>User, "+user_name+", has been blocked.</div>";
    };

    };
    };


    EDIT: FUCK, I had a syntax error too...

    There was a semicolon (";") inside my "if" statement.

    The updated code will work EXCEPT THAT, on top of all that, finny has altered "infinityshock" to "inflnityshock".
  3. #43
    gadzooks Dark Matter [keratinize my mild-tasting blossoming]
    Also, in case anyone is not too sure how to use GreaseMonkey, the procedure is pretty quick and straight forward (and probably quite similar for TamperMonkey as well):

    1. Google "GreaseMonkey" and go to the site to install it.
    2. Click "Add to Firefox" or some such button.
    3. Go to the little monkey icon in the top right of your browser, click it, then in the drop down menu, click "New user script".
    4. Copy the JS script from this page into that new script (underneath the commented lines at the very top (in orange)).
    5. Check under the monkey icon dropdown menu to see if your new script is enabled.
    The following users say it would be alright if the author of this post didn't die in a fire!
  4. #44
    Michael Myers victim of incest [divide your nonresilient tucker]
    Originally posted by Ghost You know he's a chad because all of his alts have the same name.

    Chads don't spend their time on forums. Heck, Chads don't even know what a forum is.
  5. #45
    gadzooks Dark Matter [keratinize my mild-tasting blossoming]
    WELL FUCKING PLAYED FINNY...

    The whole enhancement-by-username thing just ain't gonna cut it, apparantly.

    By him changing it to "inflnityshock", the script is now useless.

    You might want to just ban by registration date like before, but be forewarned that some legit new users will also be blocked.
    The following users say it would be alright if the author of this post didn't die in a fire!
  6. #46
    gadzooks Dark Matter [keratinize my mild-tasting blossoming]
    Originally posted by gadzooks Here's a version that simply looks for the substring "infinity" in the username (in case you would rather block on that basis than to block based on registration date:


    if (window.location.hostname === 'niggasin.space') {
    var posts = document.getElementsByClassName('post');

    for (var i = 0; i < posts.length; i++) {

    var post = posts[i];

    var user = post.getElementsByClassName('user-block')[0].getElementsByTagName('a')[0];

    var user_id = parseInt(user.href.split("/").slice(-1)[0]);
    var user_name = user.innerText;

    if (user_name.includes("infinity")) {
    console.log("User, "+user_name+", has been blocked.");
    post.innerHTML = "<div style='color: #D5DEE5;'>User, "+user_name+", has been blocked.</div>";
    };

    };
    };


    EDIT: FUCK, I had a syntax error too…

    There was a semicolon (";") inside my "if" statement.

    The updated code will work EXCEPT THAT, on top of all that, finny has altered "infinityshock" to "inflnityshock".

    There was a syntax error here as well (my bad).
  7. #47
    gadzooks Dark Matter [keratinize my mild-tasting blossoming]
    User, inflnityshock ripped off lanny the trannys granny panty to give him a whammy in his faggy saggy fanny then made him say 'spank me daddy' and sold him to a nappy KKK picaninny to be his nutsack-nanny in the KKK all day, has been blocked.

  8. #48
    Originally posted by Mahmoud Lmao triggered u mad

    Moody, Making people mad is not big and it's not clever.
  9. #49
    Soyboy V: A Cat-Girl/Boy Under Every Bed African Astronaut [my no haunted nonbeing]
    Originally posted by lnflnltyshock ripped off lanny the trannys granny panty to give him a whammy in his faggy saggy fanny then made him say 'spank me daddy' and sold him to a nappy KKK picaninny to be his nutsack-nanny in the KKK all day how's that script workin' out for you, nigger?

    Lol pwn
  10. #50
    Soyboy V: A Cat-Girl/Boy Under Every Bed African Astronaut [my no haunted nonbeing]
    How about some simple if fil+ering.

    Like if (post has more than 1 image or has more than 10 newlines) and user is new then block.
    The following users say it would be alright if the author of this post didn't die in a fire!
  11. #51
    gadzooks Dark Matter [keratinize my mild-tasting blossoming]
    Originally posted by MORALLY SUPERIOR BEING V: A Cat-Girl/Boy Under Every Bed How about some simple if fil+ering.

    Like if (post has more than 1 image or has more than 10 newlines) and user is new then block.

    Yeah I'm gonna explore play around with a few different conditionals to try and find an optimal setup.

    ALSO, I want to allow for user customization for users to be able to adjust various settings... It's basically turning into a full-fledged Firefox Add-On. But that's for a long-term project.
  12. #52
    gadzooks Dark Matter [keratinize my mild-tasting blossoming]
    Every infinityshock influx, I will continue bumping this thread.
  13. #53
    Sophie Pedophile Tech Support
    Originally posted by gadzooks WELL FUCKING PLAYED FINNY

    The whole enhancement-by-username thing just ain't gonna cut it, apparantly.

    By him changing it to "inflnityshock", the script is now useless.

    You might want to just ban by registration date like before, but be forewarned that some legit new users will also be blocked.

    Didn't you run a language analysis on Finny? If you're going through the effort of writing user scripts and doing a language analysis why not make a scraper, host NiS on your own machine feed the DB the posts and build a bot that simply copies the contents of your post box to the real NiS when you hit 'Submit'. Then you write something that analyzes all the posts you got stored locally, heck analyze them in transit to your mirror if you can. enhancement out any user that has more than 10 posts with the same language comprehension score as finny, grab the username directly from the post and purge all the account's activity from the local DB.
    The following users say it would be alright if the author of this post didn't die in a fire!
  14. #54
    Sophie Pedophile Tech Support
    Heck write a fucking user script that redirects you to 127.0.0.1:1337 whenever you type 'niggasin.space' into your browser. Be sure to host NiS on an IP/PORT that reflects what you put the user script.
  15. #55
    Sophie Pedophile Tech Support
    Or you know, just host a local mirror and delete finny by hand via the adminCP and stuff. I tend to over complicate things.
  16. #56
    gadzooks Dark Matter [keratinize my mild-tasting blossoming]
    Originally posted by Sophie Didn't you run a language analysis on Finny? If you're going through the effort of writing user scripts and doing a language analysis why not make a scraper, host NiS on your own machine feed the DB the posts and build a bot that simply copies the contents of your post box to the real NiS when you hit 'Submit'. Then you write something that analyzes all the posts you got stored locally, heck analyze them in transit to your mirror if you can. enhancement out any user that has more than 10 posts with the same language comprehension score as finny, grab the username directly from the post and purge all the account's activity from the local DB.

    Funny you should mention that, because it's very, very similar to one of the projects I'm currently working on now that I have archived the entire site (just finished the other day - I throttled myself for the sake of the site, but in about a day I got everything (except PMs, etc).

    I never thought of mirroring it to a different URL/IP, though. My plan to analyze finny posts for post patterns (and his are ridiculously consistent, clearly; an absolute cakewalk for machine learning), but I hadn't really gotten into the real-world applications of it all; it was merely a research / practice project for me thus far.
  17. #57
    Sophie Pedophile Tech Support
    Originally posted by gadzooks Funny you should mention that, because it's very, very similar to one of the projects I'm currently working on now that I have archived the entire site (just finished the other day - I throttled myself for the sake of the site, but in about a day I got everything (except PMs, etc).

    I never thought of mirroring it to a different URL/IP, though. My plan to analyze finny posts for post patterns (and his are ridiculously consistent, clearly; an absolute cakewalk for machine learning), but I hadn't really gotten into the real-world applications of it all; it was merely a research / practice project for me thus far.

    You like big data? I like security, maybe we should build something together. I know an ML expert that might be willing to help as well if we are going to be implementing some sort of AI.
  18. #58
    Sophie Pedophile Tech Support
    In fact there's a bunch of real world applications i can conjure up in my mind for this. Some nefarious, some benign. Pick your fancy.
Jump to Top