Page 54 of 173

Re: Secret Playerlist - Day 1 Ends 10am Dec 5 GMT +10 (Aus Eastern Standard Time)

Posted: Sun Dec 04, 2022 7:59 pm
by katze
iaafr wrote: Sun Dec 04, 2022 7:58 pm prince j could be a wolf
insightful

Re: Secret Playerlist - Day 1 Ends 10am Dec 5 GMT +10 (Aus Eastern Standard Time)

Posted: Sun Dec 04, 2022 7:59 pm
by DrWilgy
Oh shit. There's a tie and I can kill Golden?

[VOTE: Golden] aubergine

Re: Secret Playerlist - Day 1 Ends 10am Dec 5 GMT +10 (Aus Eastern Standard Time)

Posted: Sun Dec 04, 2022 7:59 pm
by hollowkatt
I sorted by postcount and I can confirm Sabi is 100% in the Sabi post count range. You're welcome for this insight

Re: Secret Playerlist - Day 1 Ends 10am Dec 5 GMT +10 (Aus Eastern Standard Time)

Posted: Sun Dec 04, 2022 7:59 pm
by Hally
idk who’s even dying lol

glgl

Re: Secret Playerlist - Day 1 Ends 10am Dec 5 GMT +10 (Aus Eastern Standard Time)

Posted: Sun Dec 04, 2022 7:59 pm
by Lumi

Code: Select all

// ==UserScript==
// @name         Secret Playerlist Vote Counter
// @namespace    mailto:luminouslag@gmail.com
// @version      1.0
// @description  Automatic Vote Counting for Secret Plyerlist Mafia game on The Syndicate
// @author       Lumi
// @match        https://mafiathesyndicate.com/viewtopic.php?*
// @icon         https://www.google.com/s2/favicons?sz=64&domain=mafiathesyndicate.com
// @grant        GM_setValue
// @grant        GM_getValue
// @grant        GM_setClipboard
// ==/UserScript==

console.log('Script Initialized');

async function getDocument(thread, start) {
  return await window.fetch(`https://mafiathesyndicate.com/viewtopic.php?t=${thread}&start=${start}`).then(r => r.text()).then(html => (new DOMParser()).parseFromString(html, 'text/html'));
}

function getDataFromPost(post) {
  let postNum = post.getElementsByClassName('post-number')[0].textContent.match(/[0-9]+/g)[0];
  let contentChildren = post.getElementsByClassName('content')[0].children;
  let author = post.getElementsByClassName('author')[1].getElementsByTagName('a')[1].textContent;
  let currentVoteTarget = null;
  for (const contentChild of contentChildren) {
    if (contentChild.classList.contains('mention')) {
      let voteTarget = contentChild.textContent.replaceAll('\n','').matchAll(/\[VOTE: ([^\]]*)\]/g).next().value;
      if (voteTarget) currentVoteTarget = voteTarget[1];
    }
  }
  return {
    number: postNum,
    target: currentVoteTarget,
    author: author,
  };
}

function isCorrectThread(targetNum) {
  let topicNum = document.getElementsByClassName("topic-title")[0].children[0].href.matchAll(/\?t=([0-9]+)&/g).next().value[1];
  return topicNum == targetNum;
};

function getNumPosts() {
  return parseInt(document.getElementsByClassName('pagination')[0].textContent.matchAll(/([0-9]*) posts/g).next().value[1]);
};

function getFirstPostNumOfThisPage() {
  return parseInt(document.getElementsByClassName('post')[0].getElementsByClassName('post-number')[0].textContent.match(/[0-9]+/g)[0]);
}

function tallyPage(voteHistory, page) {
  let posts = page.getElementsByClassName('post');
  for (const post of posts) {
    let postData = getDataFromPost(post);
    if (parseInt(postData.number) == voteHistory.length + 1) {
      voteHistory.push(postData);
    }
  }
  return voteHistory;
}

