Skip to content

Instantly share code, notes, and snippets.

@nzbr
Created January 28, 2020 15:51
Show Gist options
  • Save nzbr/4a2c330d57c9a1d0de31a4f41809e8d5 to your computer and use it in GitHub Desktop.
Save nzbr/4a2c330d57c9a1d0de31a4f41809e8d5 to your computer and use it in GitHub Desktop.
Automatically switch configuration examples to YAML in the traefic-docs
// ==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