I hereby claim:
- I am shawnhooper on github.
- I am shawnhooper (https://keybase.io/shawnhooper) on keybase.
- I have a public key ASAFhJS9Tr2by7SoXaTbAFYjzMEqPCWZkwydY212qjsnUgo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| <?php | |
| /** Add this to the bottom of your functions.php file in your theme **/ | |
| require_once ABSPATH . WPINC . '/class-wp-customize-manager.php'; | |
| remove_action('wp_ajax_customize_save', array($GLOBALS['wp_customize'], 'save')); | |
| add_action('wp_ajax_customize_save', 'return_403_on_customizer_save'); | |
| function return_403_on_customizer_save() { | |
| wp_send_json(array('message' => 'Theme Editor in Read Only Mode'), 403); | |
| } |
| <?php | |
| // This works | |
| if ( 0 === $model->where('status', 'pending')->count() ) { | |
| } | |
| // But since I don't care about the count, just that there isn't one | |
| // Laravel's exists() method is cleaner. | |
| if ( ! $model->where('status', 'pending')->exists() ) { | |
| } |
| // ==UserScript== | |
| // @name Toot | |
| // @namespace https://shawnhooper.ca/ | |
| // @version 1.0 | |
| // @description Replace the Mastodon 4.0+ Publish button with "Toot" | |
| // @author Shawn M. Hooper | |
| // @match https://fosstodon.org/* | |
| // @match https://mastodon.social/* | |
| // @icon https://www.google.com/s2/favicons?sz=64&domain=fosstodon.org | |
| // @grant none |
| // ==UserScript== | |
| // @name Bluesky Post Time Expander | |
| // @namespace http://tampermonkey.net/ | |
| // @version 1.0 | |
| // @description Show full date instead of time since post | |
| // @author Shawn Hooper | |
| // @match *://bsky.app/* | |
| // @grant none | |
| // ==/UserScript== |