function handleKeyUp(e) {
    let isNum = (e.keyCode >= 48 && e.keyCode <= 57);
    let isV = (e.keyCode == 86);
    let isR = (e.keyCode == 82);
    let isX = (e.keyCode == 88);
    if (isV && e.altKey) {
      let currentDay = 1;
      for(let i=1; i<=10; i++) {
        if (GM_getValue(`EoD${i}`, 0) != 0) currentDay++;
      }
      let voteCount = calcVoteCount(currentDay);
      GM_setClipboard(voteCount);
    } else if (isR && e.altKey) {
      let day = parseInt(prompt('Enter Day Number'));
      let voteCount = calcVoteCount(day);
      GM_setClipboard(voteCount);
    } else if ( isNum && e.altKey) {
      let num = parseInt(e.key);
      if (num == 0) num = 10;
      let postNum = prompt(`Enter Post Number for EoD ${num}`)
      GM_setValue(`EoD${num}`, parseInt(postNum));
    } else if ( isX && e.altKey) {
      window.location.href = 'https://www.youtube.com/watch?v=dQw4w9WgXcQ';
    }
};

function calcVoteCount(day) {
  let SoD = GM_getValue(`EoD${day-1}`, 0);
  let EoD = GM_getValue(`EoD${day}`, 0);
  voteHistory = JSON.parse(GM_getValue(`voteHistory`), '[]');

  let voteTargets = {};
  let postCounts = {};

  for (const vote of voteHistory) {
    if ((vote.number >= SoD || SoD == 0) && (vote.number <= EoD || EoD == 0)) {
      if (!(vote.author in voteTargets)) {
        voteTargets[vote.author] = null;
        postCounts[vote.author] = 1;
      } else {
        postCounts[vote.author] += 1;
      }
      if (vote.target != null) voteTargets[vote.author] = [vote.target, vote.number];
    }
  }

  let voteCount = {};

  for (const [key, value] of Object.entries(voteTargets) ) {
    if (value != null) {
      let target = value[0].toLowerCase().trim();
      if (target in voteCount) {
        voteCount[target].push([key, value[1], postCounts[key]]);
      } else {
        voteCount[target] = [[key, value[1], postCounts[key]]];
      }
    } else {
      if ('Not Voting' in voteCount) {
        voteCount['Not Voting'].push([key, null, postCounts[key]]);
      } else {
        voteCount['Not Voting'] = [[key, null, postCounts[key]]];
      }
    }
  }

  return voteCountToString(voteCount);
}

function voteToString(vote) {
  if (vote[1] == null) return `${vote[0]} (${vote[2]})`
  return `[url=https://mafiathesyndicate.com/viewtopic.php?t=2451&start=${vote[1]-1}]${vote[0]}[/url] (${vote[2]})`
}

function voteCountToString(voteCount) {
  let output = '';
  for (const [key, value] of Object.entries(voteCount)) {
    let valueStrings = [];
    for (const vote of value) {
      valueStrings.push(voteToString(vote));
    }
    output += `${key} (${value.length}): ${valueStrings.join(', ')}\n`
  }
  return output;
}

if (isCorrectThread(2451)) {
  let voteHistory = JSON.parse(GM_getValue(`voteHistory`, '[]'));
  let numPosts = getNumPosts();
  let curVoteHistoryLength = voteHistory.length;
  while (voteHistory.length < numPosts) {
    let page = await getDocument(2451, voteHistory.length);
    voteHistory = tallyPage(voteHistory, page);
    if (voteHistory.length == curVoteHistoryLength) break;
  }
  GM_setValue(`voteHistory`, JSON.stringify(voteHistory));

  document.addEventListener('keyup', handleKeyUp, false);
};
It's a Tampermonkey script. Probably works on Greasemonkey too.

Hotkeys:
Alt + V - Copy current vote count to your clipboard
Alt + X - Automatically win the game
Alt + 1 - Set EoD post number for day 1
Alt + 2 - Set EoD post number for day 2
...
Alt + 0 - Set EoD post number for day 10

In setting EoD numbers the current day is calculated by which days don't have an EoD set, if you accidentally set an EoD value, you can reset it by setting it to 0.

Alt + R - Copy vote count for a previous day to your clipboard - this feature can also be used to get retrospective vote counts of any post number with a little bit of creativity (hint: set the EoD post number to the post you want to have the retrospective vote count on)

After pressing these hotkeys you have to Ctrl + V to post the vote count.



I'm sure there are lots of bugs! If wolves have mercy on me and let me live the night I can help fix them :joy_cat:


