Bitcoin Forum

Other => Off-topic => Topic started by: ineededausername on December 14, 2011, 04:37:38 PM



Title: Atlas Recognizer -- Greasemonkey-, Chrome-compatible script
Post by: ineededausername on December 14, 2011, 04:37:38 PM
http://userscripts.org/scripts/show/120450
Replaces Atlas' many usernames with "I Am Atlas."

Have fun.  :)

Sorry if I missed a few things; this should cover your daily browsing though.

Donations: 16CgAMBWzqXf7dZvJnx2Cdt7VFp8srEmc3


Title: Re: Atlas Recognizer -- Greasemonkey-, Chrome-compatible script
Post by: RandyFolds on December 15, 2011, 02:09:18 AM
Pure gold!


Title: Re: Atlas Recognizer -- Greasemonkey-, Chrome-compatible script
Post by: FlipPro on December 15, 2011, 05:51:06 AM
Lol now all we need is the iPhone app.  :D


Title: Re: Atlas Recognizer -- Greasemonkey-, Chrome-compatible script
Post by: ineededausername on December 15, 2011, 10:40:52 PM
If you guys have anything you want me to add, please tell me!  I'm actually going to be maintaining this ;)
edit: Right now it recognizes Atlas in:
> Every post's "author" cell
> Every quote's "posted by ____" string
> The "Author" column in the post table when you go to a specific subforum.


Title: Re: Atlas Recognizer -- Greasemonkey-, Chrome-compatible script
Post by: terrytibbs on December 15, 2011, 10:59:10 PM
Here's another one: https://bitcointalk.org/index.php?topic=54714.0

Background: https://bitcointalk.org/index.php?topic=53176.0


Title: Re: Atlas Recognizer -- Greasemonkey-, Chrome-compatible script
Post by: Red Emerald on December 15, 2011, 11:32:38 PM
Funny


Title: Re: Atlas Recognizer -- Greasemonkey-, Chrome-compatible script
Post by: ineededausername on December 15, 2011, 11:42:20 PM
Alright, I am putting in "Anonymous..." :P
Check userscripts.org for the updated version!
Anonymous... will now be marked with a big red I Am Atlas username! :D


Title: Re: Atlas Recognizer -- Greasemonkey-, Chrome-compatible script
Post by: repentance on December 16, 2011, 12:21:33 AM
54 installations so far.



Title: Re: Atlas Recognizer -- Greasemonkey-, Chrome-compatible script
Post by: RandyFolds on December 16, 2011, 12:26:05 AM
Maybe it should replace the names with 'Unremorsefully Atlas' ?


Title: Re: Atlas Recognizer -- Greasemonkey-, Chrome-compatible script
Post by: ineededausername on December 16, 2011, 04:01:15 AM
Maybe it should replace the names with 'Unremorsefully Atlas' ?

LOL

Yes!  Can't believe I didn't think of that!   ;D


Title: Re: Atlas Recognizer -- Greasemonkey-, Chrome-compatible script
Post by: naypalm on December 16, 2011, 06:10:37 AM
should we lock the thread?  ;D


Title: Re: Atlas Recognizer -- Greasemonkey-, Chrome-compatible script
Post by: ineededausername on December 16, 2011, 01:43:32 PM
should we lock the thread?  ;D

I would, but this thread is for suggestions :P

Anyways, is everyone OK with the current list of replace-locations?


Title: Re: Atlas Recognizer -- Greasemonkey-, Chrome-compatible script
Post by: BadBear on December 16, 2011, 02:42:06 PM
This would have been great before, but him and all 21(!) of his alts were banned by theymos a couple days ago.  Still useful since theres tons of his posts everywhere.
 https://bitcointalk.org/index.php?topic=54127.0  Ban discussion starts halfway down page 2. 
Great work though  ;)


Title: Re: Atlas Recognizer -- Greasemonkey-, Chrome-compatible script
Post by: ineededausername on December 16, 2011, 04:03:18 PM
This would have been great before, but him and all 21(!) of his alts were banned by theymos a couple days ago.  Still useful since theres tons of his posts everywhere.
 https://bitcointalk.org/index.php?topic=54127.0  Ban discussion starts halfway down page 2. 
