FANDOM


//
var few = few || {};
 
few.init = function(){
	var cont = few.$New("div", { style:"position:fixed; top:0; right:0; background:#555; color:#CCC; border:3px double #333; padding:3px 5px; z-index:999;" }, document.body);
	var textbox = few.$New("input", {}, cont);
	var button = few.$New("button", { innerHTML:"Change Title" }, cont);
 
	button.onclick = function(){
		if(textbox.value) {
			document.title = textbox.value;
			few.$Remove(cont);
		}
	};
};
 
few.$ = function(query, parent){ return (parent != undefined ? parent : document).querySelector(query); }
few.$All = function(query, parent){ return (parent != undefined ? parent : document).querySelectorAll(query); }
few.$Remove = function(elem){ return elem.parentNode.removeChild(elem); }
few.$New = function(tag, attributes, parent) {
		var element = document.createElement(tag);
		if(attributes != undefined) {
			for(var key in attributes)
				element[key] = attributes[key];
		}
		if(parent != undefined) parent.appendChild(element);
		return element;
	}
 
Array.prototype.contains = function(obj) {
	var i = this.length;
	while (i--) {
		if (this[i] === obj) {
			return true;
		}
	}
	return false;
}
 
few.init();
//

Ad blocker interference detected!


Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.