Created
January 28, 2020 15:51
-
-
Save nzbr/4a2c330d57c9a1d0de31a4f41809e8d5 to your computer and use it in GitHub Desktop.
Automatically switch configuration examples to YAML in the traefic-docs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Traefik auto-yaml | |
// @version 1 | |
// @grant none | |
// @include https://docs.traefik.io/* | |
// ==/UserScript== | |
Array.from(document.getElementsByTagName("label")).forEach((elem) => { | |
if (elem.innerHTML === "File (YAML)") { | |
elem.click(); | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment