MediaWiki:Gadget-HexConverter.js: Difference between revisions
From OpenGK
(Created page with "(function(){ console.log('js hex conv loaded'); var setup = function ( $content ) { console.log('setup called'); var fields = Array.from( $content.find( '.hex-converter-field' ) ); console.log(fields); } })();") |
No edit summary |
||
Line 1: | Line 1: | ||
/* _____________________________________________________________________________ | |||
* | | | |||
* | === WARNING: GLOBAL GADGET FILE === | | |||
* | Changes to this page affect many users. | | |||
* | Please discuss changes on the talk page or on [[WT:Gadget]] before editing. | | |||
* |_____________________________________________________________________________| | |||
* | |||
* Imported from version XXXX as of DATE from [[SCRIPT_SOURCE]] | |||
* SHORT_DESCRIPTION, see [[SCRIPT_HOME_PAGE]] | |||
*/ | |||
(function(){ | (function(){ | ||
console.log('js hex conv loaded'); | console.log('js hex conv loaded'); | ||
Line 6: | Line 16: | ||
console.log(fields); | console.log(fields); | ||
} | } | ||
mw.hook( 'wikipage.content' ).add( setup ); | |||
})(); | })(); |
Revision as of 01:29, 28 December 2024
/* _____________________________________________________________________________
* | |
* | === WARNING: GLOBAL GADGET FILE === |
* | Changes to this page affect many users. |
* | Please discuss changes on the talk page or on [[WT:Gadget]] before editing. |
* |_____________________________________________________________________________|
*
* Imported from version XXXX as of DATE from [[SCRIPT_SOURCE]]
* SHORT_DESCRIPTION, see [[SCRIPT_HOME_PAGE]]
*/
(function(){
console.log('js hex conv loaded');
var setup = function ( $content ) {
console.log('setup called');
var fields = Array.from( $content.find( '.hex-converter-field' ) );
console.log(fields);
}
mw.hook( 'wikipage.content' ).add( setup );
})();