Skip to content

Instantly share code, notes, and snippets.

View tjkelly's full-sized avatar

TJ Kelly @ Mxt Media tjkelly

View GitHub Profile
@tjkelly
tjkelly / tjkelly-screaming-frog-exclude-wordpress.txt
Last active January 26, 2023 19:54
WordPress URL Exclude List for Screaming Frog Spider
/**
* WordPress URL Exclude List for Screaming Frog Spider
* @author TJ Kelly - https://tjkelly.com
* @desc Full article — https://tjkelly.com/blog/screaming-frog-exclude-wordpress/
* @date 2021-07-08
*/
https://example.com/wp-content/.*
https://example.com/wp-content/mu-plugins/.*
https://example.com/wp-content/plugins/.*
@tjkelly
tjkelly / SERP URL Extractor, a la ViperChill
Created August 18, 2020 03:10
Based on Glen Allsop's "Advanced Google Chrome Bookmarklets for SEOs" — I got tired of getting the URL slug caught up in list, so I edited the JS a bit.
javascript:(function(){output="<html><head>";output+="<title>SEO SERP Extraction Tool</title>";output+='<style type="text/css">';output+="*{font-family:georgia;word-break:break-all}";output+="</style>";output+="</head><body>";pageAnchors=document.getElementsByTagName("a");divClasses=document.getElementsByTagName("div");var linkcount=0;var linkLocation="";var linkAnchorText="";output+="<h1>Results</h1>";output+='<div id="wrap"><table border="1" cellspacing="0" cellpadding="4"><th>#</th><th>Link</th><th>Anchor</th>';for(i=0;i<pageAnchors.length;i++){if(pageAnchors[i].parentNode.parentNode.getAttribute("class")!="iUh30"){var anchorText=pageAnchors[i].textContent;for(j=0;j<pageAnchors[i].childNodes.length;j++){if(pageAnchors[i].childNodes[j].className=="LC20lb DKV0Md"){var anchorText=pageAnchors[i].childNodes[j].textContent}}var anchorLink=pageAnchors[i].href;var linkAnchor=anchorLink+"\t"+anchorText;var anchorID=pageAnchors[i].id;if(anchorLink!=""){if(anchorLink.match(/^((?!google\.|cache|blogger.com|\.yahoo\.|y
<?php
if (is_single()) {
$categories = get_the_category();
$breadcrumb = the_field('category_breadcrumb', $categories[0]->term_id);
echo $separator;
the_title();
}
@tjkelly
tjkelly / GetMxt-Easy-Hash-Lock.php
Created February 21, 2018 04:52
Easy Hash Lock
<?php
/**
* Easy Hash Lock by Mxt Media
*
* @author TJ Kelly @ Mxt Media - https://getmxt.com
*
* @date 2018-02-20
*
* @desc Lock any page and pop a lead form by adding "#lock" to the URL
*
(function($){
"use strict";
function tjk_fixed_width(){
var widget_area = $('div.widget-area'),
widget_text = widget_area.find('aside.widget.widget_text');
if(window.scrollTop > widget_area.height()){