User:Proteins/translateinterwikicodes.js: Difference between revisions

Content deleted Content added
Proteins (talk | contribs)
m re-initialize the alert_string
Proteins (talk | contribs)
allow for more than forty interwiki links to be displayed
Line 435:
hyperlink_counter++;
 
if ((hyperlink_counter%40 <== 411) && (hyperlink_counter > 1)) {
window.alert(alert_string);
alert_string += "Interwiki link " + hyperlink_counter + " : " + language_code + " => " + English_translation + "\n";
alert_string = "Continued...";
}
alert_string += "Interwiki link " + hyperlink_counter + " : " + language_code + " => " + English_translation + "\n";
temp_hyperlink.innerHTML = English_translation;
} // closes loop over interwiki links
Line 474 ⟶ 476:
}
hyperlink_counter++;
if ((hyperlink_counter%40 <== 411) && (hyperlink_counter > 1)) {
window.alert(alert_string);
alert_string += "Interwiki link " + hyperlink_counter + " : " + language_code + " => " + English_translation + "\n";
alert_string = "Continued...";
}
alert_string += "Interwiki link " + hyperlink_counter + " : " + language_code + " => " + English_translation + "\n";
temp_hyperlink.innerHTML = English_translation;
} // closes loop over interwiki links