Skip to content

Instantly share code, notes, and snippets.

@krrishd
Last active April 19, 2016 19:43
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save krrishd/6168809 to your computer and use it in GitHub Desktop.
Save krrishd/6168809 to your computer and use it in GitHub Desktop.
Bootstrap To Geocities
/*
Tired of the same old bootstrapped site?
Miss the trendy, hip Geocities look?
This bookmarklet will fix that in a click!
Derived from Bootstrap Geocities theme at http://code.divshot.com/geo-bootstrap/
Simply add new bookmark, edit url, and add bottom code in place of url. Whenevver you miss Geocities, click it.
*/
javascript:$("<style>@import url('//code.divshot.com/geo-bootstrap/swatch/bootstrap.min.css')</style>").appendTo('body');
@adaburrows
Copy link

You should really do something like this so it doesn't depend on jQuery:

javascript:(function() {var s = document.createElement("style");s.innerText = "@import url('http://code.divshot.com/geo-bootstrap/swatch/bootstrap.min.css')";document.getElementsByTagName('body')[0].appendChild(s);})();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment