コンテンツにスキップ

利用者:っ/restore.js

お知らせ: 保存した後、ブラウザのキャッシュをクリアしてページを再読み込みする必要があります。

多くの WindowsLinux のブラウザ

  • Ctrl を押しながら F5 を押す。

Mac における Safari

  • Shift を押しながら、更新ボタン をクリックする。

Mac における ChromeFirefox

  • Cmd Shift を押しながら R を押す。

詳細についてはWikipedia:キャッシュを消すをご覧ください。

// This script is under public domain, and comes with ABSOLUTELY NO WARRANTY.
// You can use/modify/redistribute without any permission.

// Usage of "Opposite at each check":
// 1. Click the last (oldest revision's) box you don't want to turn on. 
// 2. Click the last (oldest revision's) box you want to turn on above "1." one, if needed.
// 3. Click the last (oldest revision's) box you don't want to turn on above "2." one, if needed.
// 4. Click the last (oldest revision's) box you want to turn on above "3." one, if needed.
// 5. .......
// 6. Click the "Opposite at each check" button.


$(function() {
	var e, t, p, b;
	if(!(e = document.getElementById('undelete'))) return;
	if(!(t = e.getElementsByTagName('h2')[1])) return;
	p = document.createElement('p');
	//
	b = document.createElement('button');
	b.setAttribute('type', 'button');
	b.onclick = function() {
		var is = document.getElementById('undelete').getElementsByTagName('input');
		for(var i = 0; i < is.length; ++i)
			if(is[i].type == 'checkbox') is[i].checked = true;
		return false;
	}
	b.appendChild(document.createTextNode('Check all'));
	p.appendChild(b);
	//
	p.appendChild(document.createTextNode(' '));
	//
	b = document.createElement('button');
	b.setAttribute('type', 'button');
	b.onclick = function() {
		var is = document.getElementById('undelete').getElementsByTagName('input');
		for(var i = 0; i < is.length; ++i)
			if(is[i].type == 'checkbox') is[i].checked = !is[i].checked;
		return false;
	}
	b.appendChild(document.createTextNode('Reverse checks'));
	p.appendChild(b);
	//
	p.appendChild(document.createTextNode(' '));
	//
	b = document.createElement('button');
	b.setAttribute('type', 'button');
	b.onclick = function() {
		var is = document.getElementById('undelete').getElementsByTagName('input');
		var flag = true;
		for(var i = is.length - 1; i >= 0 ; i--)
			if(is[i].type == 'checkbox') {
				if (is[i].checked) flag = !flag;
				is[i].checked = flag;
			}
		return false;
	}
	b.appendChild(document.createTextNode('Opposite at each check'));
	p.appendChild(b);
	//
	e.insertBefore(p, t.nextSibling);
});
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy