Skip to content

Instantly share code, notes, and snippets.

View praeducer's full-sized avatar
🏗️
Building open, portable, local-first, and decentralized AI agents.

Paul Prae praeducer

🏗️
Building open, portable, local-first, and decentralized AI agents.
View GitHub Profile
@praeducer
praeducer / find_replace.js
Created May 21, 2015 01:36
A script for replacing all instances of a string in the html of a page after the page is rendered. Even updates file paths. Changes are not permanent. Used for hacky, emergency client-side find-and-replaces that may or may not occur after search bots crawl the page. Could help or hurt SEO. Hey, it was fun to write.
/*
A script for replacing all instances of a string in the html of a page after the page is rendered.
Even updates file paths. Changes are not permanent.
Used for hacky, emergency client-side find-and-replaces that may or may not occur after search bots crawl the page.
Could help or hurt SEO. Hey, it was fun to write.
Warning: This hits every html element on the page so can easily break things and slow things down. Have fun!
@author: Paul Prae
@since: 07/01/2014