Brickipedia
Brickipedia
avatar Log in

User talk:NovaHawk

From Brickipedia, the LEGO Wiki
(Redirected from User:NovaFlare)
← User:NovaHawk

This is NovaHawk's talk page, where you can send messages and comments to NovaHawk..

Re:Upload form[edit]

You can write your personal JS for Special:Upload in User:NovaHawk/common.js. You can check if the page you're accessing is Special:Upload by seeing if the value of wgPageName is equal to Special:Upload, like so:

if ( mw.config.get( 'wgPageName' ) === 'Special:Upload' ) {
	// do some cool stuff
}

If you want to learn more about some of the configuration variables besides wgPageName, check out mw:Manual:Interface/JavaScript. Hope this helps! Also, somewhat relatedly, if you want a page for specifically customizing the file description on a page in the File namespace, you can use MediaWiki:Filepage.css. (There's no JS alternative specifically for file descriptions, meaning MediaWiki:Filepage.js won't work, unless if you decide to load it through ResourceLoader inside MediaWiki:Common.js or your own personal Common.js) SamanthaNguyen (talk) 13:56, 15 April 2017 (UTC)

No problem! Also I'm not sure if you noticed, but I accidentally wrote the above link as [[mw:Manual:Intefrface/JavaScript]], although it should link to mw:Manual:Interface/JavaScript instead. This is fixed now. :P SamanthaNguyen (talk) 04:54, 16 April 2017 (UTC)

Socks[edit]

I just noticed that the sock accounts [Reynoldsj8448‎; Reynoldsj7785‎ and Reynoldsj3599‎] were all just created. Just thought I should inform you of this.-Albus Potter (talk) 19:13, 12 June 2017 (UTC)

They were created, but did they do anything? Have we put something in place to stop them from editing? Berrybrick (talk) 20:25, 12 June 2017 (UTC)
Thanks for the heads up, doesn't look like there's been any activity from any of these accounts so no real need to do anything at the moment as far as I can see NovaHawk 23:21, 12 June 2017 (UTC)

Re: DeepSea[edit]

That was the temporary CSS I slapped before I figured out. :P I accidentally added an extraneous space inside a selector, which changed div#content, to div #content (which, of course, have completely different meanings). That's why the content area is b0rked. Sorry! I submitted a patch and then we're going to git pull the changes very soon. SamanthaNguyen (talk) ShoutWiki Staff 01:53, 16 June 2017 (UTC)

All fixed! So sorry about that. SamanthaNguyen (talk) ShoutWiki Staff 02:15, 16 June 2017 (UTC)

Re: Purge[edit]

Hey again! The original purging functionality isn't specific to SW. It's a thing in MW 1.28, and there's a ticket for having it reverted back to how it was originally in phab:T143531 (this action actually has quite history, see phab:T136375, phab:T88044, phab:T135170, and phab:T56902 for example). Based on the conversations there, it probably won't be reverted, but you can add some personal JS written by Saftzie so you can skip the confirmation.

/**
 * For action=purge to index.php
 *   change it to POST api.php
 *   then reload the page
 * Restores pre-1.28 behavior to MW 1.28+
 * Based on meta:User:Glaisher/autoPurge.js, 21 Aug 2016
 */
if (( mw.config.get( 'wgAction' ) === 'purge' ) &&
	( $.inArray( 'user', mw.config.get( 'wgUserGroups' )) + 1 )) {
	$.post( mw.config.get( 'wgScriptPath' ) + '/api.php', {
		format: 'none',
		action: 'purge',
		titles: mw.config.get( 'wgPageName' ).replace( /_/g, ' ' )
	}, function () {
		// remove action=purge, but keep the rest
		location.replace(
			location.pathname +
			location.search
				.replace( /(?:\?|&)action=purge$/i, '' )
				.replace( /(\?|&)action=purge&/i, '$1' ) +
			location.hash
		);
	} );
}

SamanthaNguyen (talk) ShoutWiki Staff 03:56, 16 June 2017 (UTC)