Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Embed Bookmarklet in GitHub README.md

Was trying to put in a Bookmarklet in a Github README.md. But, the following markdown code fails:

[Bookmarklet](javascript:alert('not-working'))

From the compiled output it seems javascript in the link seems to be stripped off. Can anyone confirm whether this is a policy for Github pages? Or am I missing something?

like image 680
Jikku Jose Avatar asked Oct 11 '13 09:10

Jikku Jose


2 Answers

Embedding JavaScript is disabled to prevent Cross-Site Scripting.

like image 138
d11n Avatar answered Nov 13 '22 00:11

d11n


You can set up custom pages:

https://help.github.com/articles/creating-project-pages-manually

Then you can navigate to them via:

http://<username>.github.io/<project>/<filepath>
like image 38
isaaclw Avatar answered Nov 12 '22 23:11

isaaclw