Diferencia entre revisiones de «Usuario:JimTittsler/vector.js»
De WikiEducator
m (remove obsolete stream.js) |
(copy updated User:JimTittsler/vector.js from en.WE after MW 1.23 update) |
||
Línea 1: | Línea 1: | ||
importScript('User:JimTittsler/googlesearch.js'); | importScript('User:JimTittsler/googlesearch.js'); | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
$(function () { | $(function () { | ||
Línea 13: | Línea 6: | ||
var st = $('#pt-mytalk').attr('style'); | var st = $('#pt-mytalk').attr('style'); | ||
st = st ? ' style="' + st + '"': ''; | st = st ? ' style="' + st + '"': ''; | ||
− | |||
− | |||
− | |||
− | |||
// gardening tool | // gardening tool | ||
if ($.inArray(wgPageName, ['Special:NewPages', 'Special:RecentChanges']) > -1) { | if ($.inArray(wgPageName, ['Special:NewPages', 'Special:RecentChanges']) > -1) { | ||
Línea 26: | Línea 15: | ||
$('#p-coll-create_a_book li a[href*="add_article"]').parent() | $('#p-coll-create_a_book li a[href*="add_article"]').parent() | ||
.after('<li><a id="t-bookmaker" title="Add the current page and its subpages" rel="nofollow" href="#">Add page & subpages</a></li>'); | .after('<li><a id="t-bookmaker" title="Add the current page and its subpages" rel="nofollow" href="#">Add page & subpages</a></li>'); | ||
− | |||
− | |||
− | |||
− | |||
}); | }); |
Revisión de 21:32 2 sep 2014
importScript('User:JimTittsler/googlesearch.js'); $(function () { $('#n-recentchanges').find('a:first').attr('href', '/index.php?title=Special:RecentChanges&hidebots=0'); $('#n-recentchanges').after('<li><a href="/Special:NewPages?namespace=all" title="The list of newly created pages">New pages</a></li>'); var st = $('#pt-mytalk').attr('style'); st = st ? ' style="' + st + '"': ''; // gardening tool if ($.inArray(wgPageName, ['Special:NewPages', 'Special:RecentChanges']) > -1) { $.getScript('/extensions/WE/spam.js'); } if (wgAction === 'history') { $.getScript('/extensions/WE/deleterevs.js'); } $('#p-coll-create_a_book li a[href*="add_article"]').parent() .after('<li><a id="t-bookmaker" title="Add the current page and its subpages" rel="nofollow" href="#">Add page & subpages</a></li>'); });