MediaWiki:Common.js: Difference between revisions

No edit summary
No edit summary
Line 75: Line 75:
     false
     false
);
);
/*
document.body.addEventListener(
    'NodeInserted',
    function (e) {
        if (e.target.classList && e.target.classList.contains('rt-tooltip')) {
            requestAnimationFrame(function () {
                var bodyLeft = document.body.getBoundingClientRect().left;
                var bodyTop = document.body.getBoundingClientRect().top;
                var left = parseInt(window.getComputedStyle(e.target).left);
var top = parseInt(window.getComputedStyle(e.target).top);
                e.target.style.left = left - bodyLeft + 'px';
});
        }
    },
    false
);
*/


 
/* 우클릭 방지 */
/* 우클릭 방지
window.oncontextmenu = function (e) {
window.oncontextmenu = function (e) {
     return e.preventDefault();
     return e.preventDefault();
Line 101: Line 83:
     return e.preventDefault();
     return e.preventDefault();
};
};
*/
 
   
   
/* 존재하지 않는 문서 페이지의 '기록' 링크 삭제 */
/* 존재하지 않는 문서 페이지의 '기록' 링크 삭제 */