• Log InLog In
  • Register
Liquid`
Team Liquid Liquipedia
EDT 23:06
CEST 05:06
KST 12:06
  • Home
  • Forum
  • Calendar
  • Streams
  • Liquipedia
  • Features
  • Store
  • EPT
  • TL+
  • StarCraft 2
  • Brood War
  • Smash
  • Heroes
  • Counter-Strike
  • Overwatch
  • Liquibet
  • Fantasy StarCraft
  • TLPD
  • StarCraft 2
  • Brood War
  • Blogs
Forum Sidebar
Events/Features
News
Featured News
Code S RO4 & Finals Preview: herO, Rogue, Classic, GuMiho0TL Team Map Contest #5: Presented by Monster Energy4Code S RO8 Preview: herO, Zoun, Bunny, Classic7Code S RO8 Preview: Rogue, GuMiho, Solar, Maru3BGE Stara Zagora 2025: Info & Preview27
Community News
Firefly suspended by EWC, replaced by Lancer2Classic & herO RO8 Interviews: "I think it’s time to teach [Rogue] a lesson."2Rogue & GuMiho RO8 interviews: "Lifting that trophy would be a testament to all I’ve had to overcome over the years and how far I’ve come on this journey.8Code S RO8 Results + RO4 Bracket (2025 Season 2)14BGE Stara Zagora 2025 - Replay Pack2
StarCraft 2
General
Firefly suspended by EWC, replaced by Lancer Jim claims he and Firefly were involved in match-fixing How herO can make history in the Code S S2 finals Rogue & GuMiho RO8 interviews: "Lifting that trophy would be a testament to all I’ve had to overcome over the years and how far I’ve come on this journey. Code S RO8 Results + RO4 Bracket (2025 Season 2)
Tourneys
[GSL 2025] Code S: Season 2 - Semi Finals & Finals WardiTV Mondays Sparkling Tuna Cup - Weekly Open Tournament $3,500 WardiTV European League 2025 Sea Duckling Open (Global, Bronze-Diamond)
Strategy
[G] Darkgrid Layout Simple Questions Simple Answers [G] PvT Cheese: 13 Gate Proxy Robo
Custom Maps
[UMS] Zillion Zerglings
External Content
Mutation # 478 Instant Karma Mutation # 477 Slow and Steady Mutation # 476 Charnel House Mutation # 475 Hard Target
Brood War
General
ASL20 Preliminary Maps BW General Discussion BGH Auto Balance -> http://bghmmr.eu/ Recent recommended BW games FlaSh Witnesses SCV Pull Off the Impossible vs Shu
Tourneys
[Megathread] Daily Proleagues [BSL 2v2] ProLeague Season 3 - Friday 21:00 CET Small VOD Thread 2.0 [BSL20] ProLeague Bracket Stage - Day 4
Strategy
I am doing this better than progamers do. [G] How to get started on ladder as a new Z player
Other Games
General Games
Stormgate/Frost Giant Megathread Path of Exile Nintendo Switch Thread Beyond All Reason What do you want from future RTS games?
Dota 2
Official 'what is Dota anymore' discussion
League of Legends
Heroes of the Storm
Simple Questions, Simple Answers Heroes of the Storm 2.0
Hearthstone
Heroes of StarCraft mini-set
TL Mafia
Vanilla Mini Mafia TL Mafia Community Thread
Community
General
Things Aren’t Peaceful in Palestine US Politics Mega-thread UK Politics Mega-thread Russo-Ukrainian War Thread Vape Nation Thread
Fan Clubs
SKT1 Classic Fan Club! Maru Fan Club
Media & Entertainment
Korean Music Discussion [Manga] One Piece
Sports
Formula 1 Discussion 2024 - 2025 Football Thread NHL Playoffs 2024 TeamLiquid Health and Fitness Initiative For 2023
World Cup 2022
Tech Support
Computer Build, Upgrade & Buying Resource Thread
TL Community
The Automated Ban List
Blogs
A Better Routine For Progame…
TrAiDoS
StarCraft improvement
iopq
Heero Yuy & the Tax…
KrillinFromwales
I was completely wrong ab…
jameswatts
Need Your Help/Advice
Glider
Trip to the Zoo
micronesia
Customize Sidebar...

Website Feedback

Closed Threads



Active: 34589 users

[WCS] Global Finals 2014 Day 1 - Page 586

Forum Index > Closed
Post a Reply
Prev 1 584 585 586 587 588 1091 Next
Video contest, cash prizes and unique forums icon, go!

Fan fiction contest has closed. The winner will be announced shortly.

Post on the future of this thread.
Cricketer12
Profile Blog Joined May 2012
United States13972 Posts
October 20 2014 16:24 GMT
#11701
On October 21 2014 01:23 The_Templar wrote:
Show nested quote +
On October 21 2014 01:23 Sakat wrote:
On October 21 2014 01:21 Cricketer12 wrote:
On October 21 2014 01:20 Sakat wrote:
On October 21 2014 01:19 SetGuitarsToKill wrote:
On October 21 2014 01:17 Sakat wrote:
On October 21 2014 01:13 SetGuitarsToKill wrote:
On October 21 2014 01:12 Die4Ever wrote:
On October 21 2014 01:10 Sakat wrote:
HOW DO YOU FIND THE TIME???!!!!!! It's amazing work!!!

it's really not that much code

+ Show Spoiler +


var names={};
if(window.hasOwnProperty('tempnames')) names=tempnames;

var namesa=[];
var counter=0;
var oclinks=[];
var piclinks=[];
var links={};

if(links.length==0) RunStats();

var tbody=$($('body').html());
RunStats(6);

function CheckLinks()
{
var links = $('body > #navwrapper:nth-child(1) #main-content > table:nth-child(2) tbody tr:nth-child(1) td:nth-child(2) a:not([title^="Next Page"]:not([rel="nofollow"]');
if(links.length==0) {
OutputStats();
return;
}
var l=$(links[0];
var url=l.attr('href');
$.ajax({url:url,success:function(data) {
console.log('\ngot '+url+' with '+data.length+' characters\n');
l.remove();
tbody=$(data);
RunStats(0);
CheckLinks();
}});
}
CheckLinks();
counter=0;

function MakeContentType()
{
return {posts:0,chars:0,pics:0,excls:0,videos:0};
}

function MakeUser(name)
{
return {name:name,score:0,recentscore:0,country:'',types:{ normal:MakeContentType(),oc:MakeContentType(),recentnormal:MakeContentType(),recentoc:MakeContentType() }};
}

function ProcessPost(user, country, date, hours_ago, post, postlink)
{
var posttext=post.text();
posttext.replace(/\s+/g,' ');
if(posttext.match(/^\s*\#PASSIONBOARD4EVER/)) return;
if(postlink=='http://www.teamliquid.net/forum/viewpost.php?post_id=23071257') return;

var contenttype='normal';
var isoc=false;
if(posttext.match(/\#IMadeThis/i) && postlink!='http://www.teamliquid.net/forum/viewpost.php?post_id=23135482') {
isoc=true;
contenttype='oc';
var summary=posttext.substr(0,195);
if(summary.length>=193) summary=summary.substr(0,190)+'...';
oclinks.push({user:user,link:postlink,summary:summary,date:date});
}
if(hours_ago<12) contenttype='recent'+contenttype;

var chars=posttext.length;
var pics=post.find('img[src^="http"]');
var numpics=0;
pics.each(function(){
var src=$(this).attr('src');
if( links.hasOwnProperty(src) ) {
links[src]++;
return;
}
links[src]=1;
numpics++;
if(isoc==false) {
piclinks.push({user:user,link:postlink,src:src,date:date});
}
});
var videos=post.find('iframe.youtube-player').length;
videos+=post.find('a[href^="http://vimeo.com/"]').length;
videos+=post.find('a[href^="https://vimeo.com/"]').length;
var excls=0;
try{excls=Math.min(10,posttext.match(/\!/g).length);}catch(e){}

if(!names[user] names[user]=MakeUser(user);
var n=names[user];
n.country=country;
var cont=n.types[contenttype];
cont.posts++;
cont.chars+=chars;
cont.pics+=numpics;
cont.excls+=excls;
cont.videos+=videos;
}

function RunStats(start)
{
console.log('\nrunning stats...\n');
tbody.find('.quote,.submessage:not(a[title="Link to this post"],.forumsig,div[style="float:right; font-size:8pt; margin-top:15px"]').remove();
tbody.find('br').replaceWith(' ');
counter=0;
tbody.find('span.forummsginfo').each(function(){
counter++;
if(window.hasOwnProperty('tempnames')==false && counter<=start) return;
var msginfotext=$(this).text();
var country='';
try{country=msginfotext.match(/^\s+\S+\s+([a-zA-Z][^\.]+).*$/)[1];}catch(e){}
var datetext=msginfotext.match(/\.\s*(([a-zA-Z]+) [^\.]*)/)[1];
var date;
if(datetext.match(/Posts/) ) {
country='';
datetext=msginfotext.match(/\S+\s*(([a-zA-Z]+) [^\.]*)/)[1];
date=new Date(datetext);
} else date=new Date(datetext);
var hours_ago=((new Date())-date)/1000/3600;
var user=msginfotext.match(/^\s*(\S*).*$/)[1];
var post=$(this).parent().parent().parent().find('tr > .forumPost:not(lightback)');
var postlink='http://www.teamliquid.net'+$(this).parent().parent().find('a.submessage[title="Link to this post"]').attr('href');
ProcessPost(user, country, date, hours_ago, post, postlink);
});
}

function numberWithCommas(x) {
return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
}

function OutputUserStats(u,place,details)
{
var out='';
if(place>0) out+='[b]#'+place+' ';
else out+='[b]';

var name=u.name;
var ut=u.types;
var score=Math.floor(u.score);
var recentscore=Math.floor(u.recentscore);
var posts=0;
var ocposts=0;
var videos=0;
var ocvideos=0;
var pics=0;
var chars=0;
var excls=0;
var recentpics=0;
var recentchars=0;
var recentexcls=0;
for(var t in ut) {
if(!ut.hasOwnProperty(t)) continue;
if(t=='normal' || t=='recentnormal') {
posts+=ut[t].posts;
videos+=ut[t].videos;
} else {
ocposts+=ut[t].posts;
ocvideos+=ut[t].videos;
}
if(t=='recentnormal' || t=='recentoc') {
recentpics+=ut[t].pics;
recentchars+=ut[t].chars;
recentexcls+=ut[t].excls;
}
pics+=ut[t].pics;
chars+=ut[t].chars;
excls+=ut[t].excls;
}

var recentposts=ut.recentnormal.posts;
var recentocposts=ut.recentoc.posts;
var recentocvideos=ut.recentoc.videos;

var cppchange=(chars/(posts+ocposts)) - ((chars-recentchars)/((posts+ocposts)-(recentposts+recentocposts)));
if(posts-recentposts==0) cppchange=(chars/posts);
cppchange=Math.floor(cppchange);
if(cppchange>0) cppchange='+'+cppchange;
if(cppchange!=cppchange)cppchange='0';

if(details==1) {
out+='[dblue]'+name+'[/dblue] - score: '+numberWithCommas(score)+' (+'+numberWithCommas(recentscore)+')[/b]n[small]posts: '+posts+' (+'+recentposts+'), ocposts: '+ocposts+' (+'+recentocposts+'), ocvids: '+ocvideos+' (+'+recentocvideos+'), pics: '+pics+' (+'+recentpics+'), chars: '+chars+' (+'+recentchars+'), exclamations: '+excls+' (+'+recentexcls+'), chars per post: '+Math.round(chars/posts)+' ('+cppchange+')[/small]n';
} else {
out+='[dblue]'+name+'[/dblue] - score: '+numberWithCommas(score)+' (+'+numberWithCommas(recentscore)+')[/b] - posts: '+posts+' (+'+recentposts+'), ocposts: '+ocposts+' (+'+recentocposts+'), ocvideos: '+ocvideos+' (+'+recentocvideos+'), pics: '+pics+' (+'+recentpics+')\n';
}
return out;
}

function OutputStats()
{
var out='';
namesa=[];
var everyone=MakeUser('EVERYONE');
var na=MakeUser('NA');
var restoftheworld=MakeUser('Unimportant Parts of the World');
var unknown=MakeUser('Unknown Region');
for(var i in names) {
if(!names.hasOwnProperty(i)) continue;
var u=names[i];
var region=restoftheworld;
if(u.country=='United States' || u.country=='Canada' || u.country=='Greenland' || u.country=='Mexico') {
region=na;
} else if(u.country=='') {
region=unknown;
}

for(var t in u.types) {
var c=u.types[t];
var score=0;
var ec=everyone.types[t];
var rc=region.types[t];
ec.videos+=c.videos;
ec.pics+=c.pics;
ec.posts+=c.posts;
ec.chars+=c.chars;
ec.excls+=c.excls;

rc.videos+=c.videos;
rc.pics+=c.pics;
rc.posts+=c.posts;
rc.chars+=c.chars;
rc.excls+=c.excls;

if(t=='oc' || t=='recentoc') score=c.videos*3000+c.pics*200+c.posts*100+c.chars/2+c.excls/10;
else score=c.pics*200+c.posts*20+c.videos*10+c.chars/10+c.excls/10;
u.score+=score;
everyone.score+=score;
region.score+=score;
if(t=='recentnormal' || t=='recentoc') {
u.recentscore+=score;
everyone.recentscore+=score;
region.recentscore+=score;
}
}
namesa.push(u);
}
namesa.push(everyone);
namesa.sort(function(a,b){
return b.score-a.score;
});
oclinks.sort(function(a,b){
//return a.date-b.date;
return b.date-a.date;
});
piclinks.sort(function(a,b){
return b.date-a.date;
});

//console.log(namesa);
var spoilerlist='';
out='';
out += '\n[center][big][b]#PASSIONBOARD4EVER[/b][/big]n\n';
for(var i in namesa) {
if(i==21) break;
var place=i;
var u=namesa[i];
out += OutputUserStats(u,place,0);
}
out += '[spoiler=More Details]n';
out += OutputUserStats(na,0,1);
out += OutputUserStats(restoftheworld,0,1);
out += '\n';
for(var i in namesa) {
var place=i;
var u=namesa[i];
out += OutputUserStats(u,place,1);
}
out += '[/spoiler]n\n';
out += '[/center]';
out += 'score = (ocvideos*3000) + (pics*200) + (ocposts*100) + (posts*20) + (videos*10) + (oc-characters/2) + (characters/10) + (exclamation points/10); (max of 10 exclamation points per post, the first 6 posts don\'t count and my #PASSIONBOARD4EVER posts don\'t count, the + and - stats is for the past 12 hours)\nso post more pics and make some videos, and make sure to use #IMadeThis when appropriate! But be careful to not use #IMadeThis in normal posts, you should say hashtag IMadeThis instead, or put it inside of a quote tag.';
out += '\n\n[center][big][b]Latest #IMadeThis Posts[/b][/big]n';
for(var i in oclinks) {
if(i==5) out += '[spoiler=More #IMadeThis Posts]';
out += '[url='+oclinks[i].link+'][b][dblue]'+oclinks[i].user+'[/dblue][/b] '+ oclinks[i].date.toDateString() +'[/url] - '+oclinks[i].summary+'\n\n';
}
out += '[/spoiler]n\nIf you made something (fanfic/article/song/lyrics/video, not a photoshop) then your post should be here, edit it to add in #IMadeThis. If you think your post shouldn\'t be here then edit it out or change it.';

out += '\n\n[spoiler=Most Recent 50 Pictures]';
for(var i in piclinks) {
if(i>=50) break;
var p=piclinks[i];
out += '[img]'+p.src+'[/img]n[url='+p.link+']Posted by '+p.user+' on [date]'+p.date+'[/date][/url]n\n';
}
out += 'This list does not include pictures from posts with #IMadeThis.[/spoiler]';
out += '[/center]';
console.log(out);
}



almost forgot, gotta quote it lol

Hey, for someone who has no idea how to code, that's still pretty impressive and looks kind of time consuming



To me it looks like witchcraft


Should we burn him?


Only if he weighs less than a duck

how did you become so educated about witches?


Monty Python and the quest for the Holy Grail

I'm fairly sure we're all referencing it

PROVE IT! WHAT IS YOUR NAME?
Kaina + Drones Linkcro Summon Cupsie Yummy Way
The_Templar
Profile Blog Joined January 2011
your Country52797 Posts
October 20 2014 16:25 GMT
#11702
On October 21 2014 01:24 Cricketer12 wrote:
Show nested quote +
On October 21 2014 01:23 The_Templar wrote:
On October 21 2014 01:23 Sakat wrote:
On October 21 2014 01:21 Cricketer12 wrote:
On October 21 2014 01:20 Sakat wrote:
On October 21 2014 01:19 SetGuitarsToKill wrote:
On October 21 2014 01:17 Sakat wrote:
On October 21 2014 01:13 SetGuitarsToKill wrote:
On October 21 2014 01:12 Die4Ever wrote:
On October 21 2014 01:10 Sakat wrote:
HOW DO YOU FIND THE TIME???!!!!!! It's amazing work!!!

it's really not that much code

+ Show Spoiler +


var names={};
if(window.hasOwnProperty('tempnames') names=tempnames;

var namesa=[];
var counter=0;
var oclinks=[];
var piclinks=[];
var links={};

if(links.length==0) RunStats();

var tbody=$($('body'.html());
RunStats(6);

function CheckLinks()
{
var links = $('body > #navwrapper:nth-child(1) #main-content > table:nth-child(2) tbody tr:nth-child(1) td:nth-child(2) a:not([title^="Next Page"]:not([rel="nofollow"]';
if(links.length==0) {
OutputStats();
return;
}
var l=$(links[0];
var url=l.attr('href';
$.ajax({url:url,success:function(data) {
console.log('ngot '+url+' with '+data.length+' characters\n';
l.remove();
tbody=$(data);
RunStats(0);
CheckLinks();
}});
}
CheckLinks();
counter=0;

function MakeContentType()
{
return {posts:0,chars:0,pics:0,excls:0,videos:0};
}

function MakeUser(name)
{
return {name:name,score:0,recentscore:0,country:'',types:{ normal:MakeContentType(),oc:MakeContentType(),recentnormal:MakeContentType(),recentoc:MakeContentType() }};
}

function ProcessPost(user, country, date, hours_ago, post, postlink)
{
var posttext=post.text();
posttext.replace(/\s+/g,' ';
if(posttext.match(/^\s*\#PASSIONBOARD4EVER/)) return;
if(postlink=='http://www.teamliquid.net/forum/viewpost.php?post_id=23071257' return;

var contenttype='normal';
var isoc=false;
if(posttext.match(/\#IMadeThis/i) && postlink!='http://www.teamliquid.net/forum/viewpost.php?post_id=23135482' {
isoc=true;
contenttype='oc';
var summary=posttext.substr(0,195);
if(summary.length>=193) summary=summary.substr(0,190)+'...';
oclinks.push({user:user,link:postlink,summary:summary,date:date});
}
if(hours_ago<12) contenttype='recent'+contenttype;

var chars=posttext.length;
var pics=post.find('img[src^="http"]';
var numpics=0;
pics.each(function(){
var src=$(this).attr('src';
if( links.hasOwnProperty(src) ) {
links[src]++;
return;
}
links[src]=1;
numpics++;
if(isoc==false) {
piclinks.push({user:user,link:postlink,src:src,date:date});
}
});
var videos=post.find('iframe.youtube-player'.length;
videos+=post.find('a[href^="http://vimeo.com/"]'.length;
videos+=post.find('a[href^="https://vimeo.com/"]'.length;
var excls=0;
try{excls=Math.min(10,posttext.match(/\!/g).length);}catch(e){}

if(!names[user] names[user]=MakeUser(user);
var n=names[user];
n.country=country;
var cont=n.types[contenttype];
cont.posts++;
cont.chars+=chars;
cont.pics+=numpics;
cont.excls+=excls;
cont.videos+=videos;
}

function RunStats(start)
{
console.log('nrunning stats...\n';
tbody.find('.quote,.submessage:not(a[title="Link to this post"],.forumsig,div[style="float:right; font-size:8pt; margin-top:15px"]'.remove();
tbody.find('br'.replaceWith(' ';
counter=0;
tbody.find('span.forummsginfo'.each(function(){
counter++;
if(window.hasOwnProperty('tempnames'==false && counter<=start) return;
var msginfotext=$(this).text();
var country='';
try{country=msginfotext.match(/^\s+\S+\s+([a-zA-Z][^\.]+).*$/)[1];}catch(e){}
var datetext=msginfotext.match(/\.\s*(([a-zA-Z]+) [^\.]*)/)[1];
var date;
if(datetext.match(/Posts/) ) {
country='';
datetext=msginfotext.match(/\S+\s*(([a-zA-Z]+) [^\.]*)/)[1];
date=new Date(datetext);
} else date=new Date(datetext);
var hours_ago=((new Date())-date)/1000/3600;
var user=msginfotext.match(/^\s*(\S*).*$/)[1];
var post=$(this).parent().parent().parent().find('tr > .forumPost:not(lightback)';
var postlink='http://www.teamliquid.net'+$(this).parent().parent().find('a.submessage[title="Link to this post"]'.attr('href';
ProcessPost(user, country, date, hours_ago, post, postlink);
});
}

function numberWithCommas(x) {
return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",";
}

function OutputUserStats(u,place,details)
{
var out='';
if(place>0) out+='[b]#'+place+' ';
else out+='[b]';

var name=u.name;
var ut=u.types;
var score=Math.floor(u.score);
var recentscore=Math.floor(u.recentscore);
var posts=0;
var ocposts=0;
var videos=0;
var ocvideos=0;
var pics=0;
var chars=0;
var excls=0;
var recentpics=0;
var recentchars=0;
var recentexcls=0;
for(var t in ut) {
if(!ut.hasOwnProperty(t)) continue;
if(t=='normal' || t=='recentnormal' {
posts+=ut[t].posts;
videos+=ut[t].videos;
} else {
ocposts+=ut[t].posts;
ocvideos+=ut[t].videos;
}
if(t=='recentnormal' || t=='recentoc' {
recentpics+=ut[t].pics;
recentchars+=ut[t].chars;
recentexcls+=ut[t].excls;
}
pics+=ut[t].pics;
chars+=ut[t].chars;
excls+=ut[t].excls;
}

var recentposts=ut.recentnormal.posts;
var recentocposts=ut.recentoc.posts;
var recentocvideos=ut.recentoc.videos;

var cppchange=(chars/(posts+ocposts)) - ((chars-recentchars)/((posts+ocposts)-(recentposts+recentocposts)));
if(posts-recentposts==0) cppchange=(chars/posts);
cppchange=Math.floor(cppchange);
if(cppchange>0) cppchange='+'+cppchange;
if(cppchange!=cppchange)cppchange='0';

if(details==1) {
out+='[dblue]'+name+'[/dblue] - score: '+numberWithCommas(score)+' (+'+numberWithCommas(recentscore)+'[/b]n[small]posts: '+posts+' (+'+recentposts+', ocposts: '+ocposts+' (+'+recentocposts+', ocvids: '+ocvideos+' (+'+recentocvideos+', pics: '+pics+' (+'+recentpics+', chars: '+chars+' (+'+recentchars+', exclamations: '+excls+' (+'+recentexcls+', chars per post: '+Math.round(chars/posts)+' ('+cppchange+'[/small]n';
} else {
out+='[dblue]'+name+'[/dblue] - score: '+numberWithCommas(score)+' (+'+numberWithCommas(recentscore)+'[/b] - posts: '+posts+' (+'+recentposts+', ocposts: '+ocposts+' (+'+recentocposts+', ocvideos: '+ocvideos+' (+'+recentocvideos+', pics: '+pics+' (+'+recentpics+'\n';
}
return out;
}

function OutputStats()
{
var out='';
namesa=[];
var everyone=MakeUser('EVERYONE';
var na=MakeUser('NA';
var restoftheworld=MakeUser('Unimportant Parts of the World';
var unknown=MakeUser('Unknown Region';
for(var i in names) {
if(!names.hasOwnProperty(i)) continue;
var u=names[i];
var region=restoftheworld;
if(u.country=='United States' || u.country=='Canada' || u.country=='Greenland' || u.country=='Mexico' {
region=na;
} else if(u.country=='' {
region=unknown;
}

for(var t in u.types) {
var c=u.types[t];
var score=0;
var ec=everyone.types[t];
var rc=region.types[t];
ec.videos+=c.videos;
ec.pics+=c.pics;
ec.posts+=c.posts;
ec.chars+=c.chars;
ec.excls+=c.excls;

rc.videos+=c.videos;
rc.pics+=c.pics;
rc.posts+=c.posts;
rc.chars+=c.chars;
rc.excls+=c.excls;

if(t=='oc' || t=='recentoc' score=c.videos*3000+c.pics*200+c.posts*100+c.chars/2+c.excls/10;
else score=c.pics*200+c.posts*20+c.videos*10+c.chars/10+c.excls/10;
u.score+=score;
everyone.score+=score;
region.score+=score;
if(t=='recentnormal' || t=='recentoc' {
u.recentscore+=score;
everyone.recentscore+=score;
region.recentscore+=score;
}
}
namesa.push(u);
}
namesa.push(everyone);
namesa.sort(function(a,b){
return b.score-a.score;
});
oclinks.sort(function(a,b){
//return a.date-b.date;
return b.date-a.date;
});
piclinks.sort(function(a,b){
return b.date-a.date;
});

//console.log(namesa);
var spoilerlist='';
out='';
out += 'n[center][big][b]#PASSIONBOARD4EVER[/b][/big]n\n';
for(var i in namesa) {
if(i==21) break;
var place=i;
var u=namesa[i];
out += OutputUserStats(u,place,0);
}
out += '[spoiler=More Details]n';
out += OutputUserStats(na,0,1);
out += OutputUserStats(restoftheworld,0,1);
out += 'n';
for(var i in namesa) {
var place=i;
var u=namesa[i];
out += OutputUserStats(u,place,1);
}
out += '[/spoiler]n\n';
out += '[/center]';
out += 'score = (ocvideos*3000) + (pics*200) + (ocposts*100) + (posts*20) + (videos*10) + (oc-characters/2) + (characters/10) + (exclamation points/10); (max of 10 exclamation points per post, the first 6 posts don\'t count and my #PASSIONBOARD4EVER posts don\'t count, the + and - stats is for the past 12 hours)\nso post more pics and make some videos, and make sure to use #IMadeThis when appropriate! But be careful to not use #IMadeThis in normal posts, you should say hashtag IMadeThis instead, or put it inside of a quote tag.';
out += 'n\n[center][big][b]Latest #IMadeThis Posts[/b][/big]n';
for(var i in oclinks) {
if(i==5) out += '[spoiler=More #IMadeThis Posts]';
out += '[url='+oclinks[i].link+'][b][dblue]'+oclinks[i].user+'[/dblue][/b] '+ oclinks[i].date.toDateString() +'[/url] - '+oclinks[i].summary+'n\n';
}
out += '[/spoiler]n\nIf you made something (fanfic/article/song/lyrics/video, not a photoshop) then your post should be here, edit it to add in #IMadeThis. If you think your post shouldn\'t be here then edit it out or change it.';

out += 'n\n[spoiler=Most Recent 50 Pictures]';
for(var i in piclinks) {
if(i>=50) break;
var p=piclinks[i];
out += '[img]'+p.src+'[/img]n[url='+p.link+']Posted by '+p.user+' on [date]'+p.date+'[/date][/url]n\n';
}
out += 'This list does not include pictures from posts with #IMadeThis.[/spoiler]';
out += '[/center]';
console.log(out);
}



almost forgot, gotta quote it lol

Hey, for someone who has no idea how to code, that's still pretty impressive and looks kind of time consuming



To me it looks like witchcraft


Should we burn him?


Only if he weighs less than a duck

how did you become so educated about witches?


Monty Python and the quest for the Holy Grail

I'm fairly sure we're all referencing it

PROVE IT! WHAT IS YOUR NAME?

The_Templar, known as __s__ in real life
Moderatorshe/her
TL+ Member
Cricketer12
Profile Blog Joined May 2012
United States13972 Posts
October 20 2014 16:25 GMT
#11703
On October 21 2014 01:25 The_Templar wrote:
Show nested quote +
On October 21 2014 01:24 Cricketer12 wrote:
On October 21 2014 01:23 The_Templar wrote:
On October 21 2014 01:23 Sakat wrote:
On October 21 2014 01:21 Cricketer12 wrote:
On October 21 2014 01:20 Sakat wrote:
On October 21 2014 01:19 SetGuitarsToKill wrote:
On October 21 2014 01:17 Sakat wrote:
On October 21 2014 01:13 SetGuitarsToKill wrote:
On October 21 2014 01:12 Die4Ever wrote:
[quote]
it's really not that much code
[quote]
almost forgot, gotta quote it lol

Hey, for someone who has no idea how to code, that's still pretty impressive and looks kind of time consuming



To me it looks like witchcraft


Should we burn him?


Only if he weighs less than a duck

how did you become so educated about witches?


Monty Python and the quest for the Holy Grail

I'm fairly sure we're all referencing it

PROVE IT! WHAT IS YOUR NAME?

The_Templar, known as __s__ in real life

WHAT IS YOUR QUEST?
Kaina + Drones Linkcro Summon Cupsie Yummy Way
Sakat
Profile Blog Joined October 2014
Croatia1599 Posts
October 20 2014 16:25 GMT
#11704
On October 21 2014 01:23 The_Templar wrote:
Show nested quote +
On October 21 2014 01:23 Sakat wrote:
On October 21 2014 01:21 Cricketer12 wrote:
On October 21 2014 01:20 Sakat wrote:
On October 21 2014 01:19 SetGuitarsToKill wrote:
On October 21 2014 01:17 Sakat wrote:
On October 21 2014 01:13 SetGuitarsToKill wrote:
On October 21 2014 01:12 Die4Ever wrote:
On October 21 2014 01:10 Sakat wrote:
HOW DO YOU FIND THE TIME???!!!!!! It's amazing work!!!

it's really not that much code

+ Show Spoiler +


var names={};
if(window.hasOwnProperty('tempnames')) names=tempnames;

var namesa=[];
var counter=0;
var oclinks=[];
var piclinks=[];
var links={};

if(links.length==0) RunStats();

var tbody=$($('body').html());
RunStats(6);

function CheckLinks()
{
var links = $('body > #navwrapper:nth-child(1) #main-content > table:nth-child(2) tbody tr:nth-child(1) td:nth-child(2) a:not([title^="Next Page"]:not([rel="nofollow"]');
if(links.length==0) {
OutputStats();
return;
}
var l=$(links[0];
var url=l.attr('href');
$.ajax({url:url,success:function(data) {
console.log('\ngot '+url+' with '+data.length+' characters\n');
l.remove();
tbody=$(data);
RunStats(0);
CheckLinks();
}});
}
CheckLinks();
counter=0;

function MakeContentType()
{
return {posts:0,chars:0,pics:0,excls:0,videos:0};
}

function MakeUser(name)
{
return {name:name,score:0,recentscore:0,country:'',types:{ normal:MakeContentType(),oc:MakeContentType(),recentnormal:MakeContentType(),recentoc:MakeContentType() }};
}

function ProcessPost(user, country, date, hours_ago, post, postlink)
{
var posttext=post.text();
posttext.replace(/\s+/g,' ');
if(posttext.match(/^\s*\#PASSIONBOARD4EVER/)) return;
if(postlink=='http://www.teamliquid.net/forum/viewpost.php?post_id=23071257') return;

var contenttype='normal';
var isoc=false;
if(posttext.match(/\#IMadeThis/i) && postlink!='http://www.teamliquid.net/forum/viewpost.php?post_id=23135482') {
isoc=true;
contenttype='oc';
var summary=posttext.substr(0,195);
if(summary.length>=193) summary=summary.substr(0,190)+'...';
oclinks.push({user:user,link:postlink,summary:summary,date:date});
}
if(hours_ago<12) contenttype='recent'+contenttype;

var chars=posttext.length;
var pics=post.find('img[src^="http"]');
var numpics=0;
pics.each(function(){
var src=$(this).attr('src');
if( links.hasOwnProperty(src) ) {
links[src]++;
return;
}
links[src]=1;
numpics++;
if(isoc==false) {
piclinks.push({user:user,link:postlink,src:src,date:date});
}
});
var videos=post.find('iframe.youtube-player').length;
videos+=post.find('a[href^="http://vimeo.com/"]').length;
videos+=post.find('a[href^="https://vimeo.com/"]').length;
var excls=0;
try{excls=Math.min(10,posttext.match(/\!/g).length);}catch(e){}

if(!names[user] names[user]=MakeUser(user);
var n=names[user];
n.country=country;
var cont=n.types[contenttype];
cont.posts++;
cont.chars+=chars;
cont.pics+=numpics;
cont.excls+=excls;
cont.videos+=videos;
}

function RunStats(start)
{
console.log('\nrunning stats...\n');
tbody.find('.quote,.submessage:not(a[title="Link to this post"],.forumsig,div[style="float:right; font-size:8pt; margin-top:15px"]').remove();
tbody.find('br').replaceWith(' ');
counter=0;
tbody.find('span.forummsginfo').each(function(){
counter++;
if(window.hasOwnProperty('tempnames')==false && counter<=start) return;
var msginfotext=$(this).text();
var country='';
try{country=msginfotext.match(/^\s+\S+\s+([a-zA-Z][^\.]+).*$/)[1];}catch(e){}
var datetext=msginfotext.match(/\.\s*(([a-zA-Z]+) [^\.]*)/)[1];
var date;
if(datetext.match(/Posts/) ) {
country='';
datetext=msginfotext.match(/\S+\s*(([a-zA-Z]+) [^\.]*)/)[1];
date=new Date(datetext);
} else date=new Date(datetext);
var hours_ago=((new Date())-date)/1000/3600;
var user=msginfotext.match(/^\s*(\S*).*$/)[1];
var post=$(this).parent().parent().parent().find('tr > .forumPost:not(lightback)');
var postlink='http://www.teamliquid.net'+$(this).parent().parent().find('a.submessage[title="Link to this post"]').attr('href');
ProcessPost(user, country, date, hours_ago, post, postlink);
});
}

function numberWithCommas(x) {
return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
}

function OutputUserStats(u,place,details)
{
var out='';
if(place>0) out+='[b]#'+place+' ';
else out+='[b]';

var name=u.name;
var ut=u.types;
var score=Math.floor(u.score);
var recentscore=Math.floor(u.recentscore);
var posts=0;
var ocposts=0;
var videos=0;
var ocvideos=0;
var pics=0;
var chars=0;
var excls=0;
var recentpics=0;
var recentchars=0;
var recentexcls=0;
for(var t in ut) {
if(!ut.hasOwnProperty(t)) continue;
if(t=='normal' || t=='recentnormal') {
posts+=ut[t].posts;
videos+=ut[t].videos;
} else {
ocposts+=ut[t].posts;
ocvideos+=ut[t].videos;
}
if(t=='recentnormal' || t=='recentoc') {
recentpics+=ut[t].pics;
recentchars+=ut[t].chars;
recentexcls+=ut[t].excls;
}
pics+=ut[t].pics;
chars+=ut[t].chars;
excls+=ut[t].excls;
}

var recentposts=ut.recentnormal.posts;
var recentocposts=ut.recentoc.posts;
var recentocvideos=ut.recentoc.videos;

var cppchange=(chars/(posts+ocposts)) - ((chars-recentchars)/((posts+ocposts)-(recentposts+recentocposts)));
if(posts-recentposts==0) cppchange=(chars/posts);
cppchange=Math.floor(cppchange);
if(cppchange>0) cppchange='+'+cppchange;
if(cppchange!=cppchange)cppchange='0';

if(details==1) {
out+='[dblue]'+name+'[/dblue] - score: '+numberWithCommas(score)+' (+'+numberWithCommas(recentscore)+')[/b]n[small]posts: '+posts+' (+'+recentposts+'), ocposts: '+ocposts+' (+'+recentocposts+'), ocvids: '+ocvideos+' (+'+recentocvideos+'), pics: '+pics+' (+'+recentpics+'), chars: '+chars+' (+'+recentchars+'), exclamations: '+excls+' (+'+recentexcls+'), chars per post: '+Math.round(chars/posts)+' ('+cppchange+')[/small]n';
} else {
out+='[dblue]'+name+'[/dblue] - score: '+numberWithCommas(score)+' (+'+numberWithCommas(recentscore)+')[/b] - posts: '+posts+' (+'+recentposts+'), ocposts: '+ocposts+' (+'+recentocposts+'), ocvideos: '+ocvideos+' (+'+recentocvideos+'), pics: '+pics+' (+'+recentpics+')\n';
}
return out;
}

function OutputStats()
{
var out='';
namesa=[];
var everyone=MakeUser('EVERYONE');
var na=MakeUser('NA');
var restoftheworld=MakeUser('Unimportant Parts of the World');
var unknown=MakeUser('Unknown Region');
for(var i in names) {
if(!names.hasOwnProperty(i)) continue;
var u=names[i];
var region=restoftheworld;
if(u.country=='United States' || u.country=='Canada' || u.country=='Greenland' || u.country=='Mexico') {
region=na;
} else if(u.country=='') {
region=unknown;
}

for(var t in u.types) {
var c=u.types[t];
var score=0;
var ec=everyone.types[t];
var rc=region.types[t];
ec.videos+=c.videos;
ec.pics+=c.pics;
ec.posts+=c.posts;
ec.chars+=c.chars;
ec.excls+=c.excls;

rc.videos+=c.videos;
rc.pics+=c.pics;
rc.posts+=c.posts;
rc.chars+=c.chars;
rc.excls+=c.excls;

if(t=='oc' || t=='recentoc') score=c.videos*3000+c.pics*200+c.posts*100+c.chars/2+c.excls/10;
else score=c.pics*200+c.posts*20+c.videos*10+c.chars/10+c.excls/10;
u.score+=score;
everyone.score+=score;
region.score+=score;
if(t=='recentnormal' || t=='recentoc') {
u.recentscore+=score;
everyone.recentscore+=score;
region.recentscore+=score;
}
}
namesa.push(u);
}
namesa.push(everyone);
namesa.sort(function(a,b){
return b.score-a.score;
});
oclinks.sort(function(a,b){
//return a.date-b.date;
return b.date-a.date;
});
piclinks.sort(function(a,b){
return b.date-a.date;
});

//console.log(namesa);
var spoilerlist='';
out='';
out += '\n[center][big][b]#PASSIONBOARD4EVER[/b][/big]n\n';
for(var i in namesa) {
if(i==21) break;
var place=i;
var u=namesa[i];
out += OutputUserStats(u,place,0);
}
out += '[spoiler=More Details]n';
out += OutputUserStats(na,0,1);
out += OutputUserStats(restoftheworld,0,1);
out += '\n';
for(var i in namesa) {
var place=i;
var u=namesa[i];
out += OutputUserStats(u,place,1);
}
out += '[/spoiler]n\n';
out += '[/center]';
out += 'score = (ocvideos*3000) + (pics*200) + (ocposts*100) + (posts*20) + (videos*10) + (oc-characters/2) + (characters/10) + (exclamation points/10); (max of 10 exclamation points per post, the first 6 posts don\'t count and my #PASSIONBOARD4EVER posts don\'t count, the + and - stats is for the past 12 hours)\nso post more pics and make some videos, and make sure to use #IMadeThis when appropriate! But be careful to not use #IMadeThis in normal posts, you should say hashtag IMadeThis instead, or put it inside of a quote tag.';
out += '\n\n[center][big][b]Latest #IMadeThis Posts[/b][/big]n';
for(var i in oclinks) {
if(i==5) out += '[spoiler=More #IMadeThis Posts]';
out += '[url='+oclinks[i].link+'][b][dblue]'+oclinks[i].user+'[/dblue][/b] '+ oclinks[i].date.toDateString() +'[/url] - '+oclinks[i].summary+'\n\n';
}
out += '[/spoiler]n\nIf you made something (fanfic/article/song/lyrics/video, not a photoshop) then your post should be here, edit it to add in #IMadeThis. If you think your post shouldn\'t be here then edit it out or change it.';

out += '\n\n[spoiler=Most Recent 50 Pictures]';
for(var i in piclinks) {
if(i>=50) break;
var p=piclinks[i];
out += '[img]'+p.src+'[/img]n[url='+p.link+']Posted by '+p.user+' on [date]'+p.date+'[/date][/url]n\n';
}
out += 'This list does not include pictures from posts with #IMadeThis.[/spoiler]';
out += '[/center]';
console.log(out);
}



almost forgot, gotta quote it lol

Hey, for someone who has no idea how to code, that's still pretty impressive and looks kind of time consuming



To me it looks like witchcraft


Should we burn him?


Only if he weighs less than a duck

how did you become so educated about witches?


Monty Python and the quest for the Holy Grail

I'm fairly sure we're all referencing it



hehehe, most likely.
Now explain to me why I'm sitting in a public library laughing out loud like a maniac?
My boy Ptak defeated two GSL champions!
Cricketer12
Profile Blog Joined May 2012
United States13972 Posts
October 20 2014 16:26 GMT
#11705
On October 21 2014 01:25 Sakat wrote:
Show nested quote +
On October 21 2014 01:23 The_Templar wrote:
On October 21 2014 01:23 Sakat wrote:
On October 21 2014 01:21 Cricketer12 wrote:
On October 21 2014 01:20 Sakat wrote:
On October 21 2014 01:19 SetGuitarsToKill wrote:
On October 21 2014 01:17 Sakat wrote:
On October 21 2014 01:13 SetGuitarsToKill wrote:
On October 21 2014 01:12 Die4Ever wrote:
On October 21 2014 01:10 Sakat wrote:
HOW DO YOU FIND THE TIME???!!!!!! It's amazing work!!!

it's really not that much code

+ Show Spoiler +


var names={};
if(window.hasOwnProperty('tempnames')) names=tempnames;

var namesa=[];
var counter=0;
var oclinks=[];
var piclinks=[];
var links={};

if(links.length==0) RunStats();

var tbody=$($('body').html());
RunStats(6);

function CheckLinks()
{
var links = $('body > #navwrapper:nth-child(1) #main-content > table:nth-child(2) tbody tr:nth-child(1) td:nth-child(2) a:not([title^="Next Page"]:not([rel="nofollow"]');
if(links.length==0) {
OutputStats();
return;
}
var l=$(links[0];
var url=l.attr('href');
$.ajax({url:url,success:function(data) {
console.log('\ngot '+url+' with '+data.length+' characters\n');
l.remove();
tbody=$(data);
RunStats(0);
CheckLinks();
}});
}
CheckLinks();
counter=0;

function MakeContentType()
{
return {posts:0,chars:0,pics:0,excls:0,videos:0};
}

function MakeUser(name)
{
return {name:name,score:0,recentscore:0,country:'',types:{ normal:MakeContentType(),oc:MakeContentType(),recentnormal:MakeContentType(),recentoc:MakeContentType() }};
}

function ProcessPost(user, country, date, hours_ago, post, postlink)
{
var posttext=post.text();
posttext.replace(/\s+/g,' ');
if(posttext.match(/^\s*\#PASSIONBOARD4EVER/)) return;
if(postlink=='http://www.teamliquid.net/forum/viewpost.php?post_id=23071257') return;

var contenttype='normal';
var isoc=false;
if(posttext.match(/\#IMadeThis/i) && postlink!='http://www.teamliquid.net/forum/viewpost.php?post_id=23135482') {
isoc=true;
contenttype='oc';
var summary=posttext.substr(0,195);
if(summary.length>=193) summary=summary.substr(0,190)+'...';
oclinks.push({user:user,link:postlink,summary:summary,date:date});
}
if(hours_ago<12) contenttype='recent'+contenttype;

var chars=posttext.length;
var pics=post.find('img[src^="http"]');
var numpics=0;
pics.each(function(){
var src=$(this).attr('src');
if( links.hasOwnProperty(src) ) {
links[src]++;
return;
}
links[src]=1;
numpics++;
if(isoc==false) {
piclinks.push({user:user,link:postlink,src:src,date:date});
}
});
var videos=post.find('iframe.youtube-player').length;
videos+=post.find('a[href^="http://vimeo.com/"]').length;
videos+=post.find('a[href^="https://vimeo.com/"]').length;
var excls=0;
try{excls=Math.min(10,posttext.match(/\!/g).length);}catch(e){}

if(!names[user] names[user]=MakeUser(user);
var n=names[user];
n.country=country;
var cont=n.types[contenttype];
cont.posts++;
cont.chars+=chars;
cont.pics+=numpics;
cont.excls+=excls;
cont.videos+=videos;
}

function RunStats(start)
{
console.log('\nrunning stats...\n');
tbody.find('.quote,.submessage:not(a[title="Link to this post"],.forumsig,div[style="float:right; font-size:8pt; margin-top:15px"]').remove();
tbody.find('br').replaceWith(' ');
counter=0;
tbody.find('span.forummsginfo').each(function(){
counter++;
if(window.hasOwnProperty('tempnames')==false && counter<=start) return;
var msginfotext=$(this).text();
var country='';
try{country=msginfotext.match(/^\s+\S+\s+([a-zA-Z][^\.]+).*$/)[1];}catch(e){}
var datetext=msginfotext.match(/\.\s*(([a-zA-Z]+) [^\.]*)/)[1];
var date;
if(datetext.match(/Posts/) ) {
country='';
datetext=msginfotext.match(/\S+\s*(([a-zA-Z]+) [^\.]*)/)[1];
date=new Date(datetext);
} else date=new Date(datetext);
var hours_ago=((new Date())-date)/1000/3600;
var user=msginfotext.match(/^\s*(\S*).*$/)[1];
var post=$(this).parent().parent().parent().find('tr > .forumPost:not(lightback)');
var postlink='http://www.teamliquid.net'+$(this).parent().parent().find('a.submessage[title="Link to this post"]').attr('href');
ProcessPost(user, country, date, hours_ago, post, postlink);
});
}

function numberWithCommas(x) {
return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
}

function OutputUserStats(u,place,details)
{
var out='';
if(place>0) out+='[b]#'+place+' ';
else out+='[b]';

var name=u.name;
var ut=u.types;
var score=Math.floor(u.score);
var recentscore=Math.floor(u.recentscore);
var posts=0;
var ocposts=0;
var videos=0;
var ocvideos=0;
var pics=0;
var chars=0;
var excls=0;
var recentpics=0;
var recentchars=0;
var recentexcls=0;
for(var t in ut) {
if(!ut.hasOwnProperty(t)) continue;
if(t=='normal' || t=='recentnormal') {
posts+=ut[t].posts;
videos+=ut[t].videos;
} else {
ocposts+=ut[t].posts;
ocvideos+=ut[t].videos;
}
if(t=='recentnormal' || t=='recentoc') {
recentpics+=ut[t].pics;
recentchars+=ut[t].chars;
recentexcls+=ut[t].excls;
}
pics+=ut[t].pics;
chars+=ut[t].chars;
excls+=ut[t].excls;
}

var recentposts=ut.recentnormal.posts;
var recentocposts=ut.recentoc.posts;
var recentocvideos=ut.recentoc.videos;

var cppchange=(chars/(posts+ocposts)) - ((chars-recentchars)/((posts+ocposts)-(recentposts+recentocposts)));
if(posts-recentposts==0) cppchange=(chars/posts);
cppchange=Math.floor(cppchange);
if(cppchange>0) cppchange='+'+cppchange;
if(cppchange!=cppchange)cppchange='0';

if(details==1) {
out+='[dblue]'+name+'[/dblue] - score: '+numberWithCommas(score)+' (+'+numberWithCommas(recentscore)+')[/b]n[small]posts: '+posts+' (+'+recentposts+'), ocposts: '+ocposts+' (+'+recentocposts+'), ocvids: '+ocvideos+' (+'+recentocvideos+'), pics: '+pics+' (+'+recentpics+'), chars: '+chars+' (+'+recentchars+'), exclamations: '+excls+' (+'+recentexcls+'), chars per post: '+Math.round(chars/posts)+' ('+cppchange+')[/small]n';
} else {
out+='[dblue]'+name+'[/dblue] - score: '+numberWithCommas(score)+' (+'+numberWithCommas(recentscore)+')[/b] - posts: '+posts+' (+'+recentposts+'), ocposts: '+ocposts+' (+'+recentocposts+'), ocvideos: '+ocvideos+' (+'+recentocvideos+'), pics: '+pics+' (+'+recentpics+')\n';
}
return out;
}

function OutputStats()
{
var out='';
namesa=[];
var everyone=MakeUser('EVERYONE');
var na=MakeUser('NA');
var restoftheworld=MakeUser('Unimportant Parts of the World');
var unknown=MakeUser('Unknown Region');
for(var i in names) {
if(!names.hasOwnProperty(i)) continue;
var u=names[i];
var region=restoftheworld;
if(u.country=='United States' || u.country=='Canada' || u.country=='Greenland' || u.country=='Mexico') {
region=na;
} else if(u.country=='') {
region=unknown;
}

for(var t in u.types) {
var c=u.types[t];
var score=0;
var ec=everyone.types[t];
var rc=region.types[t];
ec.videos+=c.videos;
ec.pics+=c.pics;
ec.posts+=c.posts;
ec.chars+=c.chars;
ec.excls+=c.excls;

rc.videos+=c.videos;
rc.pics+=c.pics;
rc.posts+=c.posts;
rc.chars+=c.chars;
rc.excls+=c.excls;

if(t=='oc' || t=='recentoc') score=c.videos*3000+c.pics*200+c.posts*100+c.chars/2+c.excls/10;
else score=c.pics*200+c.posts*20+c.videos*10+c.chars/10+c.excls/10;
u.score+=score;
everyone.score+=score;
region.score+=score;
if(t=='recentnormal' || t=='recentoc') {
u.recentscore+=score;
everyone.recentscore+=score;
region.recentscore+=score;
}
}
namesa.push(u);
}
namesa.push(everyone);
namesa.sort(function(a,b){
return b.score-a.score;
});
oclinks.sort(function(a,b){
//return a.date-b.date;
return b.date-a.date;
});
piclinks.sort(function(a,b){
return b.date-a.date;
});

//console.log(namesa);
var spoilerlist='';
out='';
out += '\n[center][big][b]#PASSIONBOARD4EVER[/b][/big]n\n';
for(var i in namesa) {
if(i==21) break;
var place=i;
var u=namesa[i];
out += OutputUserStats(u,place,0);
}
out += '[spoiler=More Details]n';
out += OutputUserStats(na,0,1);
out += OutputUserStats(restoftheworld,0,1);
out += '\n';
for(var i in namesa) {
var place=i;
var u=namesa[i];
out += OutputUserStats(u,place,1);
}
out += '[/spoiler]n\n';
out += '[/center]';
out += 'score = (ocvideos*3000) + (pics*200) + (ocposts*100) + (posts*20) + (videos*10) + (oc-characters/2) + (characters/10) + (exclamation points/10); (max of 10 exclamation points per post, the first 6 posts don\'t count and my #PASSIONBOARD4EVER posts don\'t count, the + and - stats is for the past 12 hours)\nso post more pics and make some videos, and make sure to use #IMadeThis when appropriate! But be careful to not use #IMadeThis in normal posts, you should say hashtag IMadeThis instead, or put it inside of a quote tag.';
out += '\n\n[center][big][b]Latest #IMadeThis Posts[/b][/big]n';
for(var i in oclinks) {
if(i==5) out += '[spoiler=More #IMadeThis Posts]';
out += '[url='+oclinks[i].link+'][b][dblue]'+oclinks[i].user+'[/dblue][/b] '+ oclinks[i].date.toDateString() +'[/url] - '+oclinks[i].summary+'\n\n';
}
out += '[/spoiler]n\nIf you made something (fanfic/article/song/lyrics/video, not a photoshop) then your post should be here, edit it to add in #IMadeThis. If you think your post shouldn\'t be here then edit it out or change it.';

out += '\n\n[spoiler=Most Recent 50 Pictures]';
for(var i in piclinks) {
if(i>=50) break;
var p=piclinks[i];
out += '[img]'+p.src+'[/img]n[url='+p.link+']Posted by '+p.user+' on [date]'+p.date+'[/date][/url]n\n';
}
out += 'This list does not include pictures from posts with #IMadeThis.[/spoiler]';
out += '[/center]';
console.log(out);
}



almost forgot, gotta quote it lol

Hey, for someone who has no idea how to code, that's still pretty impressive and looks kind of time consuming



To me it looks like witchcraft


Should we burn him?


Only if he weighs less than a duck

how did you become so educated about witches?


Monty Python and the quest for the Holy Grail

I'm fairly sure we're all referencing it



hehehe, most likely.
Now explain to me why I'm sitting in a public library laughing out loud like a maniac?

loool
Kaina + Drones Linkcro Summon Cupsie Yummy Way
The_Templar
Profile Blog Joined January 2011
your Country52797 Posts
October 20 2014 16:26 GMT
#11706
On October 21 2014 01:25 Cricketer12 wrote:
Show nested quote +
On October 21 2014 01:25 The_Templar wrote:
On October 21 2014 01:24 Cricketer12 wrote:
On October 21 2014 01:23 The_Templar wrote:
On October 21 2014 01:23 Sakat wrote:
On October 21 2014 01:21 Cricketer12 wrote:
On October 21 2014 01:20 Sakat wrote:
On October 21 2014 01:19 SetGuitarsToKill wrote:
On October 21 2014 01:17 Sakat wrote:
On October 21 2014 01:13 SetGuitarsToKill wrote:
[quote]
Hey, for someone who has no idea how to code, that's still pretty impressive and looks kind of time consuming



To me it looks like witchcraft


Should we burn him?


Only if he weighs less than a duck

how did you become so educated about witches?


Monty Python and the quest for the Holy Grail

I'm fairly sure we're all referencing it

PROVE IT! WHAT IS YOUR NAME?

The_Templar, known as __s__ in real life

WHAT IS YOUR QUEST?

To seek the Holy LR Grail
Moderatorshe/her
TL+ Member
The_Templar
Profile Blog Joined January 2011
your Country52797 Posts
October 20 2014 16:26 GMT
#11707
On October 21 2014 01:25 Sakat wrote:
Show nested quote +
On October 21 2014 01:23 The_Templar wrote:
On October 21 2014 01:23 Sakat wrote:
On October 21 2014 01:21 Cricketer12 wrote:
On October 21 2014 01:20 Sakat wrote:
On October 21 2014 01:19 SetGuitarsToKill wrote:
On October 21 2014 01:17 Sakat wrote:
On October 21 2014 01:13 SetGuitarsToKill wrote:
On October 21 2014 01:12 Die4Ever wrote:
On October 21 2014 01:10 Sakat wrote:
HOW DO YOU FIND THE TIME???!!!!!! It's amazing work!!!

it's really not that much code

+ Show Spoiler +


var names={};
if(window.hasOwnProperty('tempnames') names=tempnames;

var namesa=[];
var counter=0;
var oclinks=[];
var piclinks=[];
var links={};

if(links.length==0) RunStats();

var tbody=$($('body'.html());
RunStats(6);

function CheckLinks()
{
var links = $('body > #navwrapper:nth-child(1) #main-content > table:nth-child(2) tbody tr:nth-child(1) td:nth-child(2) a:not([title^="Next Page"]:not([rel="nofollow"]';
if(links.length==0) {
OutputStats();
return;
}
var l=$(links[0];
var url=l.attr('href';
$.ajax({url:url,success:function(data) {
console.log('ngot '+url+' with '+data.length+' characters\n';
l.remove();
tbody=$(data);
RunStats(0);
CheckLinks();
}});
}
CheckLinks();
counter=0;

function MakeContentType()
{
return {posts:0,chars:0,pics:0,excls:0,videos:0};
}

function MakeUser(name)
{
return {name:name,score:0,recentscore:0,country:'',types:{ normal:MakeContentType(),oc:MakeContentType(),recentnormal:MakeContentType(),recentoc:MakeContentType() }};
}

function ProcessPost(user, country, date, hours_ago, post, postlink)
{
var posttext=post.text();
posttext.replace(/\s+/g,' ';
if(posttext.match(/^\s*\#PASSIONBOARD4EVER/)) return;
if(postlink=='http://www.teamliquid.net/forum/viewpost.php?post_id=23071257' return;

var contenttype='normal';
var isoc=false;
if(posttext.match(/\#IMadeThis/i) && postlink!='http://www.teamliquid.net/forum/viewpost.php?post_id=23135482' {
isoc=true;
contenttype='oc';
var summary=posttext.substr(0,195);
if(summary.length>=193) summary=summary.substr(0,190)+'...';
oclinks.push({user:user,link:postlink,summary:summary,date:date});
}
if(hours_ago<12) contenttype='recent'+contenttype;

var chars=posttext.length;
var pics=post.find('img[src^="http"]';
var numpics=0;
pics.each(function(){
var src=$(this).attr('src';
if( links.hasOwnProperty(src) ) {
links[src]++;
return;
}
links[src]=1;
numpics++;
if(isoc==false) {
piclinks.push({user:user,link:postlink,src:src,date:date});
}
});
var videos=post.find('iframe.youtube-player'.length;
videos+=post.find('a[href^="http://vimeo.com/"]'.length;
videos+=post.find('a[href^="https://vimeo.com/"]'.length;
var excls=0;
try{excls=Math.min(10,posttext.match(/\!/g).length);}catch(e){}

if(!names[user] names[user]=MakeUser(user);
var n=names[user];
n.country=country;
var cont=n.types[contenttype];
cont.posts++;
cont.chars+=chars;
cont.pics+=numpics;
cont.excls+=excls;
cont.videos+=videos;
}

function RunStats(start)
{
console.log('nrunning stats...\n';
tbody.find('.quote,.submessage:not(a[title="Link to this post"],.forumsig,div[style="float:right; font-size:8pt; margin-top:15px"]'.remove();
tbody.find('br'.replaceWith(' ';
counter=0;
tbody.find('span.forummsginfo'.each(function(){
counter++;
if(window.hasOwnProperty('tempnames'==false && counter<=start) return;
var msginfotext=$(this).text();
var country='';
try{country=msginfotext.match(/^\s+\S+\s+([a-zA-Z][^\.]+).*$/)[1];}catch(e){}
var datetext=msginfotext.match(/\.\s*(([a-zA-Z]+) [^\.]*)/)[1];
var date;
if(datetext.match(/Posts/) ) {
country='';
datetext=msginfotext.match(/\S+\s*(([a-zA-Z]+) [^\.]*)/)[1];
date=new Date(datetext);
} else date=new Date(datetext);
var hours_ago=((new Date())-date)/1000/3600;
var user=msginfotext.match(/^\s*(\S*).*$/)[1];
var post=$(this).parent().parent().parent().find('tr > .forumPost:not(lightback)';
var postlink='http://www.teamliquid.net'+$(this).parent().parent().find('a.submessage[title="Link to this post"]'.attr('href';
ProcessPost(user, country, date, hours_ago, post, postlink);
});
}

function numberWithCommas(x) {
return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",";
}

function OutputUserStats(u,place,details)
{
var out='';
if(place>0) out+='[b]#'+place+' ';
else out+='[b]';

var name=u.name;
var ut=u.types;
var score=Math.floor(u.score);
var recentscore=Math.floor(u.recentscore);
var posts=0;
var ocposts=0;
var videos=0;
var ocvideos=0;
var pics=0;
var chars=0;
var excls=0;
var recentpics=0;
var recentchars=0;
var recentexcls=0;
for(var t in ut) {
if(!ut.hasOwnProperty(t)) continue;
if(t=='normal' || t=='recentnormal' {
posts+=ut[t].posts;
videos+=ut[t].videos;
} else {
ocposts+=ut[t].posts;
ocvideos+=ut[t].videos;
}
if(t=='recentnormal' || t=='recentoc' {
recentpics+=ut[t].pics;
recentchars+=ut[t].chars;
recentexcls+=ut[t].excls;
}
pics+=ut[t].pics;
chars+=ut[t].chars;
excls+=ut[t].excls;
}

var recentposts=ut.recentnormal.posts;
var recentocposts=ut.recentoc.posts;
var recentocvideos=ut.recentoc.videos;

var cppchange=(chars/(posts+ocposts)) - ((chars-recentchars)/((posts+ocposts)-(recentposts+recentocposts)));
if(posts-recentposts==0) cppchange=(chars/posts);
cppchange=Math.floor(cppchange);
if(cppchange>0) cppchange='+'+cppchange;
if(cppchange!=cppchange)cppchange='0';

if(details==1) {
out+='[dblue]'+name+'[/dblue] - score: '+numberWithCommas(score)+' (+'+numberWithCommas(recentscore)+'[/b]n[small]posts: '+posts+' (+'+recentposts+', ocposts: '+ocposts+' (+'+recentocposts+', ocvids: '+ocvideos+' (+'+recentocvideos+', pics: '+pics+' (+'+recentpics+', chars: '+chars+' (+'+recentchars+', exclamations: '+excls+' (+'+recentexcls+', chars per post: '+Math.round(chars/posts)+' ('+cppchange+'[/small]n';
} else {
out+='[dblue]'+name+'[/dblue] - score: '+numberWithCommas(score)+' (+'+numberWithCommas(recentscore)+'[/b] - posts: '+posts+' (+'+recentposts+', ocposts: '+ocposts+' (+'+recentocposts+', ocvideos: '+ocvideos+' (+'+recentocvideos+', pics: '+pics+' (+'+recentpics+'\n';
}
return out;
}

function OutputStats()
{
var out='';
namesa=[];
var everyone=MakeUser('EVERYONE';
var na=MakeUser('NA';
var restoftheworld=MakeUser('Unimportant Parts of the World';
var unknown=MakeUser('Unknown Region';
for(var i in names) {
if(!names.hasOwnProperty(i)) continue;
var u=names[i];
var region=restoftheworld;
if(u.country=='United States' || u.country=='Canada' || u.country=='Greenland' || u.country=='Mexico' {
region=na;
} else if(u.country=='' {
region=unknown;
}

for(var t in u.types) {
var c=u.types[t];
var score=0;
var ec=everyone.types[t];
var rc=region.types[t];
ec.videos+=c.videos;
ec.pics+=c.pics;
ec.posts+=c.posts;
ec.chars+=c.chars;
ec.excls+=c.excls;

rc.videos+=c.videos;
rc.pics+=c.pics;
rc.posts+=c.posts;
rc.chars+=c.chars;
rc.excls+=c.excls;

if(t=='oc' || t=='recentoc' score=c.videos*3000+c.pics*200+c.posts*100+c.chars/2+c.excls/10;
else score=c.pics*200+c.posts*20+c.videos*10+c.chars/10+c.excls/10;
u.score+=score;
everyone.score+=score;
region.score+=score;
if(t=='recentnormal' || t=='recentoc' {
u.recentscore+=score;
everyone.recentscore+=score;
region.recentscore+=score;
}
}
namesa.push(u);
}
namesa.push(everyone);
namesa.sort(function(a,b){
return b.score-a.score;
});
oclinks.sort(function(a,b){
//return a.date-b.date;
return b.date-a.date;
});
piclinks.sort(function(a,b){
return b.date-a.date;
});

//console.log(namesa);
var spoilerlist='';
out='';
out += 'n[center][big][b]#PASSIONBOARD4EVER[/b][/big]n\n';
for(var i in namesa) {
if(i==21) break;
var place=i;
var u=namesa[i];
out += OutputUserStats(u,place,0);
}
out += '[spoiler=More Details]n';
out += OutputUserStats(na,0,1);
out += OutputUserStats(restoftheworld,0,1);
out += 'n';
for(var i in namesa) {
var place=i;
var u=namesa[i];
out += OutputUserStats(u,place,1);
}
out += '[/spoiler]n\n';
out += '[/center]';
out += 'score = (ocvideos*3000) + (pics*200) + (ocposts*100) + (posts*20) + (videos*10) + (oc-characters/2) + (characters/10) + (exclamation points/10); (max of 10 exclamation points per post, the first 6 posts don\'t count and my #PASSIONBOARD4EVER posts don\'t count, the + and - stats is for the past 12 hours)\nso post more pics and make some videos, and make sure to use #IMadeThis when appropriate! But be careful to not use #IMadeThis in normal posts, you should say hashtag IMadeThis instead, or put it inside of a quote tag.';
out += 'n\n[center][big][b]Latest #IMadeThis Posts[/b][/big]n';
for(var i in oclinks) {
if(i==5) out += '[spoiler=More #IMadeThis Posts]';
out += '[url='+oclinks[i].link+'][b][dblue]'+oclinks[i].user+'[/dblue][/b] '+ oclinks[i].date.toDateString() +'[/url] - '+oclinks[i].summary+'n\n';
}
out += '[/spoiler]n\nIf you made something (fanfic/article/song/lyrics/video, not a photoshop) then your post should be here, edit it to add in #IMadeThis. If you think your post shouldn\'t be here then edit it out or change it.';

out += 'n\n[spoiler=Most Recent 50 Pictures]';
for(var i in piclinks) {
if(i>=50) break;
var p=piclinks[i];
out += '[img]'+p.src+'[/img]n[url='+p.link+']Posted by '+p.user+' on [date]'+p.date+'[/date][/url]n\n';
}
out += 'This list does not include pictures from posts with #IMadeThis.[/spoiler]';
out += '[/center]';
console.log(out);
}



almost forgot, gotta quote it lol

Hey, for someone who has no idea how to code, that's still pretty impressive and looks kind of time consuming



To me it looks like witchcraft


Should we burn him?


Only if he weighs less than a duck

how did you become so educated about witches?


Monty Python and the quest for the Holy Grail

I'm fairly sure we're all referencing it



hehehe, most likely.
Now explain to me why I'm sitting in a public library laughing out loud like a maniac?

I barely even grinned. Am I some kind of emotionless robot or something?
Moderatorshe/her
TL+ Member
Sakat
Profile Blog Joined October 2014
Croatia1599 Posts
October 20 2014 16:27 GMT
#11708
On October 21 2014 01:25 Cricketer12 wrote:
Show nested quote +
On October 21 2014 01:25 The_Templar wrote:
On October 21 2014 01:24 Cricketer12 wrote:
On October 21 2014 01:23 The_Templar wrote:
On October 21 2014 01:23 Sakat wrote:
On October 21 2014 01:21 Cricketer12 wrote:
On October 21 2014 01:20 Sakat wrote:
On October 21 2014 01:19 SetGuitarsToKill wrote:
On October 21 2014 01:17 Sakat wrote:
On October 21 2014 01:13 SetGuitarsToKill wrote:
[quote]
Hey, for someone who has no idea how to code, that's still pretty impressive and looks kind of time consuming



To me it looks like witchcraft


Should we burn him?


Only if he weighs less than a duck

how did you become so educated about witches?


Monty Python and the quest for the Holy Grail

I'm fairly sure we're all referencing it

PROVE IT! WHAT IS YOUR NAME?

The_Templar, known as __s__ in real life

WHAT IS YOUR QUEST?


WHAT IS YOUR FAVOURITE COLOR?
My boy Ptak defeated two GSL champions!
Cricketer12
Profile Blog Joined May 2012
United States13972 Posts
October 20 2014 16:27 GMT
#11709
On October 21 2014 01:26 The_Templar wrote:
Show nested quote +
On October 21 2014 01:25 Cricketer12 wrote:
On October 21 2014 01:25 The_Templar wrote:
On October 21 2014 01:24 Cricketer12 wrote:
On October 21 2014 01:23 The_Templar wrote:
On October 21 2014 01:23 Sakat wrote:
On October 21 2014 01:21 Cricketer12 wrote:
On October 21 2014 01:20 Sakat wrote:
On October 21 2014 01:19 SetGuitarsToKill wrote:
On October 21 2014 01:17 Sakat wrote:
[quote]


To me it looks like witchcraft


Should we burn him?


Only if he weighs less than a duck

how did you become so educated about witches?


Monty Python and the quest for the Holy Grail

I'm fairly sure we're all referencing it

PROVE IT! WHAT IS YOUR NAME?

The_Templar, known as __s__ in real life

WHAT IS YOUR QUEST?

To seek the Holy LR Grail

WHO IS THE WINNER OF HUK V GANZI MATCH AT THE 2012 SPRING ARENA 1?
Kaina + Drones Linkcro Summon Cupsie Yummy Way
The_Templar
Profile Blog Joined January 2011
your Country52797 Posts
October 20 2014 16:27 GMT
#11710
On October 21 2014 01:27 Sakat wrote:
Show nested quote +
On October 21 2014 01:25 Cricketer12 wrote:
On October 21 2014 01:25 The_Templar wrote:
On October 21 2014 01:24 Cricketer12 wrote:
On October 21 2014 01:23 The_Templar wrote:
On October 21 2014 01:23 Sakat wrote:
On October 21 2014 01:21 Cricketer12 wrote:
On October 21 2014 01:20 Sakat wrote:
On October 21 2014 01:19 SetGuitarsToKill wrote:
On October 21 2014 01:17 Sakat wrote:
[quote]


To me it looks like witchcraft


Should we burn him?


Only if he weighs less than a duck

how did you become so educated about witches?


Monty Python and the quest for the Holy Grail

I'm fairly sure we're all referencing it

PROVE IT! WHAT IS YOUR NAME?

The_Templar, known as __s__ in real life

WHAT IS YOUR QUEST?


WHAT IS YOUR FAVOURITE COLOR?

Red! Er, I mean-
Moderatorshe/her
TL+ Member
dangthatsright
Profile Joined July 2011
1158 Posts
October 20 2014 16:28 GMT
#11711
On October 21 2014 01:25 Sakat wrote:
Show nested quote +
On October 21 2014 01:23 The_Templar wrote:
On October 21 2014 01:23 Sakat wrote:
On October 21 2014 01:21 Cricketer12 wrote:
On October 21 2014 01:20 Sakat wrote:
On October 21 2014 01:19 SetGuitarsToKill wrote:
On October 21 2014 01:17 Sakat wrote:
On October 21 2014 01:13 SetGuitarsToKill wrote:
On October 21 2014 01:12 Die4Ever wrote:
On October 21 2014 01:10 Sakat wrote:
HOW DO YOU FIND THE TIME???!!!!!! It's amazing work!!!

it's really not that much code

+ Show Spoiler +


var names={};
if(window.hasOwnProperty('tempnames')) names=tempnames;

var namesa=[];
var counter=0;
var oclinks=[];
var piclinks=[];
var links={};

if(links.length==0) RunStats();

var tbody=$($('body').html());
RunStats(6);

function CheckLinks()
{
var links = $('body > #navwrapper:nth-child(1) #main-content > table:nth-child(2) tbody tr:nth-child(1) td:nth-child(2) a:not([title^="Next Page"]:not([rel="nofollow"]');
if(links.length==0) {
OutputStats();
return;
}
var l=$(links[0];
var url=l.attr('href');
$.ajax({url:url,success:function(data) {
console.log('\ngot '+url+' with '+data.length+' characters\n');
l.remove();
tbody=$(data);
RunStats(0);
CheckLinks();
}});
}
CheckLinks();
counter=0;

function MakeContentType()
{
return {posts:0,chars:0,pics:0,excls:0,videos:0};
}

function MakeUser(name)
{
return {name:name,score:0,recentscore:0,country:'',types:{ normal:MakeContentType(),oc:MakeContentType(),recentnormal:MakeContentType(),recentoc:MakeContentType() }};
}

function ProcessPost(user, country, date, hours_ago, post, postlink)
{
var posttext=post.text();
posttext.replace(/\s+/g,' ');
if(posttext.match(/^\s*\#PASSIONBOARD4EVER/)) return;
if(postlink=='http://www.teamliquid.net/forum/viewpost.php?post_id=23071257') return;

var contenttype='normal';
var isoc=false;
if(posttext.match(/\#IMadeThis/i) && postlink!='http://www.teamliquid.net/forum/viewpost.php?post_id=23135482') {
isoc=true;
contenttype='oc';
var summary=posttext.substr(0,195);
if(summary.length>=193) summary=summary.substr(0,190)+'...';
oclinks.push({user:user,link:postlink,summary:summary,date:date});
}
if(hours_ago<12) contenttype='recent'+contenttype;

var chars=posttext.length;
var pics=post.find('img[src^="http"]');
var numpics=0;
pics.each(function(){
var src=$(this).attr('src');
if( links.hasOwnProperty(src) ) {
links[src]++;
return;
}
links[src]=1;
numpics++;
if(isoc==false) {
piclinks.push({user:user,link:postlink,src:src,date:date});
}
});
var videos=post.find('iframe.youtube-player').length;
videos+=post.find('a[href^="http://vimeo.com/"]').length;
videos+=post.find('a[href^="https://vimeo.com/"]').length;
var excls=0;
try{excls=Math.min(10,posttext.match(/\!/g).length);}catch(e){}

if(!names[user] names[user]=MakeUser(user);
var n=names[user];
n.country=country;
var cont=n.types[contenttype];
cont.posts++;
cont.chars+=chars;
cont.pics+=numpics;
cont.excls+=excls;
cont.videos+=videos;
}

function RunStats(start)
{
console.log('\nrunning stats...\n');
tbody.find('.quote,.submessage:not(a[title="Link to this post"],.forumsig,div[style="float:right; font-size:8pt; margin-top:15px"]').remove();
tbody.find('br').replaceWith(' ');
counter=0;
tbody.find('span.forummsginfo').each(function(){
counter++;
if(window.hasOwnProperty('tempnames')==false && counter<=start) return;
var msginfotext=$(this).text();
var country='';
try{country=msginfotext.match(/^\s+\S+\s+([a-zA-Z][^\.]+).*$/)[1];}catch(e){}
var datetext=msginfotext.match(/\.\s*(([a-zA-Z]+) [^\.]*)/)[1];
var date;
if(datetext.match(/Posts/) ) {
country='';
datetext=msginfotext.match(/\S+\s*(([a-zA-Z]+) [^\.]*)/)[1];
date=new Date(datetext);
} else date=new Date(datetext);
var hours_ago=((new Date())-date)/1000/3600;
var user=msginfotext.match(/^\s*(\S*).*$/)[1];
var post=$(this).parent().parent().parent().find('tr > .forumPost:not(lightback)');
var postlink='http://www.teamliquid.net'+$(this).parent().parent().find('a.submessage[title="Link to this post"]').attr('href');
ProcessPost(user, country, date, hours_ago, post, postlink);
});
}

function numberWithCommas(x) {
return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ",");
}

function OutputUserStats(u,place,details)
{
var out='';
if(place>0) out+='[b]#'+place+' ';
else out+='[b]';

var name=u.name;
var ut=u.types;
var score=Math.floor(u.score);
var recentscore=Math.floor(u.recentscore);
var posts=0;
var ocposts=0;
var videos=0;
var ocvideos=0;
var pics=0;
var chars=0;
var excls=0;
var recentpics=0;
var recentchars=0;
var recentexcls=0;
for(var t in ut) {
if(!ut.hasOwnProperty(t)) continue;
if(t=='normal' || t=='recentnormal') {
posts+=ut[t].posts;
videos+=ut[t].videos;
} else {
ocposts+=ut[t].posts;
ocvideos+=ut[t].videos;
}
if(t=='recentnormal' || t=='recentoc') {
recentpics+=ut[t].pics;
recentchars+=ut[t].chars;
recentexcls+=ut[t].excls;
}
pics+=ut[t].pics;
chars+=ut[t].chars;
excls+=ut[t].excls;
}

var recentposts=ut.recentnormal.posts;
var recentocposts=ut.recentoc.posts;
var recentocvideos=ut.recentoc.videos;

var cppchange=(chars/(posts+ocposts)) - ((chars-recentchars)/((posts+ocposts)-(recentposts+recentocposts)));
if(posts-recentposts==0) cppchange=(chars/posts);
cppchange=Math.floor(cppchange);
if(cppchange>0) cppchange='+'+cppchange;
if(cppchange!=cppchange)cppchange='0';

if(details==1) {
out+='[dblue]'+name+'[/dblue] - score: '+numberWithCommas(score)+' (+'+numberWithCommas(recentscore)+')[/b]n[small]posts: '+posts+' (+'+recentposts+'), ocposts: '+ocposts+' (+'+recentocposts+'), ocvids: '+ocvideos+' (+'+recentocvideos+'), pics: '+pics+' (+'+recentpics+'), chars: '+chars+' (+'+recentchars+'), exclamations: '+excls+' (+'+recentexcls+'), chars per post: '+Math.round(chars/posts)+' ('+cppchange+')[/small]n';
} else {
out+='[dblue]'+name+'[/dblue] - score: '+numberWithCommas(score)+' (+'+numberWithCommas(recentscore)+')[/b] - posts: '+posts+' (+'+recentposts+'), ocposts: '+ocposts+' (+'+recentocposts+'), ocvideos: '+ocvideos+' (+'+recentocvideos+'), pics: '+pics+' (+'+recentpics+')\n';
}
return out;
}

function OutputStats()
{
var out='';
namesa=[];
var everyone=MakeUser('EVERYONE');
var na=MakeUser('NA');
var restoftheworld=MakeUser('Unimportant Parts of the World');
var unknown=MakeUser('Unknown Region');
for(var i in names) {
if(!names.hasOwnProperty(i)) continue;
var u=names[i];
var region=restoftheworld;
if(u.country=='United States' || u.country=='Canada' || u.country=='Greenland' || u.country=='Mexico') {
region=na;
} else if(u.country=='') {
region=unknown;
}

for(var t in u.types) {
var c=u.types[t];
var score=0;
var ec=everyone.types[t];
var rc=region.types[t];
ec.videos+=c.videos;
ec.pics+=c.pics;
ec.posts+=c.posts;
ec.chars+=c.chars;
ec.excls+=c.excls;

rc.videos+=c.videos;
rc.pics+=c.pics;
rc.posts+=c.posts;
rc.chars+=c.chars;
rc.excls+=c.excls;

if(t=='oc' || t=='recentoc') score=c.videos*3000+c.pics*200+c.posts*100+c.chars/2+c.excls/10;
else score=c.pics*200+c.posts*20+c.videos*10+c.chars/10+c.excls/10;
u.score+=score;
everyone.score+=score;
region.score+=score;
if(t=='recentnormal' || t=='recentoc') {
u.recentscore+=score;
everyone.recentscore+=score;
region.recentscore+=score;
}
}
namesa.push(u);
}
namesa.push(everyone);
namesa.sort(function(a,b){
return b.score-a.score;
});
oclinks.sort(function(a,b){
//return a.date-b.date;
return b.date-a.date;
});
piclinks.sort(function(a,b){
return b.date-a.date;
});

//console.log(namesa);
var spoilerlist='';
out='';
out += '\n[center][big][b]#PASSIONBOARD4EVER[/b][/big]n\n';
for(var i in namesa) {
if(i==21) break;
var place=i;
var u=namesa[i];
out += OutputUserStats(u,place,0);
}
out += '[spoiler=More Details]n';
out += OutputUserStats(na,0,1);
out += OutputUserStats(restoftheworld,0,1);
out += '\n';
for(var i in namesa) {
var place=i;
var u=namesa[i];
out += OutputUserStats(u,place,1);
}
out += '[/spoiler]n\n';
out += '[/center]';
out += 'score = (ocvideos*3000) + (pics*200) + (ocposts*100) + (posts*20) + (videos*10) + (oc-characters/2) + (characters/10) + (exclamation points/10); (max of 10 exclamation points per post, the first 6 posts don\'t count and my #PASSIONBOARD4EVER posts don\'t count, the + and - stats is for the past 12 hours)\nso post more pics and make some videos, and make sure to use #IMadeThis when appropriate! But be careful to not use #IMadeThis in normal posts, you should say hashtag IMadeThis instead, or put it inside of a quote tag.';
out += '\n\n[center][big][b]Latest #IMadeThis Posts[/b][/big]n';
for(var i in oclinks) {
if(i==5) out += '[spoiler=More #IMadeThis Posts]';
out += '[url='+oclinks[i].link+'][b][dblue]'+oclinks[i].user+'[/dblue][/b] '+ oclinks[i].date.toDateString() +'[/url] - '+oclinks[i].summary+'\n\n';
}
out += '[/spoiler]n\nIf you made something (fanfic/article/song/lyrics/video, not a photoshop) then your post should be here, edit it to add in #IMadeThis. If you think your post shouldn\'t be here then edit it out or change it.';

out += '\n\n[spoiler=Most Recent 50 Pictures]';
for(var i in piclinks) {
if(i>=50) break;
var p=piclinks[i];
out += '[img]'+p.src+'[/img]n[url='+p.link+']Posted by '+p.user+' on [date]'+p.date+'[/date][/url]n\n';
}
out += 'This list does not include pictures from posts with #IMadeThis.[/spoiler]';
out += '[/center]';
console.log(out);
}



almost forgot, gotta quote it lol

Hey, for someone who has no idea how to code, that's still pretty impressive and looks kind of time consuming



To me it looks like witchcraft


Should we burn him?


Only if he weighs less than a duck

how did you become so educated about witches?


Monty Python and the quest for the Holy Grail

I'm fairly sure we're all referencing it



hehehe, most likely.
Now explain to me why I'm sitting in a public library laughing out loud like a maniac?

because you are involved in a community centered around a video game, and thus must be psychotic or something
at least that's what I read somewhere on the internet
The_Templar
Profile Blog Joined January 2011
your Country52797 Posts
Last Edited: 2014-10-20 16:29:15
October 20 2014 16:28 GMT
#11712
On October 21 2014 01:27 Cricketer12 wrote:
Show nested quote +
On October 21 2014 01:26 The_Templar wrote:
On October 21 2014 01:25 Cricketer12 wrote:
On October 21 2014 01:25 The_Templar wrote:
On October 21 2014 01:24 Cricketer12 wrote:
On October 21 2014 01:23 The_Templar wrote:
On October 21 2014 01:23 Sakat wrote:
On October 21 2014 01:21 Cricketer12 wrote:
On October 21 2014 01:20 Sakat wrote:
On October 21 2014 01:19 SetGuitarsToKill wrote:
[quote]

Should we burn him?


Only if he weighs less than a duck

how did you become so educated about witches?


Monty Python and the quest for the Holy Grail

I'm fairly sure we're all referencing it

PROVE IT! WHAT IS YOUR NAME?

The_Templar, known as __s__ in real life

WHAT IS YOUR QUEST?

To seek the Holy LR Grail

WHO IS THE WINNER OF HUK V GANZI MATCH AT THE 2012 SPRING ARENA 1?

Wasn't that one of the 2v2 teams in that or am I thinking of something else?
(HuK won 2-1, losing to everyone else )
Moderatorshe/her
TL+ Member
Cricketer12
Profile Blog Joined May 2012
United States13972 Posts
October 20 2014 16:28 GMT
#11713
On October 21 2014 01:27 The_Templar wrote:
Show nested quote +
On October 21 2014 01:27 Sakat wrote:
On October 21 2014 01:25 Cricketer12 wrote:
On October 21 2014 01:25 The_Templar wrote:
On October 21 2014 01:24 Cricketer12 wrote:
On October 21 2014 01:23 The_Templar wrote:
On October 21 2014 01:23 Sakat wrote:
On October 21 2014 01:21 Cricketer12 wrote:
On October 21 2014 01:20 Sakat wrote:
On October 21 2014 01:19 SetGuitarsToKill wrote:
[quote]

Should we burn him?


Only if he weighs less than a duck

how did you become so educated about witches?


Monty Python and the quest for the Holy Grail

I'm fairly sure we're all referencing it

PROVE IT! WHAT IS YOUR NAME?

The_Templar, known as __s__ in real life

WHAT IS YOUR QUEST?


WHAT IS YOUR FAVOURITE COLOR?

Red! Er, I mean-

the color of pashun
Kaina + Drones Linkcro Summon Cupsie Yummy Way
Sakat
Profile Blog Joined October 2014
Croatia1599 Posts
October 20 2014 16:28 GMT
#11714
On October 21 2014 01:27 Cricketer12 wrote:
Show nested quote +
On October 21 2014 01:26 The_Templar wrote:
On October 21 2014 01:25 Cricketer12 wrote:
On October 21 2014 01:25 The_Templar wrote:
On October 21 2014 01:24 Cricketer12 wrote:
On October 21 2014 01:23 The_Templar wrote:
On October 21 2014 01:23 Sakat wrote:
On October 21 2014 01:21 Cricketer12 wrote:
On October 21 2014 01:20 Sakat wrote:
On October 21 2014 01:19 SetGuitarsToKill wrote:
[quote]

Should we burn him?


Only if he weighs less than a duck

how did you become so educated about witches?


Monty Python and the quest for the Holy Grail

I'm fairly sure we're all referencing it

PROVE IT! WHAT IS YOUR NAME?

The_Templar, known as __s__ in real life

WHAT IS YOUR QUEST?

To seek the Holy LR Grail

WHO IS THE WINNER OF HUK V GANZI MATCH AT THE 2012 SPRING ARENA 1?



WHAT IS THE MIGRATIONAL AGE OF SWALLOWS? (I probably misqouted that one)
My boy Ptak defeated two GSL champions!
TheBloodyDwarf
Profile Blog Joined March 2012
Finland7524 Posts
October 20 2014 16:29 GMT
#11715
I don't understand you anymore. Can we please stay talking SC2?
Fusilero: "I still can't believe he did that, like dude what the fuck there's fandom and then there's what he did like holy shit. I still see it when I close my eyes." <- reaction to the original drunk santa post which later caught on
The_Templar
Profile Blog Joined January 2011
your Country52797 Posts
October 20 2014 16:29 GMT
#11716
On October 21 2014 01:28 Sakat wrote:
Show nested quote +
On October 21 2014 01:27 Cricketer12 wrote:
On October 21 2014 01:26 The_Templar wrote:
On October 21 2014 01:25 Cricketer12 wrote:
On October 21 2014 01:25 The_Templar wrote:
On October 21 2014 01:24 Cricketer12 wrote:
On October 21 2014 01:23 The_Templar wrote:
On October 21 2014 01:23 Sakat wrote:
On October 21 2014 01:21 Cricketer12 wrote:
On October 21 2014 01:20 Sakat wrote:
[quote]

Only if he weighs less than a duck

how did you become so educated about witches?


Monty Python and the quest for the Holy Grail

I'm fairly sure we're all referencing it

PROVE IT! WHAT IS YOUR NAME?

The_Templar, known as __s__ in real life

WHAT IS YOUR QUEST?

To seek the Holy LR Grail

WHO IS THE WINNER OF HUK V GANZI MATCH AT THE 2012 SPRING ARENA 1?



WHAT IS THE MIGRATIONAL AGE OF SWALLOWS? (I probably misqouted that one)

It's the air-speed velocity of an unladen swallow. That's like the most popular quote though >.>
Moderatorshe/her
TL+ Member
Cricketer12
Profile Blog Joined May 2012
United States13972 Posts
October 20 2014 16:29 GMT
#11717
On October 21 2014 01:28 The_Templar wrote:
Show nested quote +
On October 21 2014 01:27 Cricketer12 wrote:
On October 21 2014 01:26 The_Templar wrote:
On October 21 2014 01:25 Cricketer12 wrote:
On October 21 2014 01:25 The_Templar wrote:
On October 21 2014 01:24 Cricketer12 wrote:
On October 21 2014 01:23 The_Templar wrote:
On October 21 2014 01:23 Sakat wrote:
On October 21 2014 01:21 Cricketer12 wrote:
On October 21 2014 01:20 Sakat wrote:
[quote]

Only if he weighs less than a duck

how did you become so educated about witches?


Monty Python and the quest for the Holy Grail

I'm fairly sure we're all referencing it

PROVE IT! WHAT IS YOUR NAME?

The_Templar, known as __s__ in real life

WHAT IS YOUR QUEST?

To seek the Holy LR Grail

WHO IS THE WINNER OF HUK V GANZI MATCH AT THE 2012 SPRING ARENA 1?

Wasn't that one of the 2v2 teams in that or am I thinking of something else?

the 2v2 was DRG MC> MKP HuK PartinG GAnzi> Heart viOLet DRG MC> PartinG Ganzi

HuK Ganzi was one of the opening games of the tournament a 1v1 bo3
Kaina + Drones Linkcro Summon Cupsie Yummy Way
Sakat
Profile Blog Joined October 2014
Croatia1599 Posts
October 20 2014 16:30 GMT
#11718
On October 21 2014 01:29 The_Templar wrote:
Show nested quote +
On October 21 2014 01:28 Sakat wrote:
On October 21 2014 01:27 Cricketer12 wrote:
On October 21 2014 01:26 The_Templar wrote:
On October 21 2014 01:25 Cricketer12 wrote:
On October 21 2014 01:25 The_Templar wrote:
On October 21 2014 01:24 Cricketer12 wrote:
On October 21 2014 01:23 The_Templar wrote:
On October 21 2014 01:23 Sakat wrote:
On October 21 2014 01:21 Cricketer12 wrote:
[quote]
how did you become so educated about witches?


Monty Python and the quest for the Holy Grail

I'm fairly sure we're all referencing it

PROVE IT! WHAT IS YOUR NAME?

The_Templar, known as __s__ in real life

WHAT IS YOUR QUEST?

To seek the Holy LR Grail

WHO IS THE WINNER OF HUK V GANZI MATCH AT THE 2012 SPRING ARENA 1?



WHAT IS THE MIGRATIONAL AGE OF SWALLOWS? (I probably misqouted that one)

It's the air-speed velocity of an unladen swallow. That's like the most popular quote though >.>


Right. I know. could remeber atm.
But I don't know which ones. African or european swallows?
My boy Ptak defeated two GSL champions!
Cricketer12
Profile Blog Joined May 2012
United States13972 Posts
October 20 2014 16:30 GMT
#11719
On October 21 2014 01:28 The_Templar wrote:
Show nested quote +
On October 21 2014 01:27 Cricketer12 wrote:
On October 21 2014 01:26 The_Templar wrote:
On October 21 2014 01:25 Cricketer12 wrote:
On October 21 2014 01:25 The_Templar wrote:
On October 21 2014 01:24 Cricketer12 wrote:
On October 21 2014 01:23 The_Templar wrote:
On October 21 2014 01:23 Sakat wrote:
On October 21 2014 01:21 Cricketer12 wrote:
On October 21 2014 01:20 Sakat wrote:
[quote]

Only if he weighs less than a duck

how did you become so educated about witches?


Monty Python and the quest for the Holy Grail

I'm fairly sure we're all referencing it

PROVE IT! WHAT IS YOUR NAME?

The_Templar, known as __s__ in real life

WHAT IS YOUR QUEST?

To seek the Holy LR Grail

WHO IS THE WINNER OF HUK V GANZI MATCH AT THE 2012 SPRING ARENA 1?

Wasn't that one of the 2v2 teams in that or am I thinking of something else?
(HuK won 2-1, losing to everyone else )

thus began the fall of HuK he could have beaten everyone except mkp if he tried...
Kaina + Drones Linkcro Summon Cupsie Yummy Way
Cricketer12
Profile Blog Joined May 2012
United States13972 Posts
October 20 2014 16:31 GMT
#11720
On October 21 2014 01:29 TheBloodyDwarf wrote:
I don't understand you anymore. Can we please stay talking SC2?

temp and i are, we talking about DRG finally beating mkp and huk falling into mediocrity
Kaina + Drones Linkcro Summon Cupsie Yummy Way
Prev 1 584 585 586 587 588 1091 Next
Please log in or register to reply.
Live Events Refresh
Replay Cast
00:00
2025 GSL S2 - Ro8 Group A
CranKy Ducklings192
EnkiAlexander 111
Liquipedia
[ Submit Event ]
Live Streams
Refresh
StarCraft 2
NeuroSwarm 164
Nina 151
RuFF_SC2 127
StarCraft: Brood War
Artosis 844
ajuk12(nOOB) 43
PianO 40
Icarus 8
Dota 2
monkeys_forever316
LuMiX1
Counter-Strike
Stewie2K699
Heroes of the Storm
Khaldor166
Other Games
summit1g11618
C9.Mang01408
shahzam1215
JimRising 613
WinterStarcraft258
ViBE246
Maynarde169
Mew2King54
Organizations
Other Games
gamesdonequick1459
StarCraft 2
Blizzard YouTube
StarCraft: Brood War
BSLTrovo
sctven
[ Show 14 non-featured ]
StarCraft 2
• Berry_CruncH287
• Hupsaiya 92
• AfreecaTV YouTube
• intothetv
• Kozan
• IndyKCrew
• LaughNgamezSOOP
• Migwel
• sooper7s
StarCraft: Brood War
• Azhi_Dahaki25
• BSLYoutube
• STPLYoutube
• ZZZeroYoutube
League of Legends
• Doublelift5436
Upcoming Events
Wardi Open
7h 54m
Replay Cast
20h 54m
Replay Cast
1d 6h
RSL Revival
1d 6h
Cure vs Percival
ByuN vs Spirit
PiGosaur Monday
1d 20h
RSL Revival
2 days
herO vs sOs
Zoun vs Clem
Replay Cast
2 days
The PondCast
3 days
RSL Revival
3 days
Serral vs SHIN
Solar vs Cham
Replay Cast
3 days
[ Show More ]
RSL Revival
4 days
Reynor vs Scarlett
ShoWTimE vs Classic
uThermal 2v2 Circuit
4 days
SC Evo League
5 days
Circuito Brasileiro de…
5 days
Sparkling Tuna Cup
6 days
Liquipedia Results

Completed

Proleague 2025-06-11
2025 GSL S2
Heroes 10 EU

Ongoing

JPL Season 2
BSL 2v2 Season 3
BSL Season 20
KCM Race Survival 2025 Season 2
NPSL S3
Rose Open S1
CSL 17: 2025 SUMMER
Copa Latinoamericana 4
Murky Cup #2
BLAST.tv Austin Major 2025
ESL Impact League Season 7
IEM Dallas 2025
PGL Astana 2025
Asian Champions League '25
BLAST Rivals Spring 2025
MESA Nomadic Masters
CCT Season 2 Global Finals
IEM Melbourne 2025
YaLLa Compass Qatar 2025
PGL Bucharest 2025

Upcoming

CSLPRO Last Chance 2025
CSLPRO Chat StarLAN 3
K-Championship
SEL Season 2 Championship
Esports World Cup 2025
HSC XXVII
Championship of Russia 2025
BLAST Open Fall 2025
Esports World Cup 2025
BLAST Bounty Fall 2025
BLAST Bounty Fall Qual
IEM Cologne 2025
FISSURE Playground #1
TLPD

1. ByuN
2. TY
3. Dark
4. Solar
5. Stats
6. Nerchio
7. sOs
8. soO
9. INnoVation
10. Elazer
1. Rain
2. Flash
3. EffOrt
4. Last
5. Bisu
6. Soulkey
7. Mini
8. Sharp
Sidebar Settings...

Advertising | Privacy Policy | Terms Of Use | Contact Us

Original banner artwork: Jim Warren
The contents of this webpage are copyright © 2025 TLnet. All Rights Reserved.