Approved scripts

Status
Not open for further replies.

dabookman

Community Manager
Staff member
Community Manager
Reaction score
160
Important: Generally, we do not ban scavenge scripts, Resource Balancers or snipe scripts so some may not yet be in the list below.


How to 'install' a script

Edit your quickbar and Add a new link. Copy and paste the script to the Target-URL part. To use the script just click on the item in your quickbar.

Updates for Scripts
Sometimes scripts will be ned to be updated to fix bugs or add new features. It is the authors responsibility to update, whilst we may approve certain scripts, we do not maintain them.

List of Approved Quickbar Scripts
[thread=14188]» Resource Balancer[/thread]

Code:
javascript:$.getScript('https://media.innogamescdn.com/com_DS_UK/Scripts/ExtremeTw_ResourceBalancer_launcher.js');void 0;
Incoming Attacks

[thread=18498]» Tag (customisable)[/thread]

Code:
javascript:$.getScript('https://media.innogamescdn.com/com_DS_UK/Scripts/labelAttacks.js');void 0;
[HR][/HR][thread=13557]» Find Next untagged[/thread]

Code:
javascript:$.getScript('https://media.innogamescdn.com/com_DS_UK/Scripts/morningstar_findnextattack.js');void 0;
[HR][/HR][thread=23534]» Mass Tag (customisable)[/thread]

Code:
javascript:$.getScript('https://media.innogamescdn.com/com_DS_UK/Scripts/mass_tag_launch.js');void 0;
[HR][/HR][thread=20973]» Mass Label: to current server time[/thread]

Code:
javascript:$.getScript('https://media.innogamescdn.com/com_DS_UK/Scripts/tagToUnknown.js');void 0;
[HR][/HR][thread=23654]» Extra filters[/thread]

Code:
javascript:$.getScript('https://media.innogamescdn.com/com_DS_UK/Scripts/IncomingFilters.js');void 0;
Farm Assistant

[thread=22920]» Hide entries with attacks enroute[/thread]

Code:
javascript:$.getScript('https://media.innogamescdn.com/com_DS_UK/Scripts/faFilterAttack.js');void 0;
[HR][/HR][thread=22693]» Filter by Resources[/thread]

Code:
javascript:$.getScript('https://media.innogamescdn.com/com_DS_UK/Scripts/TM4rkuS_faFilterRes.js');void 0;
[thread=22150]» Mass Village Renamer[/thread]

Code:
javascript:$.getScript('https://media.innogamescdn.com/com_DS_UK/Scripts/nameVillages.js');void 0;
[thread=17432]» Battle Report Enhancer[/thread]

Code:
javascript:$.getScript('https://media.innogamescdn.com/com_DS_UK/Scripts/BRE_launch.js');void 0;
[thread=13560]» show hauls on commands overview (Pillaging Statistics)[/thread]

Code:
javascript:$.getScript('https://media.innogamescdn.com/com_DS_UK/Scripts/twcheese_commandHauls_launcher.js');void 0;
[thread=13433]» Troop Summary[/thread]

Code:
javascript:(window.main||window).$.getScript('https://media.innogamescdn.com/com_DS_UK/Scripts/troop_counter.js');void 0;
[thread=22798]» Snipe Calculator (attack/support planner)[/thread]

Code:
javascript:$.getScript('https://media.innogamescdn.com/com_DS_UK/Scripts/snipe.js');void 0;
[thread=22600]» Filter, Rename, and Share commands (cFRS)[/thread]

Code:
javascript:$.getScript('https://media.innogamescdn.com/com_DS_UK/Scripts/cFRS_launch.js');void 0;
[thread=16759]» Op Planner (use on player profile)[/thread]

Code:
javascript:$.getScript('https://media.innogamescdn.com/com_DS_UK/Scripts/opGen.js');void 0;
[thread=17086]» Overview Sorter[/thread]

Code:
javascript:$.getScript('https://media.innogamescdn.com/com_DS_UK/Scripts/sort_rh.js',function(){fnOverviewSorter()});void 0;
[thread=16459]» withdraw support Helper[/thread]

Code:
javascript:(window.main||self).$.getScript('https://media.innogamescdn.com/com_DS_UK/Scripts/withdraw_support.js',function(){var script=new WithdrawSupport();script.execute();});void(0);
[thread=22552]» Coordinate Picker for Map[/thread]

Code:
javascript:$.getScript('https://media.innogamescdn.com/com_DS_UK/Scripts/map_coord_picker.js');void 0;
[thread=14820]» Map Overlay[/thread]

Code:
javascript:(window.main||self).$.getScript('https://media.innogamescdn.com/com_DS_UK/Scripts/map_attack_overlay.js',function(){var script=new MapAttackOverlay();script.execute();});void(0);
[thread=13434]» Table Filter[/thread]

Code:
javascript:$.getScript('https://media.innogamescdn.com/com_DS_UK/Scripts/troop_filter.js');void 0;
[thread=13533]» rename recently sent commands[/thread]

