Content deleted Content added
mNo edit summary |
mNo edit summary |
||
Line 8:
// TODO:
// - the current document.___location method doesn't work when the page is accessed sans-mod_rewrite
// extracted from http://en.wikiquote.org/wiki/Special:Export//
var namespaces = [
"Talk",
"User",
"User talk",
"Wikiquote",
"Wikiquote talk",
"Image",
"Image talk",
"MediaWiki",
"MediaWiki talk",
"Template",
"Template talk",
"Help",
"Help talk",
"Category",
"Category talk"
];
function addOnloadFunction(f) {
Line 24 ⟶ 44:
// trigger once we view the right page
if (document.___location.pathname.substring(path_len - tool2_url.length, path_len) == tool2_url) {
// get the prefix (needs to be fixed to work sans-mod_rewrite
var prefix = document.___location.protocol + "//" + document.___location.host
+ document.___location.pathname.substring(1, path_len - tool2_url.length);
alert(prefix);
// blank the inner contents of the page
var bodyContent = document.getElementById("bodyContent");
|