Skip to content

Instantly share code, notes, and snippets.

@lefte
Last active December 8, 2022 17:13
Show Gist options
  • Save lefte/af9232932eb95bcda269db9a94c190ac to your computer and use it in GitHub Desktop.
Save lefte/af9232932eb95bcda269db9a94c190ac to your computer and use it in GitHub Desktop.
Magento DevDocs Fixer Greasemoney/Tampermonkey Script
// ==UserScript==
// @name Magento DevDocs Fixer
// @author Erik Hanson (erik.hanson@gmail.com)
// @version 1.3.0
// @namespace https://gist.github.com/lefte/af9232932eb95bcda269db9a94c190ac
// @updateURL https://gist.github.com/lefte/af9232932eb95bcda269db9a94c190ac
// @grant none
// @run-at document-idle
// @require https://ajax.googleapis.com/ajax/libs/jquery/3.6.1/jquery.min.js
// @description Allows one to browse the Magento DevDocs without the annoying opacity filter
// @match https://devdocs.magento.com/*
// @match https://support.magento.com/hc/*
// ==/UserScript==
$(function() {
$("<style id='devdocsfixer'>main { filter: none !important; } section .page-intro { filter: none !important; } .article-header, .article-info { opacity: initial; }</style>").appendTo("body");
});
@lefte
Copy link
Author

lefte commented Dec 8, 2022

Magento DevDocs Fixer Greasemonkey User Script

Click the Raw button, and if you have Greasemonkey, Tampermonkey, or Violentmonkey installed, will open the dialog box to install this user script.

Release Notes

v1.3.0 - Expanded scope to all DevDocs pages
v1.2.0 - Attempt to add auto-update functionality, but which may be compatible with Gists
v1.1.0 - Add support for the support.magento.com subdomain
v1.0.0 - Initial release of the *Monkey script to allow browsing of the Magento DevDocs without annoying opacity filters

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment