Pages:
Author

Topic: Atlas Recognizer -- Greasemonkey-, Chrome-compatible script (Read 3116 times)

newbie
Activity: 42
Merit: 0
He has more aliases than that....
hero member
Activity: 784
Merit: 1000
bitcoin hundred-aire

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 Wink
sr. member
Activity: 249
Merit: 251

I tried again and the links works now. Thank you! Anyone who has the Greasemonkey add-on should certainly install this.
hero member
Activity: 533
Merit: 501
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?
hero member
Activity: 560
Merit: 501
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 *');
$(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);
});
});
sr. member
Activity: 249
Merit: 251
I'm currently unable to reach server: http://userscripts.org/scripts/show/120450
hero member
Activity: 784
Merit: 1000
bitcoin hundred-aire
Since Atlas is back, the script is being updated to include "EndTheBanks."
hero member
Activity: 533
Merit: 501
I read the book but I am guessing there is a user of note.
hero member
Activity: 868
Merit: 1000
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".
hero member
Activity: 784
Merit: 1000
bitcoin hundred-aire

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

Have fun.  Smiley

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 Smiley
hero member
Activity: 533
Merit: 501

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

Have fun.  Smiley

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.
sr. member
Activity: 448
Merit: 250
LOL Dang and I thought he only had a few, this script is awesome. Kinda like the glasses from "They Live".

OBEY
hero member
Activity: 533
Merit: 501
Brief summary of who is Atlas...
legendary
Activity: 1272
Merit: 1012
howdy
LOL Dang and I thought he only had a few, this script is awesome. Kinda like the glasses from "They Live".
hero member
Activity: 784
Merit: 1000
bitcoin hundred-aire
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://bitcointalksearch.org/topic/why-i-am-glad-i-have-clowned-around-on-this-forum-54127  Ban discussion starts halfway down page 2. 
Great work though  Wink

LOL

Christ, 21 alts! O.o
legendary
Activity: 1652
Merit: 1128
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://bitcointalksearch.org/topic/why-i-am-glad-i-have-clowned-around-on-this-forum-54127  Ban discussion starts halfway down page 2. 
Great work though  Wink
hero member
Activity: 784
Merit: 1000
bitcoin hundred-aire
should we lock the thread?  Grin

I would, but this thread is for suggestions Tongue

Anyways, is everyone OK with the current list of replace-locations?
legendary
Activity: 1272
Merit: 1012
howdy
should we lock the thread?  Grin
hero member
Activity: 784
Merit: 1000
bitcoin hundred-aire
Maybe it should replace the names with 'Unremorsefully Atlas' ?

LOL

Yes!  Can't believe I didn't think of that!   Grin
sr. member
Activity: 448
Merit: 250
Maybe it should replace the names with 'Unremorsefully Atlas' ?
Pages:
Jump to: