Prevent userscript in iframe
This commit is contained in:
1 parent
8ec1bc4fd1
commit
c34f39216e
1 file changed
+3
@@ -12,6 +12,9 @@
|
||||
|
||||
// ==/UserScript==
|
||||
|
||||
if (window.top != window.self) // Only run on top window
|
||||
return;
|
||||
|
||||
var version = {{version}},
|
||||
host = '{{host}}',
|
||||
api = '{{api}}';
|
||||
|
||||
Reference in new issue
Block a user