Skip to content

Instantly share code, notes, and snippets.

View alexandrespmg's full-sized avatar

Alexandre Pacheco alexandrespmg

View GitHub Profile
@alexandrespmg
alexandrespmg / farm.js
Created December 10, 2023 20:33
farm.js
var spearCount = document.getElementById('spear').innerText;
var swordCount = document.getElementById('sword').innerText;
var spyCount = document.getElementById('spy').innerText;
var lightCount = document.getElementById('light').innerText;
var message = 'Spear: ' + spearCount +
'\nSword: ' + swordCount +
'\nSpy: ' + spyCount +
'\nLight: ' + lightCount;
var element = document.getElementById("selectAllUnits");
element.click();
(async () => {
if (typeof window.twLib === 'undefined') {
window.twLib = {
queues: null,
init: function () {
if (this.queues === null) {
this.queues = this.queueLib.createQueues(5);
}
},
queueLib: {
@alexandrespmg
alexandrespmg / atks.js
Last active May 13, 2023 19:38
renomear-atks
// ==UserScript==
// @name Etiqueta persnoalizada - By Best
// @version Release
// @author PhilipsNostrum and Kirgonix (V2.0)
// @author Diogo Rocha and Bernas (V1.0)
// @include https://*&screen=overview
// @include https://&mode=incomings
// @include https://&screen=info_village&
// @include https://&screen=place
// @include https://?screen=place&t=&village=*
/*
* Script Name: Single Village Snipe
* Version: v2.1.3
* Last Updated: 2023-02-26
* Author: RedAlert
* Author URL: https://twscripts.dev/
* Author Contact: RedAlert#9859 (Discord)
* Approved: N/A (approved after the script approval rules change)
* Approved Date: 2021-02-27
* Mod: JawJaw