Giter VIP home page Giter VIP logo

tribalwars's Introduction

Tribalwars

Some scripts for browser-game Tribalwars

tribalwars's People

Stargazers

Alin Dragomir avatar  avatar João Victor Perin avatar  avatar Rafał Safin avatar Robert avatar  avatar

Watchers

James Cloos avatar Philip avatar Patrik Novotny avatar  avatar

tribalwars's Issues

Notatki

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

fejki

z tej samej wioski

  1. wybierz losowa wioske z puli
  2. przy kolejnych uzyciach usun z puli wioski gracza wybranego wczesniej

BUG Faking script - `!forum_content` is always false

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)

const forum_content = [...document.querySelectorAll("div.forum-container")].pop();
if (!forum_content) {
throw new ScriptResult(Resources.ERROR_FORUM_CONFIG_THREAD_DOES_NOT_EXIST);
}

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

image

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.