Bot to top

Move Youtuber Converter Bots to the top of the thread

目前为 2016-04-19 提交的版本。查看 最新版本

// ==UserScript==
// @name         Bot to top
// @namespace    http://tampermonkey.net/
// @version      0.5.1
// @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
    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
    }

    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 Plays outline
    }
})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址