Automatically count total endorsements
RojerGS
I have run two lotteries already, in which I distribute the total endorsements of the lottery article.
I don't count the total endorsements by hand, that would be crazy!
I use a simple bookmark that runs a tiny script that just counts the endorsements.
You can try it for yourself on this article.
Steps:
1. endorse the article (optional but appreciated!);
2. create a new browser bookmark;
3. copy the full line below, starting from "javascript" until ";"
javascript:va = document.getElementsByClassName("view_all"); if (va.length > 0) {va[0].click()};alert("Total endorsements: " + (document.getElementsByClassName("end_100").length * 100 + document.getElementsByClassName("end_50").length * 50 + document.getElementsByClassName("end_5").length * 5));
4. paste in the URL section of the bookmark;
5. save the bookmark;
6. click the bookmark when inside an eRepublik article.
I hope this is helpful!
Comments
Awesome. Thank you for sharing.
Não estou a ver bem como se faz isso mas está engraçado!
Que parte é que não percebes? Como é que podes usar o script ou como é que eu o escrevi?
Awesome!!
100+
😮
O7
Muy difícil 😕. Paso .
Noice!! muito bom! não sei se algum dia hei de precisar disso... mas para quem faz lotarias dá um jeitão.
Espetacular! 😍
Assim é fácil contar os endorsements dos eventos especiais!
Votado!
Patrocinado!
Excelente informação!
Cumprimentos!
o7
https://www.erepublik.com/en/article/vegans-go-hunting-2765628/1/20
https://www.erepublik.com/en/article/list-of-articles-to-endorse1-2766065/1/20
[removed]
Great! Thanks!