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 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'); |
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
(function marketoFormListener () { | |
"use strict"; | |
/** | |
* poll for global MktoForms2 variable to be defined | |
* @returns {undefined} | |
*/ | |
function pollForMktoForms2 (delay) { |