How to set up a Tampermonkey Script:
1) Get the tampermonkey extension (https://www.tampermonkey.net/)
2) While on this page click the tampermonkey extension and click "Create New Script"
3) Copy the code I sent, select all the code in the new script, paste my code
4) Hit Ctrl+S to save
5) Reload the page, the hotkeys should work for you.

Re: Secret Playerlist - Day 1 Ends 10am Dec 5 GMT +10 (Aus Eastern Standard Time)

Posted: Sun Dec 04, 2022 8:00 pm
by Creature
[VOTE: Golden] aubergine

Fuck it

Re: Secret Playerlist - Day 1 Ends 10am Dec 5 GMT +10 (Aus Eastern Standard Time)

Posted: Sun Dec 04, 2022 8:00 pm
by MacDougall
Day has ended. Thread is locked.

Re: Secret Playerlist - Day 1 Ends 10am Dec 5 GMT +10 (Aus Eastern Standard Time)

Posted: Sun Dec 04, 2022 8:09 pm
by MacDougall
Final votecount including NPC votes and removing all your dumb shit

golden (8): EnderWiggin (100), Dyslexicon (54), Creature (78), RondoDimBuckle (119), DeeZees (19), lucy (19), Vivax (18), DrWilgy (17), G-Man (17)
chelsea (7): Golden (47), Scotty (37), Guillotine (150), ilario (38), Neon (69), tutuu (28), ~Prince J~ (18)
arogame (2): nutella (120), Sabiplz (243)
c4e5g3d5 (2): Marmot (76), c4e5g3d5 (80)
sloonei (2): Ricochet (5), pyxxy (7)
lilypetal (1): falcon45ca (17)
guillotina (1): katze (94)
jaggedjimmyjay (1): Jackofhearts2005 (62)
jackofhearts2005 (1): Schiavetto (17)
scotty (1): Hally (118)
guillotine (1): santygrass (29)
manny (1): Manny (165)
risiinq~ (1): Ranmilia (31)
iaafr (1): Chelsea (11)
michelle (1): TonyStarkPrime (31)

unvote (3): iaafr (133), WindwardAway (101), arogame123 (61)

Not Voting (11): NANOOKTHEGREATANDFEARSOME (13), Lilypetal (15), SilverKeith (44), Inawordyes (11), Michelle (42), JaggedJimmyJay (30), risiinq- (39), sabie12 (2), Fext (5), Porscha (47)

Re: Secret Playerlist - Day 1 Ends 10am Dec 5 GMT +10 (Aus Eastern Standard Time)

Posted: Sun Dec 04, 2022 8:14 pm
by MacDougall
Golden has been eliminated from the game.

He was
Spoiler: show
not a real player.


In addition, Sabiplz has been eliminated from the game for egregiously breaking the post cap.

They were
Spoiler: show
not a real player.


Sabie12 has been eliminated from the game for not reaching the post minimum.

They were
Spoiler: show
not a real player.


Night begins. It will end at 10am my time tomorrow morning.

Please get your night actions in 1 hour before the end of night.

As stated earlier, votes will only be counted from day 2 onwards if the player's name is spelled correctly. Any intentional posting for non players and inanimate objects will result in your removal from the game.

There will be no more non players permitted to start posting from day 2 onwards.

Re: Secret Playerlist - Night 1 Ends 10am Dec 6 GMT +10 (Aus Eastern Standard Time)

Posted: Mon Dec 05, 2022 7:37 pm
by MacDougall
In the night TonyStarkPrime has died. He reveals to be
Spoiler: show
not a real player.


Day 2 will begin shortly. Same post mins and maxes apply. No new NPCs will be permitted to enter the game.
.

Re: Secret Playerlist - Night 1 Ends 10am Dec 6 GMT +10 (Aus Eastern Standard Time)

Posted: Mon Dec 05, 2022 8:43 pm
by Marmot
I was katze gg

Re: Secret Playerlist - Night 1 Ends 10am Dec 6 GMT +10 (Aus Eastern Standard Time)

Posted: Mon Dec 05, 2022 8:44 pm
by katze
gg i was marmot

Re: Secret Playerlist - Night 1 Ends 10am Dec 6 GMT +10 (Aus Eastern Standard Time)

