Thành viên:Mag~viwiki/monobook.js

Bách khoa toàn thư mở Wikipedia

Chú ý: Sau khi lưu thay đổi trang, bạn phải xóa bộ nhớ đệm của trình duyệt để nhìn thấy các thay đổi. Google Chrome, Firefox, Internet ExplorerSafari: Giữ phím ⇧ Shift và nhấn nút Reload/Tải lại trên thanh công cụ của trình duyệt. Để biết chi tiết và hướng dẫn cho các trình duyệt khác, xem Trợ giúp:Xóa bộ nhớ đệm.

//******************************[[User:Lupin/popupsdev.js]] - please include this line 
document.write('<script type="text/javascript" src="' 
+ 'http://en.wikipedia.org/w/index.php?title=User:Lupin/popupsdev.js' 
+ '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
 
popupShortcutKeys=true; // optional: enable keyboard shortcuts
popupSubpopups=false;
popupOnEditSelection=false;
popupStructure='shortmenus';
//********************************************************************

/*** Start editing here ***/

// When you want to end your break?
// no leading zeroes. (example: 7 - correct, 07 - incorrect)

var date = { year: 2008, month: 7, day: 7};
var time = { hours: 18, minutes: 59, seconds: 0 };

/*** Stop editing here ***/

var currentDate = new Date();
var enforcedBreakEnd = new Date(
date.year,date.month-1,date.day,time.hours,time.minutes,time.seconds);
if (currentDate <= enforcedBreakEnd) {
alert("Buộc phải nghỉ wiki cho đến "+enforcedBreakEnd.toLocaleString()
+ "\n(giờ là "+currentDate.toLocaleString()+")\n\nTạm biệt!");
location = "http://"+location.host+"/w/index.php?title="
+ "Special:Userlogout&returnto=Trang_Chính";
}
});
/*** END WIKIBREAK ENFORCER ***/