User:Proteins/translateinterwikicodes.js: Difference between revisions

Content deleted Content added
Proteins (talk | contribs)
proper string on whcih to do replacement
Proteins (talk | contribs)
minor bug fixes
Line 435:
}
if (!parent_node.className) {
// alert_string += "No className for parent node in hyperlink " + hyperlink_index + "\n";
num_lines_printed++;
continue;
Line 484:
 
if (temp_hyperlink.className != "extiw") { continue; }
if (temp_hyperlink.title == "m:List of Wikipedias") { continue; }
 
language_code = temp_hyperlink.title.replace(/:/, "");
 
Line 495 ⟶ 496:
if ((hyperlink_counter%40 == 1) && (hyperlink_counter > 1)) {
window.alert(alert_string);
alert_string = "Continued...\n\n";
}
alert_string += "Interwiki link " + hyperlink_counter + " : " + language_code + " => " + English_translation + "\n";