Skip to content

Instantly share code, notes, and snippets.

@nikjft
nikjft / zapier_webhook_bookmarklet.js
Last active August 20, 2019 08:24 — forked from brunohq/zapier_webhook_bookmarklet.js
Bookmarklet to trigger a Zapier Webhook from any web page. Any selected text as well as the page title and URL are passed to Zapier.
javascript:(function()
{
var webhookURL = '[your webhook URL from Zapier]';
var selectedText = encodeURIComponent(window.getSelection().toString());
var iframe = document.createElement('iframe');
iframe.name = 'response';
iframe.style.visibility = 'hidden';
document.body.appendChild(iframe);
var form = document.createElement('form');
@nikjft
nikjft / mkto.form.listener.html
Last active March 17, 2020 13:33 — forked from keithws/mkto.form.listener.html
Marketo Form Listener for Google Tag Manager (GTM)
(function marketoFormListener () {
"use strict";
/**
* poll for global MktoForms2 variable to be defined
* @returns {undefined}
*/
function pollForMktoForms2 (delay) {