Show DevBest [Userscript] Auto-like Certain Users

TesoMayn

Boredom, it vexes me.
Oct 30, 2011
1,482
1,482
Just a basic userscript I literally just wrote.
I added the comments for those who are not experienced with jQuery, to help them understand the functions :p

Code:
// ==UserScript==
// @name         DevBest Auto-like
// @namespace    http://tesomayn.com/
// @version      1.0
// @description  Like certain user's post automatically
// @author       TesoMayn
// @match        https://devbest.com/threads/*
// @grant        none
// ==/UserScript==

$(document).ready(function() { // Executes when the page is loaded
    var users = ['TesoMayn', 'Canadian', 'Donkjam', 'RastaLulz', 'Sledmore']; // Add users you want to autolike to this array
    $.each(users, function() { // Searches each user in the array
        if ($('li[data-author="'+this+'"]').length) { // Checks if user has posted
            $('li[data-author="'+this+'"]').each( function() { // If user has posted, like their post
                $('a.LikeLink.item.control.like',this).click();
            });
            var total = $('li[data-author="'+this+'"] a.LikeLink.item.control.like').length; // Generates the total number of posts liked
            if ( total >= 1 ) { // If there was a new post liked
                console.log('Liked '+total+' of '+this+'\'s post');
            } else { // If no new post was Liked
                console.log('All of '+this+'\'s post are liked');
            }
        }
    });
});
 

Sledmore

Chaturbate Livestreamer
Staff member
FindRetros Moderator
Jul 24, 2010
5,194
3,901
Nice, this had me wondering too, lol. Woke up with 10 notifications, most of them from you.

Although, I do think it was a bad idea to release this - people will just spam eachother now.
 

TesoMayn

Boredom, it vexes me.
Oct 30, 2011
1,482
1,482
Nice, this had me wondering too, lol. Woke up with 10 notifications, most of them from you.

Although, I do think it was a bad idea to release this - people will just spam eachother now.

Probably, but for once it will be spam that's not stupid. At least if person X does abuse it, Y will get a bunch of likes (which isn't a bad thing)
 

Users who are viewing this thread

Top