Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Userscript 

Award Whore - Add awards to your own profile with ease

PHP Code

<?php 
// ==UserScript==
// @name      Hack Forums Award Whore v2
// @namespace      Snorlax
// @description     Adds awards to your profile
// @require      http://ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js
// @grant      GM_setValue
// @grant      GM_getValue
// @grant      GM_deleteValue
// @include      *hackforums.net/*
// @version      1.0.2
// ==/UserScript==

uid = $("#panel").find('a').attr('href').replace(/[^0-9]/g, '');
array = [];
if(
GM_getValue("awards") != undefined) {
    array = 
JSON.parse(GM_getValue("awards"));
}
if(array == 
undefined){
    array = [];
}

if(
GM_getValue("awards") != null){
    for (var 
i=0;i<array.length;i++){
      $(
'a[href="https://hackforums.net/member.php?action=profile&uid='+uid+'"]:not(:first)').parentsUntil('tbody').find('.post_author_info').find("span:last").append('<img src=' + array[i] + ' />');
    };
}

if(
location.href == 'https://hackforums.net/myawards.php'){      
    $(
".thead").append('<button style="float: right;" onclick="javascript:return false;" class="button reset">Reset awards</button>');
    $(
".thead").append("Displaying current awards: ");
    for (var 
i=0;i<array.length;i++){
      $(
".thead").append('<img src=' + array[i] + ' />');
    };  

    $(
"td[class*='trow'] img").click(function(){
      $(
this).fadeTo('fast','0.2');
      array.
push($(this).attr("src"));
      
GM_setValue("awards", JSON.stringify(array));
      
console.log(array);
      
console.log(GM_getValue("awards"));
    }); 

    $(
".reset").on("click", function() {
      
GM_deleteValue("awards");
      array = [];
      $(
this).text("Awards has been reset");
      
$this = $(this);
      
interval = setInterval(function() {
      
$this.text("Reset awards");
      
clearInterval(interval);
      }, 
5000);
    });
} 

For Firefox get GreaseMonkey.
For Chrome get TamperMonkey.
For other browsers: Get Chrome.

What it does:
It adds any award you like to your profile! Client side of course, so it only works on your screen, and not others.
When you go to https://hackforums.net/myawards.php you simply press on the image of each award you want, then it will add it to your profile. You can also find that link at the bottom of the page. The text says "Awards".

[Image: 3lzfO.png]

This only works on people who has NOT set their browsing experience to "Display posts in classic mode." - You can change that here, but if you didn't change it, then it should work. Classic mode is ticked, you need to untick it.

Thanks to my good friend The Don Killuminati for giving me this idea!

­

==­===­===­=
Known bugs:

  1. When you post a new reply, the awards won't get added. Deal with it. Refresh the page and they're there.

  2. Another "bug" - You can add multiple awards by clicking on them more than once. For people who want to be a bigger whore!


This is pretty nice, thanks for the share.

Spoiler (Click to View)
You're welcome, Wonders! If you find any bugs, please report them to me.
I will have this moved out of Empire's SF once everything is done ;)
I'm glad you liked it guys. This is why I do this.. To get better, and get lots of love! =D
Thanks for the share! Mind try it out later :P
(Jun 22, 2013 07:15 AM)1n9i9c7om Wrote:  Now make it working with a server so everybody who use this userscript will see the changes from other people who use that too!

Just kidding, but I love the idea of making a script which allows you to edit the awards 😝

Nah, that would require too much work, and I'm not really into making a server and load external site stuff.
But yeah, what do you mean with edit? Like it is now, or add custom ones? 😝
(Jun 22, 2013 07:23 AM)Alpha Bruh Wrote:  Blah my awards are not showing up for some reason :/

That's odd.
Which browser do you use?
Good job Snorlax! Now I have all the awards!
Where are my credits for making you do this? Twas my idea. 😟
I love it! Looks so cool :P https://puu.sh/3m9Ea.png
I removed this.

I'd rather just go with no awards and try earn them, but thanks again anyway it was fun while I had it going 😝
I'm happy you guys liked it.
I can't tell if people still have problems, so please report them to me if you do!


Okay... 1 issue.
It seems like it removes the cookie with the awards in it, when you close and open your browser.
(Jun 22, 2013 05:26 AM)1n9i9c7om ツ Wrote:  That's pretty cool. :)
[Image: eywodzd.png]

🤣

Lol, imagine if you had them all legit.
(Jun 23, 2013 07:24 AM)Ηaze Wrote:  Lol, imagine if you had them all legit.

I bet that wouldn't come cheap, lol.
(Jun 23, 2013 04:32 PM)xadamxk Wrote:  Fun little script.

Do you have a script to make this real? xD

Yes I do! All I need is your PayPal email and password. Also keep a few million dollars on your account xD

Thanks, Mommy! (that sounds wrong)


Possibly Related Threads...
Thread / Author Replies Views Last Post
by EffexionDec 12, 2016 10:35 PM 1 160 Dec 12, 2016 10:35 PM
Last Post: Terry A. Davis
[Userscript] by H350Jun 15, 2016 12:16 PM 34 1,472 Jun 15, 2016 12:16 PM
Last Post: Omniscient
by H350May 10, 2016 07:40 AM 6 275 May 10, 2016 07:40 AM
Last Post: H350