Skip to content

Instantly share code, notes, and snippets.

@zxshinxz
Created December 5, 2016 14:49
Show Gist options
  • Save zxshinxz/225731dd820ea660590c184df66df8a6 to your computer and use it in GitHub Desktop.
Save zxshinxz/225731dd820ea660590c184df66df8a6 to your computer and use it in GitHub Desktop.
Right Click Enable script
function naver(q) {
void(z = q.body.appendChild(q.createElement('script')));
void(z.language = 'javascript');
void(z.type = 'text/javascript');
void(z.src = 'http://userscripts.org/scripts/source/61326.user.js');
}
function selfw(w) {
try {
naver(w.document);
} catch (e) {}
for (var i = 0; i < w.frames.length; i++) {
try {
selfw(w.frames[i]);
} catch (e) {}
}
}
selfw(self);
(function() {
var e, i, all;
document.onselectstart = null;
document.oncontextmenu = null;
all = document.getElementsByTagName("*");
for (i = 0; i < all.length; i += 1) {
e = all[i];
e.onselectstart = null;
e.oncontextmenu = null;
}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment