Hide Luraph Threads

Hide all of the shitty Luraph threads

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

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

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği indirebilmeniz için ayrıca Tampermonkey gibi bir eklenti kurmanız gerekmektedir.

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

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.

(Zateb bir user-style yöneticim var, yükleyeyim!)

// ==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!")
        }
    }
});