This file contains 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
/* Uncheck All Twitter Interests */ | |
/* https://twitter.com/settings/your_twitter_data/twitter_interests */ | |
let checkboxes = document.querySelectorAll( "input[type='checkbox']" ) | |
for ( var i = 0; i < checkboxes.length; i++ ) { | |
if ( checkboxes[i].checked ) { checkboxes[i].click() } | |
} |
This file contains 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
// Run jQuery in Console | |
// @see https://blog.wplauncher.com/run-jquery-in-chrome-console/ | |
var jqry = document.createElement('script'); | |
jqry.src = "https://code.jquery.com/jquery-3.3.1.min.js"; | |
document.getElementsByTagName('head')[0].appendChild(jqry); | |
jQuery.noConflict(); | |
// Log Heroku Config Vars as JSON in Console | |
// @see https://blog.wplauncher.com/backup-heroku-config-vars/ | |
var config_vars = {} |
This file contains 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
// mc.ajaxOptions.success | |
if (mc && mc.ajaxOptions && mc.ajaxOptions.success) { | |
mc.ajaxOptions.success = function(resp) { | |
$ = jQuery | |
$('#mce-success-response').hide(); | |
$('#mce-error-response').hide(); | |
// On successful form submission, display a success message and reset the form | |
if (resp.result == "success") { | |
$('#mce-' + resp.result + '-response').show(); |
This file contains 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
// @see https://developers.google.com/analytics/devguides/collection/analyticsjs/cross-domain#setting_the_client_id_on_the_destination_domain | |
ga('create', 'UA-1813655-3', 'auto', { | |
'clientId': location.search.match(new RegExp("_ga=[.0-9]*"))[0].slice(4) | |
}); |
This file contains 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
javascript:(function(){var standardGlobals=['CSS', 'InstallTrigger', '__commandLineAPI', 'alert', 'applicationCache', 'atob', 'blur', 'btoa', 'cancelAnimationFrame', 'captureEvents', 'chrome', 'clearInterval', 'clearTimeout', 'clientInformation', 'close', 'closed', 'confirm', 'console', 'content', 'crypto', 'defaultStatus', 'defaultstatus', 'devicePixelRatio', 'document', 'dump', 'external', 'find', 'focus', 'frameElement', 'frames', 'fullScreen', 'getComputedStyle', 'getDefaultComputedStyle', 'getSelection', 'history', 'indexedDB', 'innerHeight', 'innerWidth', 'length', 'localStorage', 'location', 'locationbar', 'matchMedia', 'menubar', 'moveBy', 'moveTo', 'mozAnimationStartTime', 'mozCancelAnimationFrame', 'mozCancelRequestAnimationFrame', 'mozIndexedDB', 'mozInnerScreenX', 'mozInnerScreenY', 'mozPaintCount', 'mozRequestAnimationFrame', 'name', 'navigator', 'offscreenBuffering', 'onabort', 'onafterprint', 'onbeforeprint', 'onbeforeunload', 'onblur', 'oncanplay', 'oncanplaythrough', 'onchange', 'onclick', 'o |
This file contains 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
/** | |
* CustomPress YARPP Support | |
* | |
* Add YARPP support to WordPress custom post types created with WPMU DEV CustomPress | |
*/ | |
add_action( 'registered_post_type', 'my_custom_post_type_yarpp_support', 10, 2 ); | |
function my_custom_post_type_yarpp_support( $post_type, $args ) { | |
// Optionally specify a single custom post type | |
//if ( 'my_custom_post_type' === $post_type ) { |
This file contains 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
###################################################################### | |
# | |
# Custom Nginx Server Configuration for WordPress Multisite & Magento | |
# | |
# WordPress Multisite installed in root: | |
# network home => / | |
# network admin => /wp-admin/ | |
# default blog => /blog/ | |
# site-n => /site-n/ | |
# site-n admin => /site-n/wp-admin/ |
This file contains 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
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> | |
<style type="text/css"> | |
#content { | |
width: 300px; | |
height: 240px; | |
border: 1px solid black; | |
} | |
.control { | |
width: 50px; |