Bot to Top

Move Youtuber Converter Bots to the top of the thread

Stan na 20-04-2016. Zobacz najnowsza wersja.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

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

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

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.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==UserScript==
// @name         Bot to Top
// @namespace    http://tampermonkey.net/
// @version      0.6
// @description  Move Youtuber Converter Bots to the top of the thread
// @author       Itskira
// @match        *://*.reddit.com/r/*
// @grant        none
// ==/UserScript==

(function() {
    'use strict';

    // Your code here...
    //Oddshot (/u/YouTubeConverterBot) Posssibly Banned/
    if($('a.title').attr('href').toLowerCase().indexOf("oddshot.tv")) { //Link check
        var post = $(".commentarea a.author[href$='/user/YouTubeConverterBot']").parent().parent().parent(); //Comment + children
        post.parent().prepend(post); //Move it to the top
        post.css({outline: "1px solid #222547"}); //Purple from Oddshot outline
    }

    //Oddshot (/u/BeepBooBeepBoop)
    if($('a.title').attr('href').toLowerCase().indexOf("oddshot.tv")) { //Link check
        var post = $(".commentarea a.author[href$='/user/BeepBooBeepBoop']").parent().parent().parent(); //Comment + children
        post.parent().prepend(post); //Move it to the top
        post.css({outline: "1px solid #222547"}); //Purple from Oddshot outline
    }

    //Oddshot (/u/sddeer)
    if($('a.title').attr('href').toLowerCase().indexOf("oddshot.tv")) { //Link check
        var post = $(".commentarea a.author[href$='/user/sddeer']").parent().parent().parent(); //Comment + children
        post.parent().prepend(post); //Move it to the top
        post.css({outline: "1px solid #222547"}); //Purple from Oddshot outline
    }

    // Playstv (/u/playstv_bot)
    if($('a.title').attr('href').toLowerCase().indexOf("plays.tv")) { //Link check
        var post = $(".commentarea a.author[href$='/user/playstv_bot']").parent().parent().parent(); //Comment + children
        post.parent().prepend(post); //Move it to the top
        post.css({outline: "1px solid #5E94A4"}); //Blue from Playstv outline
    }
})();