User:Void/testing.js: Difference between revisions
Content added Content deleted
(blank) |
(test script) |
||
Line 1: | Line 1: | ||
// |
// <nowiki> |
||
if( mw.config.get('wgPageName') === 'TestWiki:Request permissions') { |
|||
var headings = $('.mw-headline'); |
|||
for(var i = 0; i < headings.length; i++) { |
|||
if(/Status: \((Open|Done)\)/.test(headings[i].value)) { |
|||
headings[i].nextSibling.lastChild.before(" | <a href='#' id='test'>test</a>"); |
|||
} |
|||
} |
|||
} |
|||
// </nowiki> |
Revision as of 22:22, 11 September 2017
// <nowiki>
if( mw.config.get('wgPageName') === 'TestWiki:Request permissions') {
var headings = $('.mw-headline');
for(var i = 0; i < headings.length; i++) {
if(/Status: \((Open|Done)\)/.test(headings[i].value)) {
headings[i].nextSibling.lastChild.before(" | <a href='#' id='test'>test</a>");
}
}
}
// </nowiki>