The KiwiFarms Return Reaction Score Thread - at this point, i'm having too much fun

  • 🇵🇦 Nuestro primer dominio localizado está en español en kiwifarms.pa. Our first localized domain is on Spanish on kiwifarms.pa.
  • Want to keep track of this thread?
    Accounts can bookmark posts, watch threads for updates, and jump back to where you stopped reading.
    Create account

Osama Bin Laden

Osama Bin Silverstein
True & Honest Fan
kiwifarms.net
Registrado
8 de Mayo, 2022
i'm going to learn javascript specifically to return the reaction score

we need to setup a github and rise against null

we don't need him, we can rebuild the system

Código:
let score = 0;
let reacts = [
[1,1], // Like
// #14 Dislike = 0
[2,1], // Agree
// #3 Disagree = 0
[5,2], // Winner
[26,2], // Semper Fidelis
[27,-1], // Deviant
[6,3], // Informative
// #31 Thunk-Provoking = 0
[7,1], // Feels
[30,-1], // Islamic Content
[22,1], // DRINK!
[32,-1], // Lunacy
// #13 Autistic = 0
[34,-1], // Political Sperging
// #25 Horrifying = 0
// #9 Optimistic = 0
// #29 TMI = 0
[11,-1], // Late
[17,-1], // Dumb
[16,-2], // Mad at the Internet
];
for (let i=0; i<reacts.length; i++)
{
   try {score += reacts[i][1] * Number(document.getElementById("reaction-"+reacts[i][0]).innerText.match(/([\d,]+)/)[0].replace(/,/g,""));} catch(e) {/* LOL */}
}
console.log("Your autism power level is: "+score);
 
Atrás
Top Abajo