Skip to content

Instantly share code, notes, and snippets.

View cliffordp's full-sized avatar

Clifford cliffordp

View GitHub Profile
@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;
@cliffordp
cliffordp / appsScript.js
Last active July 6, 2024 06:27
Google Sheets Custom Functions: Get YouTube Channel ID or Channel Title from a YT Video ID
// This code: https://gist.github.com/cliffordp/c953c2e4020935727948afe29bd0f192
// Could use YouTube Service instead: https://developers.google.com/apps-script/advanced/youtube
// https://developers.google.com/youtube/v3/docs
const YouTubeApiKey = '...';
// `=getChannelIdFromVideoId( A1 )`
// Could link if you wish: `="https://www.youtube.com/channel/"&B1`
function getChannelIdFromVideoId( videoId ) {
@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 / functions.php
Last active May 29, 2024 16:53
Fix for WP Defender Masked Login not filtering wp_login_url() usage.
<?php
/**
* Fix for WP Defender Masked Login not filtering wp_login_url() usage.
*
* Confirmed not needed with Defender Pro v4.7.1
*
* @link https://gist.github.com/cliffordp/9468791d165d1864c39969d12100d13d This snippet.
*/
add_filter( 'login_url', 'cliff_point_to_custom_login_slug', 999, 3 );
@cliffordp
cliffordp / open-lc-chat-on-clicking-anchor-link.js
Last active May 16, 2024 17:25
High Level Chat Widget: anything with specified class can open the chat widget -- Demo: https://share.getcloudapp.com/d5uylPyE
@cliffordp
cliffordp / redirec-search-to-list-tec.php
Last active April 19, 2024 03:49 — forked from BeardedGinger/redirec-search-to-list-tec.php
TEC | Force list view for search results
<?php
// Force list view for search results
// updated to the code provided by a forum user at https://theeventscalendar.com/support/forums/topic/forcing-list-view-for-search-results/#post-1259085
// UNTESTED!
// from https://gist.github.com/cliffordp/a473ccda4308acb9ac66499de5407c9b
add_action( 'wp_footer', function () {
// If tribe-events.js hasn't been setup, do nothing
if ( ! wp_script_is( 'tribe-events-calendar-script' ) ) {
return;
}
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
@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);
});