Skip to content

Instantly share code, notes, and snippets.

@IdrisQe
Created December 29, 2022 07:32
Show Gist options
  • Save IdrisQe/1d243c00a23e3ed2d86daf4e68e7a5cb to your computer and use it in GitHub Desktop.
Save IdrisQe/1d243c00a23e3ed2d86daf4e68e7a5cb to your computer and use it in GitHub Desktop.
Revert Disqus To Classic Appearance UserScript (v1.0)
// ==UserScript==
// @name Disqus Classic Auto-Enable
// @description Reverts Disqus to its classic appearance
// @version 1.0
// @author IdrisQe
// @match *://disqus.com/embed/comments/*
// @run-at document-start
// @inject-into page
// @allFrames true
// ==/UserScript==
function setClassic() {
if (window.localStorage.getItem("switch:embed_refresh") !== "false") {
window.localStorage.setItem("switch:embed_refresh", "false");
location.reload();
}
}
window.addEventListener('DOMContentLoaded', setClassic);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment