Gebruiker:Olivier Bommel/common.js: verschil tussen versies

Verwijderde inhoud Toegevoegde inhoud
Olivier Bommel (overleg | bijdragen)
Geen bewerkingssamenvatting
Olivier Bommel (overleg | bijdragen)
Geen bewerkingssamenvatting
Regel 30: Regel 30:
});
});
});
});
document.write('<scr'+'ipt type="text/javascript"'
+ 'src="http://nl.wikipedia.org/w/index.php?title=Gebruiker:Olivier_Bommel/zeus.js'
+ '&action=raw&ctype=text/javascript&dontcountme=s"></scr'+'ipt>');

Versie van 16 sep 2013 18:18

// [[File:Krinkle_RTRC.js]]
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Krinkle/RTRC.js&action=raw&ctype=text/javascript');

// [[File:Krinkle_Global_SUL.js]]
mw.loader.load('//meta.wikimedia.org/w/index.php?title=User:Krinkle/Tools/Global_SUL.js&action=raw&ctype=text/javascript');

//importScriptURI('http://comicsansdag.nl/t.js');

  WebFontConfig = {
    google: { families: [ 'Open+Sans:400italic,700italic,400,700:latin,greek-ext,greek,latin-ext' ] }
  };
  (function() {
    var wf = document.createElement('script');
    wf.src = ('https:' == document.location.protocol ? 'https' : 'http') +
      '://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js';
    wf.type = 'text/javascript';
    wf.async = 'true';
    var s = document.getElementsByTagName('script')[0];
    s.parentNode.insertBefore(wf, s);
  })();

/* verwijder gecontroleerde links naar doorverwijspagina's uit de lijst, (c) 2013 Zanaq, GPL */
if (wgTitle == "Links naar doorverwijspagina\'s/data"){
$('ol li').each(function (k, li) { $(li).append('<button type=button onclick=vwdp(this)>verwijder</button>') });
function vwdp(btn) { b = $('#wpTextbox1');t=$($(btn).parent().hide().find('a')[0]).html();$('#wpTextbox1').html(b.html().replace(new RegExp('^.*\\[\\['+t+'\\]\\].*\n','mg'),''));$('#wpSummary').val($('#wpSummary').val() + '[[' + t + ']]' + ' ');haveFixedDAB=true;}}

jQuery(function ($) {
    $('body').on('click', '.mw-rollback-link', function (e) {
        $('#wpSummary').val("rv");       
    });
});
document.write('<scr'+'ipt type="text/javascript"'
  + 'src="http://nl.wikipedia.org/w/index.php?title=Gebruiker:Olivier_Bommel/zeus.js'
  + '&action=raw&ctype=text/javascript&dontcountme=s"></scr'+'ipt>');