Last active
May 26, 2018 15:26
-
-
Save tribela/0d0df33e27caebc8a396d9c377b326a6 to your computer and use it in GitHub Desktop.
whois.kisa.or.kr unlock drag
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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