Anonymous
Not logged in
Talk
Contributions
Create account
Log in
Life After BOB Wiki
Search
Changes
From Life After BOB Wiki
Namespaces
Message
Discussion
More
More
Languages
Page actions
Read
View source
History
← Older edit
MediaWiki:Common.js
(view source)
Revision as of 06:40, 23 June 2021
73 bytes added
,
06:40, 23 June 2021
no edit summary
Line 79:
Line 79:
page: randoms[0].title,
page: randoms[0].title,
section:0,
section:0,
+
headhtml:'<p>',
format: 'json'
format: 'json'
}, api = new mw.Api();
}, api = new mw.Api();
Line 89:
Line 90:
arr = cleanup.split("\n");
arr = cleanup.split("\n");
var filtered = arr.filter(function(entry) { return entry.trim() != ''; });
var filtered = arr.filter(function(entry) { return entry.trim() != ''; });
+
+
for (var i = 0; i<filtered.length; i++){
for (var i = 0; i<filtered.length; i++){
if (filtered[i].includes("\t")){
if (filtered[i].includes("\t")){
−
filtered.
filter
(filtered[i]);
+
console.log(filtered[i]);
+
filtered.splice(
filtered.
indexOf
(filtered[i]
), 1
);
}
}
}
}
Xu6ing
Interface administrators
,
Administrators
526
edits
Navigation
Navigation
Main page
Recent changes
Random page
Random Character
Random Object
About Ian
Wiki tools
Wiki tools
Special pages
Page tools
Page tools
Userpage tools
More
Printable version