A Pen by Ulrich-Matthias Schäfer on CodePen.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export function createBase64Encoder() { | |
let leftover = null; // Buffer for leftover bytes from the previous chunk | |
return new TransformStream({ | |
transform(chunk, controller) { | |
// Concatenate leftover from the previous chunk | |
let input = leftover ? new Uint8Array([...leftover, ...chunk]) : chunk; | |
// Process in chunks of 3 bytes | |
const length = input.length - (input.length % 3); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Dorfliste | |
// @namespace tribalswars | |
// @description Zeigt eine Dorfliste im Dorfinterface an | |
// @include https://*.die-staemme.de/game.php*screen=overview* | |
// @version 1.2.1 | |
// @grant none | |
// ==/UserScript== | |
$.get('game.php?screen=overview_villages&mode=prod', function(data){ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Alle Befehle abbrechen | |
// @namespace tribalswars | |
// @description Bricht alle möglichen Befehle ab | |
// @include https://*.die-staemme.de/game.php*screen=overview* | |
// @version 1 | |
// @grant none | |
// ==/UserScript== | |
$('#commands_outgoings').before($('<a href="#">Alle abbrechen</a>').css({ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Berichte | |
// @namespace tribalswars | |
// @include https://*.die-staemme.de/*screen=forum* | |
// @version 1.1.3 | |
// @grant none | |
// ==/UserScript== | |
var mouse = null | |
var world = /https:\/\/(de\d+)\./.exec(window.location.href)[1] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Truppen Nachsenden | |
// @namespace tribalswars | |
// @description Fügt einen Button hinzu, der das Nachschicken von Supporttruppen ermöglicht, die gestorben sind | |
// @include https://*.die-staemme.de/game.php*screen=report* | |
// @version 1 | |
// @grant none | |
// ==/UserScript== | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Berichte | |
// @namespace tribalswars | |
// @description Fügt einen BB-Code Button hinzu, der es ermöglicht Berichte direkt formatiert in den Post einzufügen | |
// @include https://*.die-staemme.de/*screen=forum* | |
// @version 1.1.3 | |
// @grant none | |
// ==/UserScript== | |
var mouse = null |