Some scripts for browser-game Tribalwars
rnabla / tribalwars Goto Github PK
View Code? Open in Web Editor NEWSome scripts for browser-game Tribalwars
License: GNU General Public License v3.0
Some scripts for browser-game Tribalwars
License: GNU General Public License v3.0
Using user local timezone instead of in-game timezone
https://forum.plemiona.pl/index.php?threads/hermitowskie-fejki.125294/#post-2154618
TODO: Ogarnąć przypadek, kiedy wioska z poprzednich notatek dostała nalepkę 'Kościół', potem zostaje wykryta jako bez wiary na wskutek przeniesienia kościoła. Skrypt zostawia dwie nalepki Kościół i Bez wiary
z tej samej wioski
Hi!
Thanks for some awesome stuff over here ;)
I believe there is a bug at Faking.settings.ts and forum_config option is not working anymore (one with thread_id etc)
Tribalwars/scripts/src/Faking/Faking.settings.ts
Lines 76 to 80 in 4bc730e
I didn't investigated it very deep, but for some reason even if documet.querySelectAll
actually matches some html node (as expected), negation of object always is false, and ERROR_FORUM_CONFIG_THREAD_DOES_NOT_EXIST is always thrown.
Here's quick overview
const forum_content = document.querySelectorAll("div.forum-container");
if (forum_content.length === 0) {
throw new ScriptResult(Resources.ERROR_FORUM_CONFIG_THREAD_DOES_NOT_EXIST);
}
const spoiler_buttons = forum_content[0].querySelectorAll(`div.spoiler > input[value="${config.spoiler_name}"]`);
Again, I didn't tried it live, as it requires as far i can see rerun webpack build, installing some nginx and performing some nasty dns attack on my PC to not get banned, but this should do the trick (actually you do exactly that some lines below)
Cheers
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.