Skip to content

Instantly share code, notes, and snippets.

@tribela
Last active May 26, 2018 15:26
Show Gist options
  • Save tribela/0d0df33e27caebc8a396d9c377b326a6 to your computer and use it in GitHub Desktop.
Save tribela/0d0df33e27caebc8a396d9c377b326a6 to your computer and use it in GitHub Desktop.
whois.kisa.or.kr unlock drag
// ==UserScript==
// @name whois drag
// @namespace https://github.com/Kjwon15/whois-drag
// @version 0.1
// @description Fuck Whois.or.kr
// @author Kjwon15
// @match https://xn--c79as89aj0e29b77z.xn--3e0b707e/*/whois.jsc*
// @grant none
// ==/UserScript==
function magic(document) {
document.oncontextmenu = null;
document.ondragstart = null;
document.onselectstart = null;
document.body.style.cssText = `
background: white;
font-size: initial;
`;
window.parent.document.querySelector('iframe').style.width = '100%';
console.log('magic happened');
}
if (window.top === window.self) {
magic(document);
console.log('self');
} else {
magic(document);
console.log('frame');
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment