Skip to content

Instantly share code, notes, and snippets.

@Denton-L
Denton-L / State of California Sexual Harassment Prevention Training Skip
Last active April 14, 2025 17:42
Speedrunning State of California Sexual Harassment Prevention Training
If, as part of your job, you're obligated to do this training, you don't
actually have to wait for the button to ungrey as you sit through the dialog.
You can simply open up the JavaScript console of your browser and execute
DS.pubSub.trigger(DS.events.presentation.ON_OBJECT_EVENT, "next_pressed");
and this will automatically take you to the next slide. Just keep spamming this
until you're through the training. If you're forced to answer a question,
remember that the answer is probably true!
anonymous
anonymous / gist:139987
Created July 3, 2009 07:23
A ruby snippet for Parsing and cleaning Word HTML
#
# This function takes messy Word HTML pasted into a WYSIWYG and cleans it up
# It leaves the tags and attributes specified in the params
# Copyright (c) 2009, Radio New Zealand
# Released under the MIT license
require 'rubygems'
require 'sanitize'
def clean_up_word_html(html, elements = ['p', 'b', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6'], attributes={})