Skip to content

Serve evil.css via Github pages #13

@mx-moth

Description

@mx-moth

Serving the css file using the 'raw' option serves the file with a mime-type of text/plain. This makes the css file fail to work in Firefox and other browsers. By making use of Github pages, the CSS file can be served with the correct mime-type, making the bookmarklet work in more browsers.

By simply making a gh-pages branch, Github pages will automatically be set up for you, with no more effort needed:

git clone https://github.com/tlrobinson/evil.css.git
git checkout -b gh-pages
git push origin gh-pages

Then, evil.css can be found at http://tlrobinson.github.com/evil.css/evil.css with the correct mine-type. Just keep master and gh-pages in sync, and Github will do the rest.

You can additionally make an index.html file to act as a landing page, where you can add the bookmarklet as an anchor for people to bookmark, but this step is completely optional.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions