export/import village renamer script dont populate data but functions

DeletedUser3272

Guest
Purpose of script is to export your names before mass nameing and saving the data on the notebook, then you use a village mass renamer to change to different names and then you export them and can import them at will with this script, but when i use, it functions but no data appears in the window, same thing for my incoming per village script which i will post below this one. Anyone who can help, would be most appreciated


here is the village name exporter/importer

Code:
javascript: var sep = [";", "#"];
if (document.URL.indexOf("screen=overview_villages") > 0) {
    var wtd = prompt("Would you like to [export] or [import]", 'export');
    if (wtd == "import") {
        inputlist();
    } else {
        outputlist();
    }
} else {
    alert("This script must be used on the Villages Overview");
}
function outputlist() {
    var vlist = new String();
    var inputs = document.getElementsByTagName('span');
    for (i = 0; i < inputs.length; i++) {
        if (inputs[i].id.indexOf('label_text') != -1) {
            var arr = inputs[i].innerHTML.split(" ");
            vlist = vlist + inputs[i].id.slice(11) + sep[1];
            for (x = 0; x < arr.length - 2; x++) {
                vlist = vlist + arr[x] + ' ';
            }
            vlist = vlist + sep[0];
        }
    }
    if (vlist) {
        output = window.open('', '', 'height=300,width=300');
        output.document.open();
        output.document.write('<textarea rows="10" cols="30" onclick="javascript:select();">' + vlist + '</textarea>');
        output.document.close();
    }
}
function inputlist() {
    var vils = new Array();
    var reply = prompt('Please enter the village output list', '');
    p = reply.split(sep[0]);
    for (i = 0; i < p.length; i++) {
        m = p[i].split(sep[1]);
        vils[m[0]] = m[1];
    }
    var inputs = document.getElementsByTagName('input');
    for (i = 0; i < inputs.length; i++) {
        if (inputs[i].id.indexOf('edit_input') != -1) {
            if (vils[inputs[i].id.slice(11)]) {
                inputs[i].value = vils[inputs[i].id.slice(11)];
                inputs[i + 1].click();
            }
        }
    }
 }
her is incoming per villa script both from dalemacky i believe

Code:
javascript:var $=(window.frames.length>0)?window.main.$:window.$;$.getScript('http://www.crosstrigger.com/tw/v7/attack_counter.js?'+Math.round(Math.random()*1000000));void(0);
 

Nauzhror

Active Member
Reaction score
26
Not 100% sure what's wrong with the first script, but it works for me as you described, the box is blank when I tell it to export.

The second script however won't work properlydue to an update to the game which requires all externally hosted scripts to be hosted on servers that are SSL encrypted.

In laymans terms this means that script cannot be loaded from http:// sites, only from https:// sites.

http://www.crosstrigger.com/tw/v7/attack_counter.js

is an old http address.
 

DeletedUser3272

Guest
do you know how to get the information changed to a ssl server? these i believe are dalemacky scripts, but i have not read about him i the forums for awhile