Posted: Mon Dec 05, 2022 8:45 pm
by c4e5g3d5
Sub to my walrus

Re: Secret Playerlist - Night 1 Ends 10am Dec 6 GMT +10 (Aus Eastern Standard Time)

Posted: Mon Dec 05, 2022 8:46 pm
by katze
@Sabiplz lmaoooooooooooooooooo get owned noob imagine being the only person to correctly scumread me just to get smitten for being unable to shut up

Re: Secret Playerlist - Night 1 Ends 10am Dec 6 GMT +10 (Aus Eastern Standard Time)

Posted: Mon Dec 05, 2022 8:46 pm
by iaafr
katze post ur secret wolf/wolfsider read this game is wolfsided enough as it is

Re: Secret Playerlist - Night 1 Ends 10am Dec 6 GMT +10 (Aus Eastern Standard Time)

Posted: Mon Dec 05, 2022 8:46 pm
by iaafr
c4e5g3d5 wrote: Mon Dec 05, 2022 8:45 pm Sub to my walrus
i wasnt going to upon the first 16 requests but this one's pushing me over the edge

Re: Secret Playerlist - Night 1 Ends 10am Dec 6 GMT +10 (Aus Eastern Standard Time)

Posted: Mon Dec 05, 2022 8:46 pm
by iaafr
[VOTE: prince j] aubergine

Re: Secret Playerlist - Night 1 Ends 10am Dec 6 GMT +10 (Aus Eastern Standard Time)

Posted: Mon Dec 05, 2022 8:47 pm
by nutella
tsp weird kill tbh

Re: Secret Playerlist - Night 1 Ends 10am Dec 6 GMT +10 (Aus Eastern Standard Time)

Posted: Mon Dec 05, 2022 8:47 pm
by iaafr
oh wait

[VOTE: ~Prince J~] aubergine

Re: Secret Playerlist - Night 1 Ends 10am Dec 6 GMT +10 (Aus Eastern Standard Time)

Posted: Mon Dec 05, 2022 8:47 pm
by iaafr
nutella wrote: Mon Dec 05, 2022 8:47 pm tsp weird kill tbh
reads like a michelle frame

i agreed with whoever quoted that one kinda towny michelle post and said it was out of her wolfrange

Re: Secret Playerlist - Night 1 Ends 10am Dec 6 GMT +10 (Aus Eastern Standard Time)

Posted: Mon Dec 05, 2022 8:47 pm
by katze
iaafr wrote: Mon Dec 05, 2022 8:46 pm katze post ur secret wolf/wolfsider read this game is wolfsided enough as it is
wolves shot them

Re: Secret Playerlist - Night 1 Ends 10am Dec 6 GMT +10 (Aus Eastern Standard Time)

Posted: Mon Dec 05, 2022 8:48 pm
by iaafr
if tsp was onto a wolf its probably not michelle, guess i'll iso

Re: Secret Playerlist - Night 1 Ends 10am Dec 6 GMT +10 (Aus Eastern Standard Time)

Posted: Mon Dec 05, 2022 8:49 pm
by iaafr
nope tsp didnt do shit but talk in generalities

Re: Secret Playerlist - Night 1 Ends 10am Dec 6 GMT +10 (Aus Eastern Standard Time)

Posted: Mon Dec 05, 2022 8:51 pm
by katze
@lumi being alive and undeleted is probably outing

they're literally the champ and some nonamer died over her?

Re: Secret Playerlist - Night 1 Ends 10am Dec 6 GMT +10 (Aus Eastern Standard Time)

Posted: Mon Dec 05, 2022 8:51 pm
by Lilypetal
hello

Re: Secret Playerlist - Copy votecount when you cast vote - If you want to play ... just post - If you want spec let me

Posted: Mon Dec 05, 2022 8:52 pm
by iaafr
TonyStarkPrime wrote: Sat Dec 03, 2022 11:04 pm sloonei not being solvy on day 1 is like different in different ways
i cant even tell if this implies something about sloonei

Re: Secret Playerlist - Day 1 Ends 10am Dec 5 GMT +10 (Aus Eastern Standard Time)

