Unfortunately, last 3 posts are not eligible for giveaway since they were made after 00:00:00 GMT+0. I will send participation prize anyway, don't want to keep anyone out. Will update this post with details later.
Script in case I want to do another giveaway in the future:
CODE
const all_users = document.querySelectorAll(".bigusername");
const all_infos = document.querySelectorAll(".info");
const all_posts = document.querySelectorAll(".postcolor");
let x = "";
for (var i = 0; i < all_users.length; i++) {
let x1 = all_users[i].textContent;
let x2 = all_infos[5 * i + 4].textContent.split("\n").join("").split(" ")[1];
let x3 = all_infos[5 * i + 3].textContent.split(":")[1];
if (all_posts[i].textContent.includes("corona bad doggo good")) {
x += [x1, x2, x3].join(",") + "\n";
}
}
console.log(x);
===================================================
We have 23 players, 3 posted later than the deadline and won't be eligible for bigger prizes.
Your vote strength is determined based on the details below:
- Basic vote strength: 1
- Star vote strength reduction: Each star level reduces your
total vote strength by 33% (bronze is 1 level, silver is 2, so on.)
- Bonus vote strength by account age:
CODE
2*MIN(account_age_in_years/3,1)
- Bonus vote strength by level
CODE
Logistic growth with sigmoid midpoint at level 100, growth rate 4, normalized to [0.2,2] for level [1,400]
(IMG:[
i.imgur.com]
https://i.imgur.com/NOatNos.png)
So technically you have 2 extra tickets as long as you are over level 200.
Winners are picked with python's pseudo-RNG.
CODE
for _ in range(ROLL_TIMES):
v_ar = [0]
p_ar = list()
v_total = 0
for player, vote in VOTES.items():
v_total += vote
v_ar.append(v_total)
p_ar.append(player)
roll = random() * v_total
winner_idx = b_search(v_ar, roll)
winner = p_ar[winner_idx]
print(winner)
VOTES.pop(winner)
And here are the winners!
ijkjlj
taxeol
RibbonsCan
foun001
Bolide
BL.Kunkka
jfieoiod
Pokom
I will contact each with details later.
All sent! That's it for today. Take a look at my shop if you are interested as there are always some giveaways going on there.
Nothing to see here
CODE
var testStr = "I like to 69 while drinking corona beer";
var postdetails = document.querySelectorAll(".postdetails");
var allPosts = document.querySelectorAll(".postcolor");
var x = "";
for (var i = 0; i < postdetails.length / 2; i++) {
let ele = postdetails[i * 2 + 1];
let username = ele.querySelector(".bigusername").textContent;
let level = ele.querySelectorAll(".info")[4].textContent.split("\n").join("").split(" ")[1];
let joindate = ele.querySelectorAll(".info")[3].textContent.split(":")[1];
let badges = ele.querySelector('div[style="text-align:center"]');
let starLevel = 0;
if (badges != null) {
let starEle = badges.querySelector("img");
let src = starEle['src'];
if (src.includes("bronzestar")) {
starLevel = 1;
} else if (src.includes("silverstar")) {
starLevel = 2;
} else if (src.includes("goldstar")) {
starLevel = 3;
}
}
if (allPosts[i].textContent.includes(testStr)) {
x += [username, joindate, level, starLevel].join(",") + "\n";
} else {
console.log(username + " is stupid and can't follow instructions.");
}
}
console.log(x);
This post has been edited by Ass Spanker: May 30 2020, 09:14