User talk:Lupin/popups.js

Page contents not supported in other languages.
From Wikipedia, the free encyclopedia

Fix link to CSS[edit]

Hi!

Could someone point the link directly to MediaWiki:Gadget-navpop.css instead of User:Lupin/navpopdev.css (which just import MediaWiki:Gadget-navpop.css anywway)? This page is used by external users to enable pupups, according to its documentation. Helder 22:09, 30 September 2011 (UTC)[reply]

Already done after your first request. :) Amalthea 07:35, 2 October 2011 (UTC)[reply]

HTTPS[edit]

Please change the first two lines to:

var popScript     = '//en.wikipedia.org/w/index.php?action=raw&ctype=text/javascript&title=MediaWiki:Gadget-popups.js';
var popStyleSheet = '//en.wikipedia.org/w/index.php?action=raw&ctype=text/css&title=MediaWiki:Gadget-navpop.css';

i.e. use protocol-relative URLs. Thanks. Liangent (talk) 12:24, 2 October 2011 (UTC)[reply]

I have the exactly same request ;)
Please have a look at my request at User talk:Lupin/navpopdev.css, too.
Thanks in advance! — Arkanosis 14:46, 2 October 2011 (UTC)[reply]
 Done — Martin (MSGJ · talk) 16:05, 2 October 2011 (UTC)[reply]
Thanks a lot! — Arkanosis 16:57, 2 October 2011 (UTC)[reply]

UTF-8[edit]

Dear Lupin! I very much like your popups.js. It has a bug, though (at least it seems so on Nynorsk Wikipedia. Links containing letters A-Z works fine, but letters outside that rank (of which there are 3 in Norwegian, æøå), come up with the Latin 1 values of the two UTF-8 parts of each letter outside the ascii repertoire. The whole Wikipedia is UTF-8, it is thus sad that your fine tool is not. All the best, Trondtr (talk) 16:35, 12 November 2011 (UTC).[reply]

Hi. The popups still call people "autoreviewer" when the userright is now called "autopatrolled". Could someone please fix this? Thanks. It Is Me Here t / c 17:34, 7 January 2012 (UTC)[reply]

Deprecated[edit]

Please append the following to the script in order to make sure that people are encouraged to stop using it, and using the Gadget instead.

if ( typeof mw !== 'undefined' ) {
mw.loader.using('jquery.jStorage', function() {
	var k = 'User:Lupin/popups.js',
		t = 'Information: You are importing User:Lupin/popups.js' +
			' into your common.js or <skin>.js!\n' +
			'This script is unmaintained. Please remove this inclusion and enable the Navigation popups Gadget in the preferences of your account instead.',
		x = $.jStorage.get( k );

	if ( !x ) {
		$.jStorage.set( k, 1 );
		alert( t );
	} else {
		x++;
		$.jStorage.set( k, x );
		if ( x % 25 === 0 ) {
			mw.notify( t );
		}
	}
});
}

TheDJ (talkcontribs) 10:17, 8 August 2015 (UTC)[reply]

DoneMr. Stradivarius ♪ talk ♪ 17:28, 9 August 2015 (UTC)[reply]

TheDJ, can we change the message to something better, for example: You are using an unmaintained version of Navigation Popups, please see the instructions at en.wikipedia.org/wiki/Wikipedia:Tools/Navigation_popups#Installation
Some wikis are using User:Lupin/popups.js as a gadget, so I'm sure your message is very confusing to their users. Examples: [1], [2].
Also, some people may be using it in their global.js or in their common.js on wikis that don't have NavPopups as a gadget and they may also be very confused now.
--V111P (talk) 18:53, 30 August 2015 (UTC)[reply]

I advised the admins on those two wikis to install the new version. I can't check all wikis however. And some just copied the source code to their wikis, but what can you do. --V111P (talk) 19:15, 2 September 2015 (UTC)[reply]