Jikku Jose
Jikku Jose

Reputation: 18804

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?

Upvotes: 9

Views: 2057

Answers (2)

isaaclw
isaaclw

Reputation: 972

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>

Upvotes: 2

d11n
d11n

Reputation: 999

Embedding JavaScript is disabled to prevent Cross-Site Scripting.

Upvotes: 9

Related Questions