I built the stylesheet changer, over 6 years ago, primarily to cycle through a handful of stylesheets in order to give the user some freedom to customize the site environment easily. I also, from day to day, like to change things up a bit especially when working on the same site (like this portfolio) often.

The changer will ignore stylesheets that are inline (don’t have a href value) and by manipulating the sheetPattern you may filter out other linked sheets. To remember and load your last enabled stylesheet on page load you’ll want to add changeSheets(‘set’,”); to your onload event like I’ve done below. Also, I’ve added it on the double click event in the example so to use it otherwise you may want to remove that.

Below I’ve given the html, event and full function.

Show the code