Code:
javascript:$.getScript('https://media.innogamescdn.com/com_DS_UK/Scripts/twcheese_renameCommandsRSO_launch.js');void 0;
[thread=17328]» display village notes on overviews[/thread]

Code:
javascript:$.getScript('https://media.innogamescdn.com/com_DS_UK/Scripts/overviewNotes.js');void 0;
[thread=10311]» zomgTW Bookmarker[/thread]

Code:
javascript:$.getScript('https://media.innogamescdn.com/com_DS_UK/Scripts/zomgTW_Bookmarker.js');void 0;
[thread=21908]» open Conquer Feed on twClip website[/thread]

Code:
javascript:$.getScript('https://media.innogamescdn.com/com_DS_UK/Scripts/twclip.js');void 0;

Other Approved Scripts
Opera Macro: t-train
Send fast noble trains
[thread=11171]» More information[/thread]
Code:
Click button&Switch to next page

LA Enhancer
javascript:$.get('https://scripts.ibragonza.nl/enhancer/enhancer.js');void(0);
 
Last edited:

dabookman

Community Manager
Staff member
Community Manager
Reaction score
160
Tribe overview enhancement


Script enhances the tribe member list table with additional data.

Code:
javascript:
class UrlBuilder
{
    constructor(template)
    {
        this.template = template;
    }

    build(args)
    {
        let result = this.template;
        let keys = Object.keys(args);

        keys.forEach((e) => {
            result = result.replace("{{" + e + "}}", args[e]);
        });

        return result;
    }
}

class App
{
    constructor(config)
    {
        this.config = config;
    }

    load()
    {
        // Set local members
        this.iterator = 0;
        this.members = $('#content_value table').eq(3).find('tr').splice(1);
        this.interval = setInterval($.proxy(this.update, this), 600);

        // Add headers
        let header = $('#content_value table').eq(3).find('tr').eq(0);
        header.find('th:last').after('<th class="nowrap"><a href="#">Plunder PB</a></th> <th class="nowrap"><a href="#">Scavenge PB</a></th> <th class="nowrap"><a href="#">Achievements</a></th>');
    }

    unload()
    {
        if (this.interval != undefined && this.interval != null)
        {
            clearInterval(this.interval);
        }
    }

    update()
    {
        if (this.iterator >= this.members.length)
        {
            this.unload();
            return;
        }

        this.getData(this.members[this.iterator++]);
    }

    getData(input)
    {
        let player = $(input).find('td:first').text().trim().split('(')[0].trim();
        let url = new UrlBuilder('https://{{world}}.tribalwars.co.uk/game.php?screen=ranking&mode=in_a_day&type={{type}}&name={{name}}');

        // Ask server for data
        // Looted resources
        this.askServer(url.build({ world: game_data.world, type: 'loot_res', name: player }), function (response) {
            response = $(response);
          
            let score = response.find('#in_a_day_ranking_table tr').eq(1).find('td').eq(3).text();
            $(input).find('td:last').after('<td class="lit-item"><b>' + (score.length <= 0 ? "-" : score) + '</b></td>');

            // Scavenge
            app.askServer(url.build({ world: game_data.world, type: 'scavenge', name: player }), function (response) {
                response = $(response);
              
                let score = response.find('#in_a_day_ranking_table tr').eq(1).find('td').eq(3).text();
                $(input).find('td:last').after('<td class="lit-item"><b>' + (score.length <= 0 ? "-" : score) + '</b></td>');
  
                // Awards
                url = new UrlBuilder('https://{{world}}.tribalwars.co.uk/game.php?screen=ranking&mode=awards&name={{name}}')
                app.askServer(url.build({ world: game_data.world, name: player }), function (response) {
                    response = $(response);
                  
                    let result = response.find('#award_ranking_table tr.lit');
                    if (result.size() > 0)
                    {
                        $(input).find('td:last').after('<td class="lit-item">' + result.eq(0).find('td:last').html().trim() + '</td>');
                        return;
                    }
  
                    $(input).find('td:last').after('<td class="lit-item"><i>Achievements hidden</i></td>');
                });
            });
        });
    }

    askServer(url, callback)
    {
        $.ajax({
            url: url,
            dataType: 'html',
            success: function (d) {
                callback(d);
            }
        });
    }
}

let app = new App({});
app.load();
 

dabookman

Community Manager
Staff member
Community Manager
Reaction score
160
Proximity Script


Code:
javascript:$.getScript('https://dl.dropboxusercontent.com/s/wb8m9gu2ekgmvro/prox.js');void(0);

This is what it does:


It allows you to open up multiple rally points for attacking/supporting. by holding the Ctrl button while clicking on the RP symbol.
 

dabookman

Community Manager
Staff member
Community Manager
Reaction score
160
Flag Adder Script

Code:
javascript:var%20assignFlag=true;$.getScript("https://twweb.azurewebsites.net/scripts/twscripts/MassFlagScript.js");void(0);

This is what it does:


Quickly adds flags to villages, especially helpful if you have 100's of villages. You can specify what flag to be added. Best used with groups for specific flags needed.
 

dabookman

Community Manager
Staff member
Community Manager
Reaction score
160
Status
Not open for further replies.