Difference between revisions 240435 and 257358 on ptwikibooks/** * Add some extra buttons to enhanced edit toolbar * @author: [[User:Helder.wiki]] * @tracking: [[Special:GlobalUsage/User:Helder.wiki/Tools/Botões extras.js]] ([[File:User:Helder.wiki/Tools/Botões extras.js]]) */ /*jslint browser: true, white: true, regexp: true*/ /*global jQuery, mediaWiki */ ( function ( $, mw /* , undefined */ ) { 'use strict'; function customizeToolbar() { var $edit = $( '#wpTextbox1' ); if ( /^Helder\.wiki(\.bot)?$/.test( mw.config.get( 'wgUserName' ) ) ) { $('.tab-advanced').find('a').text('Mais!'); (contracted; show full) mw.loader.using( 'ext.wikiEditor.toolbar', function () { $(customizeToolbar); } ); } } ); } }( jQuery, mediaWiki ) ); All content in the above text box is licensed under the Creative Commons Attribution-ShareAlike license Version 4 and was originally sourced from https://pt.wikibooks.org/w/index.php?diff=prev&oldid=257358.
![]() ![]() This site is not affiliated with or endorsed in any way by the Wikimedia Foundation or any of its affiliates. In fact, we fucking despise them.
|