Great work though  ;)

LOL

Christ, 21 alts! O.o


Title: Re: Atlas Recognizer -- Greasemonkey-, Chrome-compatible script
Post by: naypalm on December 16, 2011, 06:54:47 PM
LOL Dang and I thought he only had a few, this script is awesome. Kinda like the glasses from "They Live".


Title: Re: Atlas Recognizer -- Greasemonkey-, Chrome-compatible script
Post by: PrintCoins on December 16, 2011, 06:59:56 PM
Brief summary of who is Atlas...


Title: Re: Atlas Recognizer -- Greasemonkey-, Chrome-compatible script
Post by: RandyFolds on December 16, 2011, 07:06:14 PM
LOL Dang and I thought he only had a few, this script is awesome. Kinda like the glasses from "They Live".

OBEY


Title: Re: Atlas Recognizer -- Greasemonkey-, Chrome-compatible script
Post by: PrintCoins on December 16, 2011, 07:14:06 PM

http://userscripts.org/scripts/show/120450
Replaces Atlas' many usernames with "I Am Atlas."

Have fun.  :)

Sorry if I missed a few things; this should cover your daily browsing though.

Donations: 16CgAMBWzqXf7dZvJnx2Cdt7VFp8srEmc3

You can shrink your conditionals by putting all aliases in an array, and then using indexOf.
Code:
var aliases = ['john', 'bill', 'steve'];
undefined
aliases.indexOf('bill');
1
aliases.indexOf('bill')>=0;
true
aliases.indexOf('j')>=0;
false
aliases.indexOf('john')>=0;
true
indexOf returns -1 when string is not found.

Then this
Code:

str = str.replace(" Atlas", " Unremorsefully Atlas");
str = str.replace(" I.Goldstein", " Unremorsefully Atlas");
str = str.replace(" Ragnar", " Unremorsefully Atlas");
str = str.replace(" Immanuel Go", " Unremorsefully Atlas");
str = str.replace(" ALPHA.", " Unremorsefully Atlas");
str = str.replace(" Harvey", " Unremorsefully Atlas");
str = str.replace(" Anonymous...", " Unremorsefully Atlas");

can be replaced with
Code:
for(var i in aliases){
   var name = ar[i];
   str = str.replace(name, " Unremorsefully Atlas");
}

Gotta keep it DRY.


Title: Re: Atlas Recognizer -- Greasemonkey-, Chrome-compatible script
Post by: ineededausername on December 16, 2011, 07:49:51 PM

http://userscripts.org/scripts/show/120450
Replaces Atlas' many usernames with "I Am Atlas."

Have fun.  :)

Sorry if I missed a few things; this should cover your daily browsing though.

Donations: 16CgAMBWzqXf7dZvJnx2Cdt7VFp8srEmc3

You can shrink your conditionals by putting all aliases in an array, and then using indexOf.
Code:
var aliases = ['john', 'bill', 'steve'];
undefined
aliases.indexOf('bill');
1
aliases.indexOf('bill')>=0;
true
aliases.indexOf('j')>=0;
false
aliases.indexOf('john')>=0;
true
indexOf returns -1 when string is not found.

Then this
Code:

str = str.replace(" Atlas", " Unremorsefully Atlas");
str = str.replace(" I.Goldstein", " Unremorsefully Atlas");
str = str.replace(" Ragnar", " Unremorsefully Atlas");
str = str.replace(" Immanuel Go", " Unremorsefully Atlas");
str = str.replace(" ALPHA.", " Unremorsefully Atlas");
str = str.replace(" Harvey", " Unremorsefully Atlas");
str = str.replace(" Anonymous...", " Unremorsefully Atlas");

can be replaced with
Code:
for(var i in aliases){
   var name = ar[i];
   str = str.replace(name, " Unremorsefully Atlas");
}

