<!-- version: 1.2.0 -->
<!-- excerpt: Allows per-question toggling of spoiler blocks -->

###About:

Inspired by [this feature request][1] on Meta Science Fiction & Fantasy, this script adds a checkbox to the "question info" sidebar block on each question to allow toggling all spoiler blocks on the page.

###Screenshot / Code Snippet: 

[![This script adds a checkbox to the question info sidebar][2]][2]

Here's what it looks like on http://scifi.stackexchange.com/q/112783/31051

 - **Spoilers Enabled:**

 [![Question with spoilers enabled][3]][4]

 - **Spoilers Disabled:**

 [![Question with spoilers disabled][5]][6]

###Download / Install:

Install by clicking: <kbd>[Install][7]</kbd>

Requires a UserScript manager (like GreaseMonkey or TamperMonkey).

###Platform:

Developed and tested on Windows 10 and Chrome 54. It should work on all desktop operating systems and most browsers (IE version 5.5 or greater, Safari version 4 or greater).

Not tested on mobile.

###License: MIT 

###Code:

Developed in native JavaScript. Code is [on GitHub][8].

Any bugs can be reported in comments here, or in GitHub's issue tracker.

Related: http://stackapps.com/q/2404/37723


  [1]: http://meta.scifi.stackexchange.com/q/7888/31051
  [2]: https://i.sstatic.net/rTvX1.png
  [3]: https://i.sstatic.net/uwMDXs.jpg
  [4]:https://i.sstatic.net/uwMDX.jpg
  [5]: https://i.sstatic.net/kMKMzs.jpg
  [6]:https://i.sstatic.net/kMKMz.jpg
  [7]: https://github.com/jwbaker/stackexchange-toggle-spoilers/raw/master/script.user.js
  [8]: https://github.com/jwbaker/stackexchange-toggle-spoilers