MediaWiki:Common.js: Difference between revisions
No edit summary |
No edit summary |
||
| Line 117: | Line 117: | ||
/* 우클릭 방지 */ | /* 우클릭 방지 */ | ||
window.oncontextmenu = function (e) { | if (mw.config.get("wgUserName") == null) { | ||
window.oncontextmenu = function (e) { | |||
return e.preventDefault(); | return e.preventDefault(); | ||
}; | }; | ||
window.onselectstart = function (e) { | window.onselectstart = function (e) { | ||
return e.preventDefault(); | return e.preventDefault(); | ||
}; | }; | ||
} | |||