MediaWiki:Gadget-IRC.js
註:重取頁面,文方新焉。
- Firefox / Safari:押 Shift 並點 重新載入,或合鍵 Ctrl-F5 或 Ctrl-R(Mac 為 ⌘-R)。
- Google Chrome:點 Ctrl-Shift-R(Mac為 ⌘-Shift-R)。
- Internet Explorer:押 Ctrl 並點 重新整理,或合鍵 Ctrl-F5。
- Opera:須至 Tools → Preferences 清謄本(Mac 為 Opera → Preferences)。
(function () {
var irc_div = document.getElementById("cgiircbox");
if (irc_div) {
var ircframe = document.createElement("iframe");
var src_attr = document.createAttribute("src");
var dim = new Array(document.createAttribute("width"), document.createAttribute("height"));
src_attr.nodeValue = "//web.libera.chat/?chan=#wikipedia-lzh";
dim[0].nodeValue = "100%";
dim[1].nodeValue = "500";
ircframe.setAttributeNode(src_attr);
ircframe.setAttributeNode(dim[0]);
ircframe.setAttributeNode(dim[1]);
irc_div.appendChild(ircframe);
}
})();