Userscript iframe base
This commit is contained in:
@@ -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
|
||||
|
||||
def addViaUrl(self):
|
||||
url = getParam('url')
|
||||
return self.renderTemplate(__file__, 'iframe.html', url = url)
|
||||
|
||||
def getViaUrl(self):
|
||||
|
||||
url = getParam('url')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user