Hide Luraph Threads

Hide all of the shitty Luraph threads

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install a user script manager extension to install this script.

(I already have a user script manager, let me install it!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

// ==UserScript==
// @name         Hide Luraph Threads
// @namespace    https://hypernite.xyz
// @version      0.1
// @description  Hide all of the shitty Luraph threads
// @author       HyperNite
// @match        https://v3rmillion.net/*
// @icon         https://avatars.githubusercontent.com/u/33453589?v=4
// @require      http://code.jquery.com/jquery-latest.js
// @license MIT
// ==/UserScript==

$(document).ready(function() {
    var allThreadSubjects;
    var oldSubjects = Array.prototype.slice.call(document.getElementsByClassName("subject_old"), 0);
    var newSubjects = Array.prototype.slice.call(document.getElementsByClassName("subject_new"), 0);
    allThreadSubjects = Array.prototype.concat.call(oldSubjects, newSubjects);

    for (var i = 0; i < allThreadSubjects.length; i++) {
        var S = allThreadSubjects[i].innerHTML.toLowerCase()
        if(S.search("^.*luraph.*$") == 0){
           var elem = allThreadSubjects[i].parentNode.parentNode.parentNode
            elem.parentNode.remove(elem);
            console.log("Removed a shitty Luraph thread!")
        }
    }
});