admin管理员组

文章数量:1305280

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 piled 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?

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 piled 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?

Share Improve this question asked Oct 11, 2013 at 9:19 Jikku JoseJikku Jose 18.8k11 gold badges43 silver badges63 bronze badges
Add a ment  | 

2 Answers 2

Reset to default 9

Embedding JavaScript is disabled to prevent Cross-Site Scripting.

You can set up custom pages:

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

Then you can navigate to them via:

http://<username>.github.io/<project>/<filepath>

本文标签: javascriptEmbed Bookmarklet in GitHub READMEmdStack Overflow