public
Last active

Bootstrap To Geocities

  • Download Gist
backtogeocities.js
JavaScript
1 2 3 4 5 6 7 8 9 10 11
/*
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');

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);})();

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.