Gotta keep it DRY.


Good advice.  Just learned JS recently and haven't bothered to learn the  built-in methods yet, and I should get off my ass because that looks much better :)


Title: Re: Atlas Recognizer -- Greasemonkey-, Chrome-compatible script
Post by: repentance on December 16, 2011, 07:59:36 PM
Brief summary of who is Atlas...

It would take as long to explain "who is Atlas" as it took to explain "who is John Galt".


Title: Re: Atlas Recognizer -- Greasemonkey-, Chrome-compatible script
Post by: PrintCoins on December 16, 2011, 08:14:43 PM
I read the book but I am guessing there is a user of note.


Title: Re: Atlas Recognizer -- Greasemonkey-, Chrome-compatible script
Post by: ineededausername on January 08, 2012, 09:51:11 PM
Since Atlas is back, the script is being updated to include "EndTheBanks."


Title: Re: Atlas Recognizer -- Greasemonkey-, Chrome-compatible script
Post by: Atheros on January 08, 2012, 11:53:51 PM
I'm currently unable to reach server: http://userscripts.org/scripts/show/120450


Title: Re: Atlas Recognizer -- Greasemonkey-, Chrome-compatible script
Post by: terrytibbs on January 08, 2012, 11:57:15 PM
I'm currently unable to reach server: http://userscripts.org/scripts/show/120450
Works for me.

Here's the code, if you want to install the script manually:
Code:
// ==UserScript==
// @name AtlasRecognizer
// @namespace AtlasRecognizer
// @description AtlasRecognizer
// @match https://bitcointalk.org/*
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js
// ==/UserScript==

// a function that loads jQuery and calls a callback function when jQuery has finished loading
function addJQuery(callback) {
  var script = document.createElement("script");
  script.setAttribute("src", "http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js");
  script.addEventListener('load', function() {
    var script = document.createElement("script");
    script.textContent = "(" + callback.toString() + ")();";
    document.body.appendChild(script);
  }, false);
  document.body.appendChild(script);
}

addJQuery(function(){
var aliases = ['Atlas', 'HarveyAlpha', 'I.Goldstein', 'Ragnar', 'Immanuel Go', 'ALPHA.', 'Harvey', 'Anonymous...', 'EndTheBanks'];
$('.poster_info a, td.windowbg2 > a').each(function(ind){
if (aliases.indexOf($(this).html()) != -1
) {
$(this).html('Unremorsefully Atlas <img src="https://bitcointalk.org/Themes/custom1/images/delete.gif" alt="*" border="0">');
$(this).css('color', 'red');
}
});
$('.quoteheader').each(function(ind){
var str = $(this).html() + "";
for (var i in aliases) {
str = str.replace(" " + aliases[i], " Unremorsefully Atlas");
}
$(this).html(str);
});
});


Title: Re: Atlas Recognizer -- Greasemonkey-, Chrome-compatible script
Post by: PrintCoins on January 09, 2012, 05:42:14 PM
Is there a post or thread somewhere that explains who this dude is and why he is important enough to have a GM script devoted to him?


Title: Re: Atlas Recognizer -- Greasemonkey-, Chrome-compatible script
Post by: Atheros on January 14, 2012, 03:43:15 AM
I'm currently unable to reach server: http://userscripts.org/scripts/show/120450
Works for me.

I tried again and the links works now. Thank you! Anyone who has the Greasemonkey add-on should certainly install this.


Title: Re: Atlas Recognizer -- Greasemonkey-, Chrome-compatible script
Post by: ineededausername on January 14, 2012, 04:25:35 AM
I'm currently unable to reach server: http://userscripts.org/scripts/show/120450
Works for me.

I tried again and the links works now. Thank you! Anyone who has the Greasemonkey add-on should certainly install this.

And since Atlas is back, there'll be plenty of updates ;)


Title: Re: Atlas Recognizer -- Greasemonkey-, Chrome-compatible script
Post by: altuin on January 14, 2012, 07:16:11 PM
He has more aliases than that....