Created
December 29, 2022 07:32
-
-
Save IdrisQe/1d243c00a23e3ed2d86daf4e68e7a5cb to your computer and use it in GitHub Desktop.
Revert Disqus To Classic Appearance UserScript (v1.0)
This file contains hidden or 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 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