<!-- 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.

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

###Screenshot / Code Snippet: 

Here's what it looks like on [scifi.stackexchange.com/q/112783][3] (the screenshots are quite a bit larger than the thumbnails below; click to embiggen):

 - **Spoilers Enabled:**

  <!-- Custom img for desired, non-standard sizing -->
  [<img src="https://i.sstatic.net/dUZgb.jpg" height="300">][4]

 - **Spoilers Disabled:**

  <!-- Custom img for desired, non-standard sizing -->
  [<img src="https://i.sstatic.net/41Hvq.jpg" height="300">][7]


###Download / Install:

Install from GitHub: <kbd>[Install][8]</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][9].

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

Related: [stackapps.com/q/2404][10]


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