Skip to content

Instantly share code, notes, and snippets.

@stugoo
stugoo / editPage.js
Created June 5, 2019 10:03 — forked from pmarquees/editPage.js
Edit page (bookmarklet)
javascript:document.body.contentEditable = 'true'; document.designMode='on'; void 0
update wp_options set option_value = replace(option_value,'string_to_find','string_to_replace');
update wp_posts set guid = replace(guid,'string_to_find','string_to_replace');
@stugoo
stugoo / event-tracker-modernizr.js
Last active December 14, 2015 01:09
Event tracking that also logs modernizr tests. - splits tests into passes & fails, with a variable to test if you want to track passes and/or fails
var SDM = SDM || {};
SDM.track = function (args) {
args = args || {};
var category = args.category,
action = args.action,
label = args.label,
value = args.value || null;