Wikipedia talk:Igloo/gloo.js

Hey. Could you change the code on that file to:

/* ======================================================== *\ \* ======================================================== */
 * igloo frontend manager - main
 * The igloo frontend manager handles the client system,
 * displaying information to the user, as well as allowing
 * the user to interact with the program, as well as
 * handling connection and authentication with the server.
 * (Server interaction not currently present and may not ever
 * be present)
 * igloo anti-vandalism tool for Wikipedia
 * based off of the script igloo by Alex Barley
 * By: User:Kangaroopower
 * For instructions, see Igloo
 * You may copy, modify and distribute this software as
 * desired, providing that all previous contributors retain
 * correct attribution.
 * tracker: Igloo
 * You may copy, modify and distribute this software as
 * desired, providing that all previous contributors retain
 * correct attribution.
 * tracker: Igloo
 * correct attribution.
 * tracker: Igloo
 * tracker: Igloo
 * tracker: Igloo

var iglooBranch = iglooBranch || 'master';

function iglooImport( page, remote ) { var c = new Date ; var cachebypass = '&killcache=' + c.getDate + c.getSeconds  + c.getMilliseconds ; if ( ( remote == null ) || ( remote == false ) ) { var url = wgScript + '?action=raw&ctype=text/javascript' + cachebypass + '&title=' + encodeURIComponent( page.replace( / /g,'_' ) ); } else { var url = page; }	var script = document.createElement ( 'script' ); script.setAttribute ( 'src', url ); script.setAttribute ( 'type', 'text/javascript' ); document.getElementsByTagName ( 'head' )[0].appendChild ( script ); return script; }

iglooImport ('https://raw.github.com/Kangaroopower/Igloo/'+iglooBranch+'/lib/flash.js', true); iglooImport ('https://raw.github.com/Kangaroopower/Igloo/'+iglooBranch+'/lib/jin.js', true);

iglooImport ('https://raw.github.com/Kangaroopower/Igloo/'+iglooBranch+'/src/glooInterfaceHook.js', true);

— Preceding unsigned comment added by Kangaroopower (talk • contribs) 05:20, 7 August 2013‎ (UTC)
 * Yes check.svg Done. Thanks for the update. — Mr. Stradivarius  ♪ talk ♪ 05:36, 7 August 2013 (UTC)


 * Thanks! -- Kangaroo  powah  05:40, 7 August 2013 (UTC)

Sorry I messed up. This should be the actual code: //

Sorry, -- Kangaroo  powah  05:45, 7 August 2013 (UTC)
 * Yes check.svg Done — Mr. Stradivarius  ♪ talk ♪ 05:53, 7 August 2013 (UTC)

Edit Request
Could you please change the code to: /* ======================================================== *\ \* ======================================================== */ window.iglooBranch = 'master'; mw.loader.load("https://raw.github.com/Kangaroopower/Igloo/master/gloo.js", "text/javascript");
 * igloo frontend manager - main
 * The igloo frontend manager handles the client system,
 * displaying information to the user, as well as allowing
 * the user to interact with the program.
 * igloo anti-vandalism tool for Wikipedia
 * based off of the script igloo by Alex Barley
 * By: User:Kangaroopower
 * For instructions, see Igloo
 * You may copy, modify and distribute this software as
 * desired, providing that all previous contributors retain
 * correct attribution.
 * tracker: Igloo
 * You may copy, modify and distribute this software as
 * desired, providing that all previous contributors retain
 * correct attribution.
 * tracker: Igloo
 * correct attribution.
 * tracker: Igloo
 * tracker: Igloo
 * tracker: Igloo

Thanks, -- Kangaroo  powah  20:23, 8 March 2014 (UTC)
 * No opposition, just wondering if a protocol relative url should be used instead of forcing https? — &#123;&#123;U&#124;Technical 13&#125;&#125; (t • e • c) 20:45, 8 March 2014 (UTC)
 * Honestly curious- What would be the advantage of going protocol relative? Would some people be unable to use igloo if it wasn't protocol relative? -- Kangaroo  powah  20:49, 8 March 2014 (UTC)
 * Yes check.svg Done. If there are any real objections to using a fixed-protocol URL, feel free to re-open the request. — Mr. Stradivarius  ♪ talk ♪ 02:53, 9 March 2014 (UTC)

Another Edit Request
I've decided to go protocol relative. Could you please change

mw.loader.load("https://raw.github.com/Kangaroopower/Igloo/master/gloo.js", "text/javascript");

to mw.loader.load("//raw.github.com/Kangaroopower/Igloo/master/gloo.js", "text/javascript");

Thanks, -- Kangaroo  powah  02:18, 26 March 2014 (UTC)
 * Yes check.svg Done — Mr. Stradivarius  ♪ talk ♪ 15:03, 26 March 2014 (UTC)

Aaaacccttuuualllyyy, GitHub is HTTPS only, and therefore this has the possibility to break if users are accessing Igloo through HTTP...we kind of *do* have to force HTTPS.  Theopolisme ( talk )  12:48, 28 March 2014 (UTC)

/sigh. Can you open a protected page edit request now? I'm on mobile and can't. Thanks, -- Kangaroo  powah  16:12, 28 March 2014 (UTC)
 * I've undone the change. By the way, on mobile you can always make an edit request the old-fashioned way, by just typing, or if you want it even shorter. — Mr. Stradivarius  ♪ talk ♪ 02:54, 29 March 2014 (UTC)

Import Change
Hi, could you change this line: mw.loader.load("https://raw.github.com/Kangaroopower/Igloo/master/gloo.js", "text/javascript"); to mw.loader.load("https://kangaroopower.github.io/code/Igloo/gloo.js", "text/javascript");

Thanks, -- Kangaroo  powah  21:03, 11 June 2014 (UTC)
 * Yes check.svg Done — Mr. Stradivarius  ♪ talk ♪ 21:36, 11 June 2014 (UTC)

Disabled
Please see Wikipedia_talk:Igloo. Legoktm (talk) 18:46, 6 July 2014 (UTC)

Re-enabling
I moved the code to wmf labs which is within the privacy policy  so here's the new code. Replace the import with

mw.loader.load("http://tools.wmflabs.org/igloo/code/Igloo/gloo.js");

and keep everything else the same. Thanks.

-- Kangaroo  powah  05:04, 26 July 2014 (UTC)
 * Yay, ✅! I made the link protocol-relative though, so it'll work for users on HTTPS. Legoktm (talk) 05:51, 26 July 2014 (UTC)
 * Thanks! -- Kangaroo  powah  14:57, 26 July 2014 (UTC)