Downsized & slightly modded QueryString function edit

function QueryString(string) {
	string = string.replace(/\+/g, ' '); this.string = string;
	this.params = {}; if (string.length == 0) return;
	var args = string.split(arguments[1] || '&'); for (var i = 0; i < args.length; ++i) {
		var pair = args[i].split(arguments[2] || '='); var key = decodeURIComponent(pair.shift());
		var value = (pair.length > 0) ? decodeURIComponent(pair.join(arguments[2] || '=')) : key;
		this.params[key] = value}};

QueryString.prototype = (function(props) {
	for (var i in props) QueryString[i] = function() {
		return QueryString.static[i].apply(this, arguments)}; return props})({
	get: function(key) {return this.params[key] ? this.params[key] : null},
	exists: function(key) {return this.params[key] ? true : false},
	equals: function(key, value) {return this.params[key] == value ? true : false},
	toString: function() {return this.string || null}});

QueryString.prototype.create = QueryString.create = function(arr) {
	if (typeof arr != "object" || typeof a.length == "integer") arr = {value: arr};
	var resarr = Array(); var editToken; // KLUGE: this should always be the last item in the query string (bug TW-B-0013)
	for (var i in arr) {if (typeof arr[i] == 'undefined') continue; var res;
		if (arr[i] instanceof Array) {var v = Array();
			for (var j = 0; j < arr[i].length; ++j) v[j] = encodeURIComponent(arr[i][j]);
			res = v.join('|');} else res = encodeURIComponent(arr[i]);
		if (i == 'wpEditToken') editToken = res;
		else resarr.push(encodeURIComponent(i) + '=' + res)};
	if (typeof editToken != 'undefined') resarr.push('wpEditToken=' + editToken);
	return resarr.join(arguments[1] || '&')};

QueryString.static = new QueryString(location.search.substring(1));

--58.173.104.186 (talk) 06:15, 30 October 2008 (UTC)Reply

What is this? edit

Really, it's in my monobook.js but I have no idea what it does. I think furme requires it. Is it a general library for other scripts? --Apoc2400 (talk) 23:28, 12 November 2008 (UTC)Reply

Yeah, it's a library. People use it for stuff like Twinkle and Friendly. --[[ year2000prob ]] 05:42, 22 December 2008 (UTC)Reply

What is the IE problem? edit

I understand that this library won't work in IE, but why?--Ipatrol (talk) 19:04, 26 March 2009 (UTC)Reply

Blacklist request edit

Whenever I use FireFox for clearing out my e-mails, I think I've got rollback rights. Please blacklist my name so that I stop making that mistake.--Launchballer 15:15, 21 October 2009 (UTC)Reply

If you don't want to use Twinkle, remove it from your gadgets. Amalthea 15:59, 21 October 2009 (UTC)Reply

Request edit

{{editprotected}} Please replace img.src = "http://upload.wikimedia.org/wikipedia/commons/thumb/5/52/Nuvola_apps_error.png/18px-Nuvola_apps_error.png"; with img.src = "http://upload.wikimedia.org/wikipedia/commons/d/da/Crystal_button_cancel.png"; as the second image is a newer, nicer icon.--ℳøℕø 00:07, 25 April 2010 (UTC)Reply

what is this used for? —Preceding unsigned comment added by Spitfire19 (talkcontribs) 00:45, 25 April 2010 (UTC)Reply
It is the "close" button on the Twinkle window.--ℳøℕø 01:49, 25 April 2010 (UTC)Reply
What's so bad with the current icon that you keep trying to replace it?
In any case, feel free to propose this one at WT:TW#Twinkle Close Button where you've previously asked for it to be changed.
Amalthea 09:11, 25 April 2010 (UTC)Reply

How do you report abuse? edit

This looks like an interesting tool, however I am on an article where a user is using this and reverting good faith edits automatically. The instructions warn against this, but no where does it say what to do when it happens. Akuvar (talk) 04:16, 12 October 2010 (UTC)Reply

WP:ANI.— dαlus Contribs 04:54, 12 October 2010 (UTC)Reply

Warning for consumers of Wikipedia.wiki edit

Now that there are renewed plans to enable HTML5 on Wikipedia, there is every chance that users relying on the Wikipedia.wiki object in this script will find it ceasing to work. Therefore, it would be beneficial if the contents of this script could be replaced with the contents of this copy (cross-page diff), which presents a note to users every time this object is used suggesting that they contact the maintainer of their script (or Twinkle developers if the maintainer is unavailable or in need of assistance). Thanks, — This, that, and the other (talk) 07:15, 30 June 2012 (UTC)Reply

  Done -- 11:51, 8 July 2012 (UTC)

Edit request to complete MfD nomination edit

User:AzaToth/morebits.js has been listed at Miscellany for deletion (nomination), but was protected so could not be tagged. Please add:

<noinclude>{{mfd|help=off}} </noinclude>

to the top of the page to complete the nomination. Thank you. DemonDays64 (talk) 03:11, 15 December 2020 (UTC)Reply

I've closed the nomination, so this request is no longer needed. Graham87 08:09, 15 December 2020 (UTC)Reply

Interface-protected edit request on 20 May 2022 edit

Please add a noe that this script is depreciated, like seen here: User:Smith609/toolbox.js . TIA. Piotr Konieczny aka Prokonsul Piotrus| reply here 08:20, 20 May 2022 (UTC)Reply

@Piotrus: (a) this user has been recently active and can maintain their own userpage, (b) this page is blank so it certainly isn't hurting anything, but most importantly (c) setting a mw.log event is going to mean nothing to most people, they aren't going to read their js log. — xaosflux Talk 18:42, 20 May 2022 (UTC)Reply
@Xaosflux But the few people who do - like - me will find it helpful. Ping User:Smith609. Piotr Konieczny aka Prokonsul Piotrus| reply here 08:14, 21 May 2022 (UTC)Reply
  Done of course if @AzaToth: wants to update this that is up to them. — xaosflux Talk 10:15, 21 May 2022 (UTC)Reply