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> | |
// For a HighLevel webpage (funnel or website) that is meant to be a dedicated chatting area. | |
// Copy all of this and paste into your custom code, such as in the Footer Tracking area. | |
// This snippet: https://gist.github.com/cliffordp/1428be81a842d5b93c793d2d5b967007 | |
// Source demo: https://10xmarketing.ai/10x-chatbot-widget | |
function openChatWidget() { | |
// Check if Chat Widget exists. | |
if (window.leadConnector && window.leadConnector.chatWidget) { | |
// If it exists, open it. | |
window.leadConnector.chatWidget.openWidget(); |
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
1k = | |
1k follower | |
1k= | |
about page restriction | |
account will be deactivated | |
are you interested to grow your | |
automatically disabled your ads | |
block your account automatically | |
breached our copyright policy | |
cash app tag |
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
<?php | |
// [copythis]This will be copied[/copythis] | |
// @link https://gist.github.com/cliffordp/fe86cc09d5c6250453fc4c8ccf763e5b This snippet. | |
add_shortcode( 'copythis', function( $atts, $content = null ) { | |
return sprintf( | |
'<div class="copythis">%s</div> | |
<button onclick="navigator.clipboard.writeText(this.previousElementSibling.textContent)">Copy This</button>', | |
$content); | |
}); |
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
<style> | |
/* Video: https://youtu.be/u39v1o6iqc0 */ | |
/* Code Source: https://gist.github.com/cliffordp/95dd05de071dd8f8ce0c73625ff7106d */ | |
/* Buttons */ | |
div[class*='button-'] a[class*='btn-'] { | |
background-color: {{custom_values.color_secondary}}; | |
} | |
/* H1s */ |
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
// UNNECESSARY. DO NOT USE. | |
// Do this instead: https://help.gohighlevel.com/support/solutions/articles/48001172004 | |
<script id="bizname-enforce-default-url-query-param"> | |
// Source: https://gist.github.com/cliffordp/f4aa43badd4d99cee537a82ff0e5ab3b | |
// Video: https://youtu.be/MHKzHf1BhrY | |
// Function to check for the 'bizname' query parameter and redirect if not present. | |
(function enforceDefaultBiznameQueryParam() { | |
const urlParams = new URLSearchParams(window.location.search); | |
const bizname = urlParams.get('bizname'); |
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
// Adapted from https://raddle.me/f/Privacy/3722/how-to-circumvent-cloudflare-s-email-protected-thing-without with the help of chatGPT | |
function fixObfuscatedEmails() { | |
const elements = document.getElementsByClassName('__cf_email__'); | |
for (let i = 0; i < elements.length; i++) { | |
const element = elements[i]; | |
const obfuscatedEmail = element.getAttribute('data-cfemail'); | |
if (obfuscatedEmail) { | |
const decodedEmail = decrypt(obfuscatedEmail); | |
element.setAttribute('href', 'mailto:' + decodedEmail); | |
element.innerHTML = decodedEmail; |
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
gh issue list -s all -L 500 --json number | \ | |
jq -r '.[] | .number' | \ | |
xargs -I% gh issue transfer % https://github.com/<destination repo> |
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 id="tourkick-ghl-url-query-param-replacement"> | |
// Source: https://gist.github.com/cliffordp/9856cdd1497802996f472d3d31299026 | |
// Get and decode the query parameter from the URL. | |
function getQueryParam( param ) { | |
const urlParams = new URLSearchParams( window.location.search ); | |
const paramValue = urlParams.get( param ); | |
// Return null if the parameter is not present or is an empty string. | |
return (paramValue !== null && paramValue.trim() !== '') ? decodeURIComponent( paramValue ) : null; | |
} |
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
map addressValidation(string addressString) | |
{ | |
/** | |
* This snippet: https://gist.github.com/cliffordp/2654cda30ecd0029b1e617a0f7a0c6c9 | |
* | |
* Pass each address parameter (address1, address2, city, state, zip, country) that you have in a comma-separated string, | |
* such as "1234 Easy Street, 55533". | |
* | |
* Will return a results map. Examples of what you could use in Zoho Flow: | |
* ${addressValidation.formattedAddress} is from API but may not include all address pieces (depends on input pieces) |
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
<?php | |
/** | |
* For developers: WordPress debugging mode. | |
* | |
* Change this to true to enable the display of notices during development. | |
* It is strongly recommended that plugin and theme developers use WP_DEBUG | |
* in their development environments. | |
* | |
* For information on other constants that can be used for debugging, | |
* visit the Codex. |
NewerOlder