Skip to content

Instantly share code, notes, and snippets.

View cliffordp's full-sized avatar

Clifford cliffordp

View GitHub Profile
@cliffordp
cliffordp / 1-Notes.txt
Last active November 1, 2024 16:20
GHL Menu Sticky Scrolling Menu (watch the video in Notes.txt)
Source: https://www.facebook.com/groups/gohighlevel/posts/2356583604801161/
Here is the code that enables a sticky menu that eases in and out upon scroll. Just copy/paste in your Website > Settings Head and Body tracking code fields, then follow my quick video here to set your sticky menu up in HighLevel:
https://www.loom.com/share/fd0d5c87f377401d8e589c5d6a4107ce?sid=7745df88-84b4-4aef-9b05-ee86947b73e5
If you need any help, shoot me an email: [email protected].
T-WORX, Inc.
Tracy Wittenkeller
@cliffordp
cliffordp / script.js
Created October 11, 2024 17:45
Create a Google Sheets `=GPT("...")` function with your OpenAI API Key
// Source: https://jonathanboshoff.com/free-gpt-4-sheets-alternative/
function GPT(Input) {
const GPT_API = "AAAAAAAAAAAAA"; // Replace with your actual API key
const BASE_URL = "https://api.openai.com/v1/chat/completions";
const headers = {
"Content-Type": "application/json",
"Authorization": `Bearer ${GPT_API}`
};
@cliffordp
cliffordp / 1-head-tracking-code.html
Last active June 28, 2024 14:05
Get image file IDs from GoHighLevel Media Storage list view and display them in a sexy, smooth, cross-browser FsLightbox
<style id="fslightbox-customizations">
a.open-gallery > img {
width: 80%;
max-width: 745px;
border: 3px dashed white;
}
.fslightbox-container {
background: black;
}
</style>
@cliffordp
cliffordp / auto-open-ghl-chat-widget.js
Last active May 30, 2024 19:50
Automatically open (and keep open) the GoHighLevel chat widget
<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();
@cliffordp
cliffordp / list-direct-message-spam-phrases.txt
Last active November 3, 2024 09:44
List of social media spam DM phrases for GHL workflow snapshot. See https://www.youtube.com/watch?v=heQhBzTfPec
=====
Snapshot created with these on 2024-04-16
=====
1k =
1k follower
1k=
about page restriction
account will be deactivated
are you interested to grow your
automatically disabled your ads
@cliffordp
cliffordp / functions.php
Last active March 14, 2024 17:27
Shortcode: [copythis] write to clipboard
<?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);
});
@cliffordp
cliffordp / ghl-custom-css-via-custom-values.css
Last active February 26, 2024 21:41
GHL website custom CSS via Custom Values
<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 */
<script id="bizname-enforce-default-url-query-param">
// Source: https://gist.github.com/cliffordp/f4aa43badd4d99cee537a82ff0e5ab3b
// Related: 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');
// If 'bizname' query param is not present or is an empty string, redirect.
@cliffordp
cliffordp / bypass-cloudflare-email-protection.js
Created February 16, 2024 16:31 — forked from neopunisher/bypass-cloudflare-email-protection.js
How to circumvent Cloudflare's [email protected] thing, WITHOUT enabling Javascript
// 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;