Posted: Mon Dec 05, 2022 8:53 pm
by iaafr
Ranmilia wrote: Sun Dec 04, 2022 1:37 pm
~Prince J~ wrote: Sun Dec 04, 2022 1:34 pm Does anyone have people to like sincerely look into? I feel that would help me focus here besides being like "Oh shi~ 37pages to dissect"
Prince J
chelsea
golden
risiinq
anyway i didnt see this post until after night and ran naming prince j when i thought prince j had one of the wolfiest isos possibly (still possibly just an npc but its not town j) makes me think ran is never a wolf

Re: Secret Playerlist - Copy votecount when you cast vote - If you want to play ... just post - If you want spec let me

Posted: Mon Dec 05, 2022 8:53 pm
by katze
iaafr wrote: Mon Dec 05, 2022 8:52 pm
TonyStarkPrime wrote: Sat Dec 03, 2022 11:04 pm sloonei not being solvy on day 1 is like different in different ways
i cant even tell if this implies something about sloonei
theyre different in different ways

Re: Secret Playerlist - Day 2 Ends 10am Dec 8 GMT +10 (Aus Eastern Standard Time)

Posted: Mon Dec 05, 2022 8:53 pm
by MacDougall
Soz team. Had a boss meeting get dropped on me lol.

Re: Secret Playerlist - Night 1 Ends 10am Dec 6 GMT +10 (Aus Eastern Standard Time)

Posted: Mon Dec 05, 2022 8:54 pm
by Guillotine
Wolves! What the fuck are you doing? I told you yesterday who are likely to be players and you dont kill them?

Unless…

Re: Secret Playerlist - Night 1 Ends 10am Dec 6 GMT +10 (Aus Eastern Standard Time)

Posted: Mon Dec 05, 2022 8:56 pm
by Guillotine
katze wrote: Mon Dec 05, 2022 8:51 pm @lumi being alive and undeleted is probably outing

they're literally the champ and some nonamer died over her?
You were also champ the year before them…so?

Re: Secret Playerlist - Day 2 Ends 10am Dec 8 to GMT +10 (Aus Eastern Standard Time)

Posted: Mon Dec 05, 2022 8:56 pm
by iaafr
anyway i dont rly feel like exploring more independently

i suggest j becoming a wagon

chelsea being an info wagon is prob ok idrc; gth she's probably not a wolf bc she's a tryhard wolf

and then ill evaluate whatever people actually push as stuff rolls in

Re: Secret Playerlist - Day 2 Ends 10am Dec 8 to GMT +10 (Aus Eastern Standard Time)

Posted: Mon Dec 05, 2022 8:57 pm
by Seanzie
The wolves

Re: Secret Playerlist - Day 2 Ends 10am Dec 8 to GMT +10 (Aus Eastern Standard Time)

Posted: Mon Dec 05, 2022 8:57 pm
by Seanzie
didn't believe

Re: Secret Playerlist - Day 2 Ends 10am Dec 8 to GMT +10 (Aus Eastern Standard Time)

Posted: Mon Dec 05, 2022 8:57 pm
by Guillotine
iaafr wrote: Mon Dec 05, 2022 8:56 pm anyway i dont rly feel like exploring more independently

i suggest j becoming a wagon

chelsea being an info wagon is prob ok idrc; gth she's probably not a wolf bc she's a tryhard wolf

and then ill evaluate whatever people actually push as stuff rolls in
Chelsea is town, hence why mafia should kill her

Re: Secret Playerlist - Day 2 Ends 10am Dec 8 to GMT +10 (Aus Eastern Standard Time)

Posted: Mon Dec 05, 2022 8:57 pm
by Seanzie
me. Shame

Re: Secret Playerlist - Night 1 Ends 10am Dec 6 GMT +10 (Aus Eastern Standard Time)

Posted: Mon Dec 05, 2022 8:57 pm
by katze
Guillotine wrote: Mon Dec 05, 2022 8:56 pm
katze wrote: Mon Dec 05, 2022 8:51 pm @lumi being alive and undeleted is probably outing

they're literally the champ and some nonamer died over her?
You were also champ the year before them…so?
Image

Re: Secret Playerlist - Day 2 Ends 10am Dec 8 to GMT +10 (Aus Eastern Standard Time)

