Utente:Senpai/monobook/recent2.js: differenze tra le versioni

Contenuto cancellato Contenuto aggiunto
proviamo
ok
Riga 1:
/*
-------------------------------------------------------------------------
|This is a copy of [[:en:User:Lupin/recent2.js]] by [[:en:User:Lupin]] |
|edited for the Dutchlanguaged wikipedia. |
|For more information, see [[User:Erwin85/AVT]]. |
|Latest update: |
|Revision as of 15:02, 26 June 2006 Lupin (Talk | contribs) m |
-------------------------------------------------------------------------
 
This tool hits the RSS feed for recent changes every 30 seconds or so
and checks for common vandalism. It does not make a separate server request
for every edit.
 
Currently, the RSS feed is full of holes and so this may miss many edits.
http://bugzilla.wikimedia.org/show_bug.cgi?id=3942
 
*/
Riga 21 ⟶ 14:
 
recent2={
// Edit these to your liking.
// Make sure there's a comma at the end of each line.
badwordsUrl: 'UserUtente:Senpai/badwords',
filterPage: 'UserUtente:Senpai/Filter_recent_changes',
allRecentPage: 'UserUtente:Senpai/All_recent_changes',
recentIPPage: 'UserUtente:Senpai/Recent_IP_edits',
monitorWatchlistPage: 'UserUtente:Senpai/Monitor_my_watchlist',
spelldictUrl: 'UserUtente:Senpai/Lists_of_common_misspellings/For_machines',
spelldictPage: 'UserUtente:Senpai/Live_spellcheck',
 
// leave this alone
dummy: null
Riga 42 ⟶ 35:
 
var x = window.XMLHttpRequest ? new XMLHttpRequest()
: window.ActiveXObject ? new ActiveXObject("Microsoft.XMLHTTP")
: false;
 
if (x) {
x.onreadystatechange=function() {
Riga 50 ⟶ 43:
};
x.open("GET",bundle.url,true);
x.send(null);
}
return x;
Riga 65 ⟶ 58:
recent2.getBadWords=function() {
window.gettingBadWords=true;
recent2.download({ url: 'http://' + document.___location.hostname +
'/w/index.php?title=' + recent2.badwordsUrl + '&action=raw&ctype=text/css',
onSuccess: recent2.processBadWords, onFailure: function () { recent2.runOncesetTimeout(recent2.getBadWords, 15000); return true;}});
}
 
Riga 101 ⟶ 94:
recent2.getWatchlist=function() {
window.gettingWatchlist=true;
recent2.download({url: 'http://' + document.___location.hostname + '/wiki/Special:Watchlist/edit',
onSuccess: recent2.processWatchlist, onFailure: function () { recent2.runOncesetTimeout(getWatchlist, 15000); return true; }});
}
recent2.processWatchlist=function(req, bundle) {
Riga 113 ⟶ 106:
}
}
window.watchlist=watchlist;
}
 
