MyWikiBiz, Author Your Legacy — Monday December 22, 2025
Jump to navigationJump to search
146 bytes added
, 08:50, 20 April 2007
| Line 1: |
Line 1: |
| | // <pre><nowiki> | | // <pre><nowiki> |
| − | addOnloadHook(function() {
| + | if (window.showModalDialog && document.compatMode && document.compatMode == "CSS1Compat") |
| − | if (wgTitle.indexOf("/") != -1 || document.title.indexOf("- History -") != -1) //no subpages or history
| + | { |
| − | return;
| + | var oldWidth; |
| − | if (wgCanonicalNamespace == "User" || wgCanonicalNamespace == "User_talk") {
| + | var docEl = document.documentElement; |
| − | var username = encodeURIComponent( wgTitle );
| + | |
| − | addPortletLink("p-cactions", wgServer + "/Special:Contributions/" + username, "contribs", "ca-contrib", "User contributions");
| + | function fixIEScroll() |
| | + | { |
| | + | if (!oldWidth || docEl.clientWidth > oldWidth) |
| | + | doFixIEScroll(); |
| | + | else |
| | + | setTimeout(doFixIEScroll, 1); |
| | + | |
| | + | oldWidth = docEl.clientWidth; |
| | } | | } |
| − | }); | + | |
| | + | function doFixIEScroll() { |
| | + | docEl.style.overflowX = (docEl.scrollWidth - docEl.clientWidth < 4) ? "hidden" : ""; |
| | + | } |
| | + | |
| | + | document.attachEvent("onreadystatechange", fixIEScroll); |
| | + | attachEvent("onresize", fixIEScroll); |
| | + | } |
| | // </nowiki></pre> | | // </nowiki></pre> |
| | | | |