// ==UserScript==
// @name          	Reload Broken Page
// @author	  	abc@home
// @description   	Reload broken pages every 30 seconds
// @description0x0804  	每隔 30 秒刷新未能正常打开的页面
// @include       	*
// ==/UserScript==

(function(){
	var sBrokenTitle=/proxomitron reveals|cannot display the webpage|该网页无法显示/i;
	var sBrokenURL=/ieframe.dll/i;
	if(document.title.search(sBrokenTitle)>-1||document.URL.search(sBrokenURL)>-1) setTimeout('var sURL=document.URL;if(sURL.indexOf("res://ieframe.dll")==0){var n=sURL.indexOf("#");if(n>-1)sURL=sURL.substr(n+1);location.href=sURL}else location.reload()}', 30000);
})();
