LDR - FIFO Pin

By iwamot Last update Jun 18, 2008 — Installed 152 times. Daily Installs: 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 3, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2
// ==UserScript==
// @name           LDR - FIFO Pin
// @namespace      http://iwamot.com/
// @include        http://reader.livedoor.com/reader/*
// ==/UserScript==

(function () {
	var w = unsafeWindow || window;
	var _onload = w.onload;
	w.onload = function () {
		_onload();
		main();
	}

	function main() {
		location.href = 'javascript:(' + function () {
			(function (w) {with (w) {
				pin.add = function(url, title, info) {
					if (this.has(url) || this.pins.length >= 100) {
						return;
					}
					var data = {title: title, url: url};
					if (info) {
						data.icon = info.icon;
					}
					this.pins.push(data);
					this.hash[url] = true;
					this.update_view();
					new Pinsaver().add(url, title);
				}
			}})(this.unsafeWindow || window);
		}.toString() + ')()';
	}
})();