MediaWiki:Gadget-CatWatch.js: differenze tra le versioni
Contenuto cancellato Contenuto aggiunto
Nessun oggetto della modifica |
m Bot: Security fix: protocol-relative URLs per https://meta.wikimedia.org/?oldid=3197161 (questions?). |
||
Riga 87:
a[i].nextSibling.nextSibling.insertBefore(temp,temp2);
temp.innerHTML='<span style="font-weight:bold;">'+"(diff) (<a href='
"&action=history'>cron</a>) . . <a "+
"href='
encodeURI(c)+
"'>Categoria:"+c+"</a>; "+times[cicla].substr(11,2)+":"+times[cicla].substr(14,2)+
" . . (+ <a "+
"href='
encodeURI(pages[cicla])+"'>"+pages[cicla]+"</a> "+
"(<a href='
"&diff=last'>last</a>))</span>";
}
Riga 106:
//An example of a query to check a category would be
//
if(mw.config.get('wgPageName')=="Speciale:OsservatiSpeciali")
jQuery(document).ready(function($){
//DHTMLloadscript( '
// +'/WatchedCategories.js&action=raw&ctype=text/javascript');
$.ajax({
url: "
data: ({title: "Utente:"+mw.config.get('wgUserName')+"/CategorieOsservate.js", action : 'raw', ctype : 'text/javascript'}),
success: function(data){
Riga 119:
{
if(confirm("Ancora non hai una lista di categorie da controllare. Vuoi crearne una?"))
location.href='
'/CategorieOsservate.js&action=edit&preload=MediaWiki:Gadget-CatWatch.js/Template';
}
Riga 126:
$.each(CategorieOsservate, function(i, cat){
$.ajax({
url: "
data: ({action : "query", list : 'categorymembers', cmtitle : 'Category:'+cat, cmlimit : '100', cmprop : "title|timestamp", cmsort : "timestamp", cmdir : "desc", format : "xml"}),
dataType: "text",
|