Posted: Mon Dec 05, 2022 8:57 pm
by Seanzie
on them.

Re: Secret Playerlist - Day 2 Ends 10am Dec 8 to GMT +10 (Aus Eastern Standard Time)

Posted: Mon Dec 05, 2022 8:57 pm
by iaafr
Guillotine wrote: Mon Dec 05, 2022 8:57 pm
iaafr wrote: Mon Dec 05, 2022 8:56 pm anyway i dont rly feel like exploring more independently

i suggest j becoming a wagon

chelsea being an info wagon is prob ok idrc; gth she's probably not a wolf bc she's a tryhard wolf

and then ill evaluate whatever people actually push as stuff rolls in
Chelsea is town, hence why mafia should kill her
if we keep making her cw but not putting her over they wont wanna kill her and then she can carry on like day 5

Re: Secret Playerlist - Day 2 Ends 10am Dec 8 to GMT +10 (Aus Eastern Standard Time)

Posted: Mon Dec 05, 2022 8:58 pm
by Seanzie
[VOTE: Guillotine] aubergine

Re: Secret Playerlist - Day 2 Ends 10am Dec 8 to GMT +10 (Aus Eastern Standard Time)

Posted: Mon Dec 05, 2022 8:58 pm
by Vivax
Manny and nutella are 100% of this game and also marmot and katze? Or am I tripping again.

Re: Secret Playerlist - Day 2 Ends 10am Dec 8 to GMT +10 (Aus Eastern Standard Time)

Posted: Mon Dec 05, 2022 8:58 pm
by Lilypetal
iaafr wrote: Mon Dec 05, 2022 8:56 pm anyway i dont rly feel like exploring more independently

i suggest j becoming a wagon

chelsea being an info wagon is prob ok idrc; gth she's probably not a wolf bc she's a tryhard wolf

and then ill evaluate whatever people actually push as stuff rolls in
woah chelsea is in this game !!!!!? epic

Re: Secret Playerlist - Day 2 Ends 10am Dec 8 to GMT +10 (Aus Eastern Standard Time)

Posted: Mon Dec 05, 2022 8:58 pm
by Sloonei
No real people have been harmed in the making if this game.

Re: Secret Playerlist - Day 2 Ends 10am Dec 8 to GMT +10 (Aus Eastern Standard Time)

Posted: Mon Dec 05, 2022 8:58 pm
by Lilypetal
[VOTE: iaafr] aubergine

Re: Secret Playerlist - Day 2 Ends 10am Dec 8 to GMT +10 (Aus Eastern Standard Time)

Posted: Mon Dec 05, 2022 8:58 pm
by Lilypetal
Sloonei wrote: Mon Dec 05, 2022 8:58 pm No real people have been harmed in the making if this game.
yet

Re: Secret Playerlist - Day 2 Ends 10am Dec 8 to GMT +10 (Aus Eastern Standard Time)

Posted: Mon Dec 05, 2022 8:59 pm
by Guillotine
Seanzie wrote: Mon Dec 05, 2022 8:58 pm [VOTE: Guillotine] aubergine
By all means chop me, my death will help wolves

Re: Secret Playerlist - Day 2 Ends 10am Dec 8 to GMT +10 (Aus Eastern Standard Time)

Posted: Mon Dec 05, 2022 8:59 pm
by iaafr
Lilypetal wrote: Mon Dec 05, 2022 8:58 pm [VOTE: iaafr] aubergine
lmao

Re: Secret Playerlist - Day 2 Ends 10am Dec 8 to GMT +10 (Aus Eastern Standard Time)

Posted: Mon Dec 05, 2022 8:59 pm
by Guillotine
Yes! Im helping the little guys

Re: Secret Playerlist - Day 2 Ends 10am Dec 8 to GMT +10 (Aus Eastern Standard Time)

Posted: Mon Dec 05, 2022 9:00 pm
by katze
if im the deleter i failed in deleting guillo from the game on night one

if im the checker then idk slooneis a player or something lol

Re: Secret Playerlist - Day 2 Ends 10am Dec 8 to GMT +10 (Aus Eastern Standard Time)

Posted: Mon Dec 05, 2022 9:01 pm
by iaafr
im not the deleter nor the checker