Riga 121 ⟶ 114:
window.gettingSpelldict=true;
recent2.download({url: 'http://' + document.___location.hostname + '/w/index.php?title=' + recent2.spelldictUrl + '&action=raw&ctype=text/css',
onSuccess: recent2.processSpelldict, onFailure: function () { recent2.runOncesetTimeout(getSpelldict, 15000); return true; }});
}
recent2.processSpelldict=function(req, bundle) {
Riga 140 ⟶ 133:
 
 
 
recent2.runOnce=function(f, time) {
var i=recent2.runOnce.timers.length;
var ff = function () { clearInterval(recent2.runOnce.timers[i]); f() };
var timer=setInterval(ff, time);
recent2.runOnce.timers.push(timer);
}
recent2.runOnce.timers=[];
 
var feed='http://' + document.___location.hostname + '/w/index.php?title=Special:Recentchanges&feed=rss';
Riga 153 ⟶ 138:
window.newOutputDiv=function(klass, position, immortal) {
var h1=document.getElementsByTagName('h1')[0];
var ret=document.createElement('div');
if (klass) { ret.className=klass; }
if (!position) { position='bottom'; }
switch(position) {
case 'top':
h1.parentNode.insertBefore(ret, h1.nextSibling);
break;
Riga 180 ⟶ 165:
window.grabRecentChanges=function(feed) {
if (! window.badWords && recent2.filter_badwords ) {
if ( ! window.gettingBadWords ) { recent2.getBadWords(); }
return recent2.runOncesetTimeout(function(){grabRecentChanges(feed);}, 500);
}
if (! window.watchlist && recent2.filter_watchlist) {
if (! window.gettingWatchlist ) recent2.getWatchlist();
return recent2.runOncesetTimeout(function(){grabRecentChanges(feed);}, 500);
}
if (! window.spelldict && recent2.filter_spelling) {
if (! window.gettingSpelldict) recent2.getSpelldict();
return recent2.runOncesetTimeout(function(){grabRecentChanges(feed);}, 500);
}
var pos=recent2.outputPosition;
Riga 212 ⟶ 197:
 
window.feedFailed=function(x,bundle) {
try { bundle.status.innerHTML+=greyFont+'failed: '+x.statusText + '</font>'; }
catch (err) { bundle.status.innerHTML+=greyFont+'failed badly: '+err+'</font>'; }
return true;
Riga 232 ⟶ 217:
recent2.delayedLines={};
recent2.delay=0;
recent2.namespaces={'Media':1, "Special":1, "User":1, "User talk":1, "Wikipedia":1,
"Wikipedia talk":1, "Image":1, "Image talk":1, "MediaWiki":1,
"MediaWiki talk":1, "Template":1, "Template talk":1, "Help":1,
"Help talk":1, "Category":1, "Category talk":1, "Portal":1, "Portal talk":1};
window.processRecentChanges=function(req, bundle){
var initialId=processRecentChanges.id;
var doc=req.responseXML.documentElement;
Riga 248 ⟶ 233:
var editSummary=diffText.replace(RegExp('^<p>(.*?)</p>[\\s\\S]*'), '$1');
var editor=getFirstTagContent(items[i], 'creator') || getFirstTagContent(items[i], 'dc:creator');
if (recent2.ignore_my_edits && wgUserName==editor) { continue; }
 
var article=getFirstTagContent(items[i], 'link');
Riga 253 ⟶ 239:
delete recent2.delayedLines[article];
}
 
if (recent2.filter_anonsOnly && !recent2.ipUserRegex.test(editor)) { continue; }
 
var articleTitle=getFirstTagContent(items[i], 'title');
Riga 262 ⟶ 248:
}
if (! recent2.show_talkpages && articleTitle && /^Talk:|^[^:]*?[_ ]talk:/.test(articleTitle)) continue;
if (recent2.filter_watchlist && articleTitle &&
! window.watchlist[articleTitle.replace(/^Talk:/, '').replace(/[ _]talk:/, ':')]) continue;
if (recent2.filter_badwords) {
var badMatch=null;
if (window.vandals[editor] > 0) { badMatch=['', '', '[previously rolled back this editor]']; }
else { badMatch=badWords.test(diffText); }// .test() is meant to be faster than a full match
if (badMatch) {
if (badMatch===true) { badMatch=diffText.match(badWords); }
articleTitle=getFirstTagContent(items[i], 'title');
var badWord=badMatch[2] || badMatch[4];
if (articleTitle.toLowerCase().indexOf(badWord.toLowerCase())>-1) { continue; } // avoid "Oral sex matched Oral sex"
// highlighting
// highlighting
badMatch[0]=badMatch[0].split(badWord).join('<span style="background-color: #FF6">'+badWord+'</span>');
badMatch[0]=badMatch[0].split(badWord).join('<span style="background-color: #FF6">'+badWord+'</span>');
recent2.delayedLines[article]={timestamp: timestamp, article:article, count:recent2.count, articleTitle:articleTitle,
recent2.delayedLines[article]={timestamp: timestamp, article:article, count:recent2.count, articleTitle:articleTitle,
editor:editor, badWord:badWord, badDiffFragment:badMatch[0], diff:diffText,
summary:editSummary};
Riga 283 ⟶ 270:
splMatch = diffText.match(spellRe);
var misspelling = splMatch[1]; //.replace(/^\s*/, '');
var badWord = '<a href=\'javascript:recent2.correctSpelling("' + articleTitle.split("'").join("%27") +
'","'+misspelling.split("'").join("%27")+'")\'>'+ misspelling + '</a>';
diffText = diffText.replace(RegExp('('+misspelling+')', 'gi'), '<span style="background-color: #FF6">$1</span>');
Riga 292 ⟶ 279:
var article=getFirstTagContent(items[i], 'link');
var articleTitle=getFirstTagContent(items[i], 'title');
if (recent2.CustomFilter &&
! recent2.CustomFilter({timestamp:timestamp, article:article, articleTitle:articleTitle,
editor:editor, diff:diffText, summary:editSummary})) continue;
recent2.delayedLines[article]={timestamp: timestamp, article:article, count:recent2.count, articleTitle:articleTitle,
Riga 310 ⟶ 297:
}
bundle.output.innerHTML+=outputString;
recent2.runOncesetTimeout(function() {recent2.doPopups(bundle.output)}, 300);
processRecentChanges.lastDate=latest; // - 1; // overlap better than missing some out, i think; FIXME do this properly
var statusTail=greyFont+'done up to ' + formatTime(latest) + '</font>';
if (processRecentChanges.id > initialId) {
statusTail+=' <a href="javascript:showHideDetailRange(' + initialId + ',' + processRecentChanges.id + ')">alternartoggle detalhesthese details</a> |';
if (recent2.autoexpand) {
recent2.runOncesetTimeout( function() {
/* document.title=initialId+' '+processRecentChanges.id; */
showHideDetailRange(initialId, processRecentChanges.id); }, 250 );
}
}
statusTail += ' <a href="javascript:deleteEarlierOutputDivs(' + bundle.status.id + ')">limparremove listaearlier anterioroutput</a>';
statusTail+='<br>';
bundle.status.innerHTML+=statusTail;
Riga 332 ⟶ 319:
var id=processRecentChanges.id;
for (var a in recent2.delayedLines) {
if (recent2.delayedLines[a] && typeof recent2.delayedLines[a].count == typeof 1 &&
recent2.count - recent2.delayedLines[a].count >= recent2.delay) {
recent2.delayedLines[a].id=id++;
Riga 395 ⟶ 382:
for (var i=0; i<document.links.length && count < max; ++i) {
if(document.links[i].innerHTML==action + ' details' && document.links[i].href.indexOf('javascript:') == 0) {
++count;
eval(document.links[i].href.replace('javascript:', ''));
}
Riga 406 ⟶ 393:
recent2.togglePausedOutput=function() {
if (!recent2.pausedOutput) { recent2.pausedOutput = true; return true; }
else recent2.pausedOutput=false;
var outputBuffer='';
while (recent2.pendingLines.length) {
Riga 444 ⟶ 431:
//latest + ' ' + processRecentChanges.lastDate + ' ' +
'(' + linkmaker(lastDiffPage, 'last') + ')' +
' (' + linkmaker(bundle.article+'?action=history', 'hist') + ')' +
' ' + linkmaker(bundle.article, bundle.articleTitle) +
( bundle.badWord ? ' coincidiu commatched <b>' + bundle.badWord + '</b> . . ' : ' . . ') +
linkmaker(wikiBase + 'User:' + bundle.editor, bundle.editor) + ' (' +
linkmaker(wikiBase + 'User_talk:' + bundle.editor, 'disctalk') + ' | ' +
linkmaker(wikiBase + 'Discussione utenteUser_talk:' + bundle.editor + '?action=edit' +
'&autoedit=s#$#\\n{{Av-tessub' + 'tst:test1-n|' + bundle.articleTitle + '}}%20~~' + '~~#&autosummary=Aviso (mensagem automática: AVT)',
'}}%20~~' + '~~#&autosummary=Your%20recent%20edits',
'test') + ' | ' +
'warn') + ' | ' +
linkmaker(wikiBase + 'Discussione utente:' + bundle.editor + '?action=edit' +
'&autoedit=s#$#\\n{{avi' + 'so|' + bundle.articleTitle + '}}%20~~' + '~~#&autosummary=Aviso (mensagem automática: AVT)',
'av') + ' | ' +
linkmaker(wikiBase + 'Discussione utente:' + bundle.editor + '?action=edit' +
'&autoedit=s#$#\\n{{avis' + 'o1|' + bundle.articleTitle + '}}%20~~' + '~~#&autosummary=Aviso1 (mensagem automática: AVT)',
'av1') + ' | ' +
linkmaker(wikiBase + 'Discussione utente:' + bundle.editor + '?action=edit' +
'&autoedit=s#$#\\n{{av-im' + 'g|' + bundle.articleTitle + '}}%20~~' + '~~#&autosummary=Aviso imagem (mensagem automática: AVT)',
'img') + ' | ' +
linkmaker(wikiBase + 'Discussione utente:' + bundle.editor + '?action=edit' +
'&autoedit=s#$#\\n{{sub' + 'st:bv}}%20~~' + '~~#&autosummary=Bem-vindo (mensagem automática: AVT)',
'bv') + ' | ' +
linkmaker(wikiBase + 'Usuário Discussão:' + bundle.editor + '?action=edit' +
'&autoedit=s#$#\\n{{sub' + 'st:bem-vindo ip}}%20~~' + '~~#&autosummary=Bem-vindo IP (mensagem automática: AVT)',
'bvip') + ' | ' +
linkmaker(wikiBase + 'Special:Contributions/' + bundle.editor, 'contribs') + ' | ' +
linkmaker(wikiBase + 'Special:Blockip/' + bundle.editor, 'bloqblock') + ') . . ' +
( bundle.summary ? '<i>('+bundle.summary+')</i> . . ' : '') +
'<a href="javascript:showHideDetail(' + bundle.id + ')" id="showdiff_link_' + bundle.id + '">detalhesshow details</a>' +
' . . [<a href="javascript:tryRollback(' + bundle.id + ')" class="recent2_rollback">reverterrollback</a>]' +
'<p><div id="diff_div_' + bundle.id + '" style="display: none">' +
'</div></li>' +
Riga 491 ⟶ 464:
if (num > -1 && num < cor.length) { cor = cor[num]; }
else { cor = ans; }
} else {
cor = cor[0];
}
cor=cor.replace(/^ *| *$/g, '');
url += '&autosummary=SpellingcorrectieCorrecting%20spelling:%20' + wl + '->' + cor;
url += '&autoedit=';
c0=cor.charAt(0);
Riga 525 ⟶ 498:
recent2.getBundleVandal=function(id) {
var b=window.bundles[id];
if (!b) {
alert('No bundle! Please tell Lupin how to reproduce this error - it should not really happen.');
return null;
}
var vandal=b.editor;
Riga 547 ⟶ 520:
var match=rollRe.exec(x.responseText);
if (!match) {
alert('No rollback link found.' +
'\nMaybe you should try the non-admin rollback by checking the checkbox above?\n' +
'Alternatively, this may be a bug.');
Riga 559 ⟶ 532:
if (!summary) summary=lastSummary;
alert( 'Could not rollback - someone else has edited since the vandal.\n\nPage: '+ b.articleTitle +
'\nVandal: '+vandal+'\nLast editor: '+lastEditor+'\nEdit summary: '+summary);
return;
}
var rollbackUrl=match[1].split('&amp;').join('&');
// confirm('Rollback edits by '+vandal + ' to '+b.articleTitle+'?') &&
window.open(rollbackUrl, '_blank');
}
var onFailure = function(x,bundle) {
alert('HTTP failed when trying to get rollback link in url\n' + bundle.url +
'\n\nHTTP status text: ' + x.statusText);
return true;
}
Riga 591 ⟶ 564:
recent2.processHistoryQuery=function(x,downloadBundle, bundle) {
var json=x.responseText;
try {
eval('var o='+json);
var p=o['pages'];
var edits=recent2.anyChild(p)['revisions'];
}
catch ( someError ) { alert('JSON business failed.\n\n' + json.substring(0,100)
+ '\n\nCannot rollback.'); return; }
var i;
Riga 602 ⟶ 575:
if (edits[i]['user']!=bundle.editor) { break; }
}
if (i===0) {
alert( 'Could not rollback - someone else has edited since the vandal.\n\nPage: '+ bundle.articleTitle +
'\nVandal: '+bundle.editor+'\nLast editor: '+edits[0]['user']+'\nEdit summary: '+edits[0]['*']);
return;
}
if (i==edits.length) { alert(bundle.editor + ' seems to be the only editor to ' + bundle.articleTitle +
'.\n\nRollback aborted.'); return; }
var prevEditor=edits[i]['user'];
var prevRev=edits[i]['revid'];
var summary='WijzigingenReverted dooredits by [[Special:Contributions/' + escape(bundle.editor) + '|' +
escape(bundle.editor) + ']] hersteldto totlast deversion versie na de laatste wijziging doorby ' + escape(prevEditor) + ' m.b.v. [[Gebruiker:Erwin85/AVT|AVT]].';
summary=summary.split(' ').join('%20');
var url=bundle.article + '?action=edit&autosummary=' + summary + '&oldid=' + prevRev +
'&autoclick=wpSave&autominor=true';
window.open(url, '_blank');
Riga 629 ⟶ 602:
 
recent2.doPopups=function(div) {
if (typeof(mouseOverWikiLinkwindow.setupTooltips)!='undefined') &&{ setupTooltips(div); }
typeof(mouseOutWikiLink) !='undefined' &&
typeof(killPopup) !='undefined') {
var anchors=div.getElementsByTagName('A');
for (var i=0; i<anchors.length; ++i) {
var a=anchors[i];
if (a.href.indexOf('javascript')==0) continue;
a.onmouseover=mouseOverWikiLink;
a.onmouseout= mouseOutWikiLink;
a.onclick= killPopup;
}
}
}
 
Riga 658 ⟶ 620:
if ((force && state==true) || (!force && div.style.display=='none')) { div.style.display='inline'; lk.innerHTML='hide details'; }
else { div.style.display='none'; lk.innerHTML='show details'; }
 
}
 
Riga 665 ⟶ 627:
var e=parent.getElementsByTagName(tag);
if (e && (e=e[0]) ) {
var ret = e.firstChild.nodeValue || e.nodeValue;
if (typeof ret != typeof '') return '';
return ret;
}
}
 
recent2.newCheckbox=function(label, state, onclickaction, internalName) {
// checkbox
var ret=document.createElement('input');
ret.type='checkbox';
ret.checked = state;
ret.onclick = onclickfunction() { recent2.setBoxCookies(); this.setVariables(); };
ret.setVariables = action;
recent2.controls.appendChild(ret);
if (internalName) { recent2.controls[internalName]=ret; }
Riga 683 ⟶ 646:
l.innerHTML=label;
recent2.controls.appendChild(l);
recent2.checkboxes.push(ret);
 
return ret;
};
 
recent2.checkboxes=[];
 
recent2.setBoxCookies=function() {
var n=1;
var val=0;
for (var i=0; i<recent2.checkboxes.length; ++i) {
val += n * (recent2.checkboxes[i].checked ? 1 : 0);
n = n << 1;
}
document.cookie = 'recent2_checkboxes='+val+"; expires=Tue, 31-Dec-2030 23:59:59 GMT; path=/";
};
 
recent2.setCheckboxValuesFromCookie=function() {
var val=recent2.readCookie('recent2_checkboxes');
if (!val) { return; }
val=parseInt(val, 10);
for (var i=0; i<recent2.checkboxes.length; ++i) {
if ( recent2.checkboxes[i].checked != (val & 1) ) {
recent2.checkboxes[i].checked= (val & 1);
recent2.checkboxes[i].setVariables();
}
val = val >> 1;
}
};
 
recent2.readCookie=function(name) {
var nameEQ = name + "=";
var ca = document.cookie.split(';');
for(var i=0;i < ca.length;i++) {
var c = ca[i];
while (c.charAt(0)==' ') { c = c.substring(1,c.length); }
if (c.indexOf(nameEQ) === 0) { return c.substring(nameEQ.length,c.length); }
}
return null;
};
 
 
recent2.controlUI=function() {
recent2.controls=newOutputDiv('recent2.controls', 'top', true);
recent2.controls.newline = function(){ recent2.controls.appendChild(document.createElement('br')); };
recent2.newCheckbox('IgnorarIgnore páginastalk de discussãopages', !recent2.show_talkpages,
function() { recent2.show_talkpages=!this.checked; },
'talk');
recent2.controls.newline();
recent2.newCheckbox('IgnoraraIgnore páginasforapages dooutside domíniothe principalarticle namespace', false,
function() { recent2.hideNonArticles = this.checked; },
'hidenonarticles');
recent2.controls.newline();
recent2.newCheckbox('ExpandirAutomatically automaticamenteexpand onew novo conteúdocontent', recent2.autoexpand,
function() { recent2.autoexpand = this.checked; },
'autoexpand');
recent2.controls.newline();
recent2.newCheckbox('MostrarOnly apenasshow ediçõesedits nãounchanged modificadasafter apósfour 4 actualizaçõesupdates', false,
function() { recent2.delay = (this.checked) ? 4 : 0; },
'delayby4');
recent2.controls.newline();
recent2.newCheckbox('UsarUse reversãonon-admin (para não administradores)rollback', false,
function() { recent2.non_admin_rollback = this.checked; },
'nonadminrollback');
recent2.controls.newline();
recent2.newCheckbox('Ignore my edits', false,
function() { recent2.ignore_my_edits = this.checked; },
'ignoremyedits');
recent2.setCheckboxValuesFromCookie();
}
 
Riga 717 ⟶ 722:
loopRecentChanges.url=url;
grabRecentChanges(url);
recent2.runOncesetTimeout(function () {
if (recent2.paused) {++recent2.count; return; }
if (++recent2.count >= iterations && ! confirm('Continue monitoring recent changes?') ) return;
recent2.count %= iterations; loopRecentChanges(url, iterations);
}, 30000);
}
window.marvin=function() {
// this isn't really used (not accessible from the UI), so don't worry about it
window.sysops=RegExp("^(\\-\\- April|23skidoo|A Man In Black|ABCD|ALoan|Academic Challenger|Acetic Acid|Adam Bishop|Ahoerstemeier|Alabamaboy|Alai|AlainV|Alex S|Alex756|AlistairMcMillan|Alkivar|Allen3|AllyUnion|Alteripse|Ambi|Ams80|Andres|Andrevan|Andrew Yong|Andrewa|Andris|Android79|Angela|Angr|Antandrus|Anthere|AntonioMartin|Aranel|Arcadian|Aris Katsaris|Arminius|Arvindn|Arwel Parry|Asbestos|AstroNomer|Ausir|AxelBoldt|BanyanTree|BaronLarf|Bcorr|Bdesham|Bearcat|Beland|Benc|Bhadani|Biekko|BillyH|Bishonen|Bkonrad|Blankfaze|Bluemoose|Bmicomp|Bovlb|Bratsche|Brian Kendig|Brian0918|BrianSmithson|Briangotts|Brighterorange|Brion VIBBER|Brockert|BrokenSegue|Brookie|Bryan Derksen|Bumm13|Burgundavia|CJCurrie|COGDEN|CSTAR|CYD|Cacycle|Caltrop|CambridgeBayWeather|Camembert|Canderson7|Capitalistroadster|Carbonite|Carnildo|Catbar|CatherineMunro|Cburnett|Cdc|Cecropia|Cedar\\-Guardian|Celestianpower|CesarB|Cgs|Chadloder|Chancemill|Changlc|Charles Matthews|Chmod007|Chris 73|Chris Roy|ChrisO|Christopher Mahan|Chuck SMITH|Chuq|Cimon avaro|Clarkk|Clifford Adams|ClockworkSoul|Commander Keane|ContiE|Cool Hand Luke|Cprompt|Craigy144|Cryptic|CryptoDerk|Curps|Cutler|Cyan|Cyberjunkie|CyborgTosser|Cyp|Cyrius|DESiegel|DF08|DJ Clayworth|Dale Arnett|Dan100|DanKeshet|Daniel Quinlan|DanielCD|Danny|Dante Alighieri|Darwinek|Dave souza|David Gerard|David Newton|David\\.Monniaux|DavidLevinson|DavidWBrooks|Davidcannon|Davodd|Dbachmann|Dbenbenn|Dbiv|Dcoetzee|Deb|Decumanus|Delirium|Denelson83|Denni|Derek Ross|Dgrant|Diberri|Dieter Simon|Dino|Dmcdevit|Dmn|Doc glasgow|Docu|Dori|Dpbsmith|DrBob|DragonflySixtyseven|Dragons flight|Drini|DropDeadGorgias|Duk|Duncharris|Durin|Dvyost|Dwheeler|Dysprosia|Earl Andrew|Ed Poor|Ed g2s|Edcolins|Edward|Efghij|Egil|El C|Elf|Ellsworth|Eloquence|Enchanter|Essjay|Eugene van der Pijll|Evercat|Everyking|Evil Monkey|Evil saltine|Evilphoenix|Exploding Boy|Ezhiki|FCYTravis|Fabiform|Fantasy|Fastfission|Fawcett5|Feco|FeloniousMonk|Fennec|Ferkelparade|Fernando Rizo|Ffirehorse|Filiocht|Finlay McWalter|Fire Star|FireFox|Flcelloguy|Flockmeal|Francs2000|Frazzydee|Fred Bauder|Fredrik|Freestylefrappe|FreplySpang|Friday|Func|Furrykef|Fuzheado|Fvw|G\\-Man|Gabbe|Gadfium|Gamaliel|Garzo|Gaz|Gdr|GeneralPatton|Geni|Gentgeen|Geogre|Gerald Farinas|Goatasaur|Golbez|Graft|GregAsche|GregRobson|Grenavitar|Grm wnr|Ground Zero|Grue|Grunt|Grutness|Gtrmp|Guettarda|Gwalla|Gyrofrog|Hadal|Hajor|Hall Monitor|HappyCamper|Hashar|Hawstom|Hcheney|Hedley|Hemanshu|Henrygb|Hephaestos|Hermione1980|Heron|Homeontherange|Humblefool|Hyacinth|Icairns|IceKarma|Ihcoyc|Ike9898|Ilyanep|Improv|Imran|Infrogmation|Ingoolemo|Inter|Isomorphic|Ixfd64|J\\.J\\.|JCarriker|JHK|JIP|JRM|JYolkowski|Jake Nelson|Jallan|JamesTeterenko|Jamesday|Jasonr|Jaxl|Jay|Jayjg|Jcw69|Jdavidb|Jdforrester|JeLuF|Jeffrey O\\. Gustafson|Jengod|JeremyA|Jeronimo|Jerzy|JesseW|Jfdwolff|Jiang|Jimbo Wales|Jimfbleak|Jimregan|Jinian|Jitse Niesen|Jmabel|Jnc|Jni|JoJan|John Kenney|JohnOwens|Johnleemk|Johntex|JonMoore|Jondel|Joolz|Josh Grosse|Jossifresco|Journalist|Joy|Joy Stovall|Jpgordon|Jrdioko|Jredmond|Jtdirl|Jtkiefer|Justinc|Jwrosenzweig|K1Bond007|KF|Kaihsu|Kaldari|Karada|Karen Johnson|Karmafist|Katefan0|Kbdank71|Kelly Martin|Khaosworks|Khendon|Khym Chanur|Kingturtle|Kirill Lokshin|Kmccoy|Knowledge Seeker|Kosebamse|Ktsquare|Kwamikagami|Kzollman|LC|Lachatdelarue|Lacrimosus|Lectonar|Lee Daniel Crocker|Lexor|Linuxbeak|LittleDan|Llywrch|Lommer|Longhair|Lord Emsworth|LordAmeth|LouI|Lowellian|Lucky 6\\.9|Ludraman|Lupin|Lupo|MC MasterChef|MacGyverMagic|Mackensen|Mackeriv|Madchester|Magnus Manske|Mailer diablo|Mairi|Malcolm Farmer|Manning Bartlett|Marianocecowski|Marine 69\\-71|Mark|Mark Christensen|Mark Dingemanse|Mark Richards|MarkSweep|Markalexander100|Marshman|Marudubshinki|Marumari|Master Thief Garrett|Matt Crypto|Maury Markowitz|Maveric149|Maximus Rex|Mbecker|Meelar|Mel Etitis|Menchi|Merovingian|Merphant|Mic|Michael Hardy|Michael Snow|Mike Halterman|Mikkalai|Mindspillage|Minesweeper|Mintguy|Mirv|Mirwin|Mkmcconn|Mkweise|Modemac|Moink|Moncrief|Montrealais|Moriori|Morven|Morwen|Mulad|Mustafaa|MyRedDice|MykReeve|Mysekurity|Mzajac|Nabla|Nandesuka|Nanobug|Necrothesp|Neutrality|Ngb|Nichalp|NicholasTurnbull|Nickptar|Nickshanks|Niteowlneils|Nohat|Noldoaran|Notheruser|Nufy8|Nunh\\-huh|Nv8200p|Oberiko|OldakQuill|Oleg Alexandrov|Oliver Pereira|Olivier|Omegatron|Optim|Ortolan88|Oven Fresh|OwenX|PFHLai|PMA|PRueda29|PZFUN|Pakaran|Pamri|Patrick|Paul A|Paul August|Pcb21|PedanticallySpeaking|Petaholmes|Peter Winnberg|Pfortuny|Pharos|Phil Bordelon|Phil Boswell|Phils|Philwelch|Phroziac|Physchim62|PierreAbbat|Piotrus|Pjacobi|Pollinator|Poor Yorick|Postdlf|Pratyeka|Premeditated Chaos|Proteus|Psy guy|Qaz|Quadell|Quercusrobur|R\\. fiend|R3m0t|RHaworth|RJFJR|RN|Radiant\\!|RadicalBender|Ragib|Ral315|Ram\\-Man|Rama|Ramallite|Ran|Raul654|Rbrwr|Rd232|Rdsmith4|RedWolf|RedWordSmith|Redux|Redwolf24|Refdoc|Reflex Reaction|Rfl|Rhobite|Rholton|Rhymeless|Rich Farmbrough|Rick Block|RickK|Rje|Rlandmann|Rlquall|Rmhermen|Roadrunner|RobLa|Robchurch|Robert Merkel|RobertG|Robin Patterson|RobyWayne|Roozbeh|RoseParks|Rossami|RoyBoy|RoySmith|Rx StrangeLove|Ryan Delaney|SD6\\-Agent|SWAdair|Salsa Shark|Sam Hocevar|Sam Korn|Sango123|Sannse|Sarge Baldy|Sasquatch|Schissel|Schneelocke|Scimitar|Scipius|Scott Burley|ScottDavis|Seabhcan|Sebastiankessel|Secretlondon|Seglea|Sesel|Seth Ilys|Sfoskett|Shanes|Shauri|Sheldon Rampton|Shimgray|SimonP|Siroxo|Sj|Sjakkalle|Sjc|Slambo|SlimVirgin|Slowking Man|Slrubenstein|Smith03|Sn0wflake|Snowspinner|Snoyes|Solipsist|Someone else|Sortior|Spangineer|Spencer195|Splash|Ssd|Stan Shebs|Starblind|Stevenj|Stevertigo|Stewartadcock|Stormie|Sugarfish|Sundar|Sverdrup|TPK|TUF\\-KAT|Ta bu shi da yu|Talrias|Tannin|Tarquin|Taw|Taxman|TenOfAllTrades|Texture|Thames|The Anome|The Cunctator|The Epopt|The Singing Badger|The wub|TheCoffee|TheoClarke|Theresa knott|Thryduulf|Thue|Thunderbrand|Tillwe|Tim Ivorson|Tim Starling|Timc|Timrollpickering|Timshell|Timwi|Titoxd|Tkinias|Toby Bartels|Tom\\-|Tomf688|Tompagenet|Tony Sidaway|Topbanana|Tregoweth|Trevor macinnis|Triddle|Trilobite|Tristanb|Ugen64|Ulayiti|Uncle G|UninvitedCompany|Urhixidur|Utcursch|UtherSRG|Vague Rant|VampWillow|Vancouverguy|Vaoverland|Viajero|Vicki Rosenzweig|Violetriga|Visorstuff|Voice of All\\(MTG\\)|Vsmith|Waltpohl|Wapcaplet|Warofdreams|Wayward|Wernher|Wesley|WhisperToMe|Who|Wiglaf|Wikiacc|Wikibofh|Wile E\\. Heresiarch|Wilfried Derksen|Willmcw|Woggly|WojPob|Woohookitty|Worldtraveller|Ww|Wwoods|XJamRastafire|Xezbeth|Y0u|Yacht|Zanimum|Zero0000|Zippy|Zocky|Zoe|Zoicon5|Zoney|Zscout370|Zzyzx11)$");
recent2.show_talkpages=true;
recent2.controlUI();
loopRecentChanges(feed, 200);
}
 
Riga 760 ⟶ 765:
window.addMarvin=function() {
var prefix = 'http://' + document.___location.hostname + '/wiki/';
recent2.addToolboxLink(prefix + recent2.filterPage, 'FiltroFilter derecent mudanças recenteschanges', 'toolbox_filter_changes');
recent2.addToolboxLink(prefix + recent2.allRecentPage, 'TodasAll asrecent mudanças recenteschanges', 'toolbox_all_changes');
recent2.addToolboxLink(prefix + recent2.recentIPPage, 'RecentesRecent ediçõesIP de IPsedits', 'toolbox_IP_edits');
recent2.addToolboxLink(prefix + recent2.monitorWatchlistPage, 'MonitorizarMonitor vigiadosmy watchlist', 'toolbox_watchlist_edits');
recent2.addToolboxLink(prefix + recent2.spelldictPage, 'MonitorizarLive ortografiaspellcheck', 'toolbox_spelling');
//document.getElementById('toolbox_filter_changes').onclick=marvin;
}
 
recent2.testPage = function (str) {
return RegExp(str.split(/[_ ]/).join('[_ ]'), 'i').test(document.___location.href);
};
Riga 776 ⟶ 781:
if (recent2.testPage(recent2.filterPage)) {
recent2.filter_badwords=true;
} else if (recent2.runOncetestPage(marvin, 1000recent2.allRecentPage);) {
}
else if (recent2.testPage(recent2.allRecentPage)) {
recent2.filter_badwords=false;
} else if (recent2.runOncetestPage(marvin, 1000recent2.recentIPPage);) {
}
else if (recent2.testPage(recent2.recentIPPage)) {
recent2.filter_anonsOnly=true;
} else if (recent2.runOncetestPage(marvin, 1000recent2.monitorWatchlistPage);) {
}
else if (recent2.testPage(recent2.monitorWatchlistPage)) {
recent2.filter_watchlist=true;
} else if (recent2.runOncetestPage(marvin, 1000recent2.spelldictPage);) {
}
else if (recent2.testPage(recent2.spelldictPage)) {
recent2.filter_spelling=true;
} else {
recent2.runOnce(marvin, 1000);
return;
}
setTimeout(marvin, 1000);
}
 
// onload
addOnloadHook(maybeStart);
addOnloadHook(addMarvin);
 
//// testing code
//recent2.filter_badwords=true;
//recent2.filter_spelling=true;
//recent2.runOncesetTimeout(marvin,1000);