Khác biệt giữa bản sửa đổi của “MediaWiki:Gadget-wikEd.js”

Nội dung được xóa Nội dung được thêm vào
 
Dòng 1:
// _________________________________________________________________________________________
// **********************************************************************
// **| ***WARNING GLOBAL GADGET FILE*** ** |
// **| changes to this file affect many users. === WARNING: GLOBAL GADGET FILE === ** |
// **| please discuss on the talk Changes to this page beforeaffect many users. editing **|
// | Please discuss changes on the talk page or on [[w:Wikipedia_talk:Gadget]] before editing. |
// ** **
// |_________________________________________________________________________________________|
// **********************************************************************
//
// Imports [[w:User:Cacycle/wikEd.js]]
// wikEd is a full-featured in-browser editor for Wikipedia, see [[w:User:Cacycle/wikEd]]
 
// Không tải trong IE; không cần thiết nhưng có thể đỡ tốn vài mili giây
if ( navigator.appName !== 'Microsoft Internet Explorer' ) {
var wikEdConfig = {};
// Cài đặt trình soạn văn bản trong trình duyệt [[w:en:User:Cacycle/wikEd]]
wikEdConfig.languageDefault = 'vi';
mw.loader.load('//en.wikipedia.org/w/index.php?title=User:Cacycle/wikEd.js&action=raw&ctype=text/javascript');
 
// Tải [[w:en:User:Cacycle/wikEd]]
// Cài đặt bản dịch tiếng Việt wikEd từ
// Không dùng hàm importScript(), importScriptURI(), or mw.loader.load() vì chúng sẽ gây ảnh hưởng đến cơ chế cài đặt của mã nguồn và làm chậm quá trình khởi động
// [[w:Thành viên:Vinhtantran/wikEd international vi.js]]
(function() {
mw.loader.load('//vi.wikipedia.org/w/index.php?title=Thành_viên:Vinhtantran/wikEd_international_vi.js&action=raw&ctype=text/javascript');
var script = document.createElement('script');
mw script.loader.load(src = '//en.wikipedia.org/w/index.php?title=User:Cacycle/wikEd.js&action=raw&ctype=text/javascript');
script.async = true;
document.getElementsByTagName('head')[0].appendChild(script);
})();
}