Skip to content

Instantly share code, notes, and snippets.

@samueljseay
Last active September 19, 2024 02:46
Show Gist options
  • Save samueljseay/5b761adc3e8cff4955b93632d6b29ed9 to your computer and use it in GitHub Desktop.
Save samueljseay/5b761adc3e8cff4955b93632d6b29ed9 to your computer and use it in GitHub Desktop.
Set compact view on P2s
// ==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