Last active
February 12, 2025 07:37
-
-
Save samueljseay/5b761adc3e8cff4955b93632d6b29ed9 to your computer and use it in GitHub Desktop.
Set compact view on P2s
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 Set compact view cookie on P2 | |
// @namespace http://tampermonkey.net/ | |
// @version 0.2 | |
// @description try to take over the world! | |
// @author Sam Seay | |
// @source https://gist.github.com/samueljseay/5b761adc3e8cff4955b93632d6b29ed9 | |
// @match https://*.wordpress.com/* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=tampermonkey.net | |
// @grant none | |
// @noframes | |
// ==/UserScript== | |
(function() { | |
'use strict'; | |
if (! document.cookie.includes('showCompactView')) { | |
document.cookie = "showCompactView=true"; | |
location.reload(); | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment