Userscript iframe base
This commit is contained in:
1 parent
90f342bd17
commit
20f20389ce
2 files changed
+19
No files matched your search
@@ -0,0 +1,15 @@
|
|||||||
|
<!doctype html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
|
||||||
|
<script type="text/javascript" src="{{ url_for('web.static', filename='scripts/library/mootools.js') }}"></script>
|
||||||
|
<script type="text/javascript" src="{{ url_for('web.static', filename='scripts/library/mootools_more.js') }}"></script>
|
||||||
|
|
||||||
|
<script type="text/javascript">
|
||||||
|
{{url}}
|
||||||
|
console.log('test');
|
||||||
|
Api.request('')
|
||||||
|
</script>
|
||||||
|
</head>
|
||||||
|
<body></body>
|
||||||
|
</html>
|
||||||
@@ -39,6 +39,10 @@ class Extension(Plugin):
|
|||||||
return version
|
return version
|
||||||
|
|
||||||
def addViaUrl(self):
|
def addViaUrl(self):
|
||||||
|
url = getParam('url')
|
||||||
|
return self.renderTemplate(__file__, 'iframe.html', url = url)
|
||||||
|
|
||||||
|
def getViaUrl(self):
|
||||||
|
|
||||||
url = getParam('url')
|
url = getParam('url')
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user