diff options
author | Jeremy <jeremy.benoist@gmail.com> | 2015-02-07 18:28:30 +0100 |
---|---|---|
committer | Jeremy <jeremy.benoist@gmail.com> | 2015-02-07 18:28:31 +0100 |
commit | 8125b415d8f3bd15b8b9169fb8fc528a51603edc (patch) | |
tree | 7c410593d4ffd50007965242b1e04da1eb1aa409 /src/Wallabag/CoreBundle/Resources/public/js/bookmarklet.js | |
parent | d01db0c71dcf183f1676b6b06206456138cb7660 (diff) | |
download | wallabag-8125b415d8f3bd15b8b9169fb8fc528a51603edc.tar.gz wallabag-8125b415d8f3bd15b8b9169fb8fc528a51603edc.tar.zst wallabag-8125b415d8f3bd15b8b9169fb8fc528a51603edc.zip |
Avoid raw javascript in template
It kills the Symfony Crawler :)
Diffstat (limited to 'src/Wallabag/CoreBundle/Resources/public/js/bookmarklet.js')
-rw-r--r-- | src/Wallabag/CoreBundle/Resources/public/js/bookmarklet.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/Wallabag/CoreBundle/Resources/public/js/bookmarklet.js b/src/Wallabag/CoreBundle/Resources/public/js/bookmarklet.js new file mode 100644 index 00000000..2afdfc3c --- /dev/null +++ b/src/Wallabag/CoreBundle/Resources/public/js/bookmarklet.js | |||
@@ -0,0 +1,2 @@ | |||
1 | |||
2 | top["bookmarklet-url@wallabag.org"]=""+"<!DOCTYPE html>"+"<html>"+"<head>"+"<title>bag it!</title>"+'<link rel="icon" href="tpl/img/favicon.ico" />'+"</head>"+"<body>"+"<script>"+"window.onload=function(){"+"window.setTimeout(function(){"+"history.back();"+"},250);"+"};"+"</scr"+"ipt>"+"</body>"+"</html>" | ||