From 083467845d0b3cefa785947755c69ee74bd3aa04 Mon Sep 17 00:00:00 2001 From: mat Date: Fri, 1 Jul 2022 14:33:20 -0500 Subject: [PATCH] Update domain hacks post with iframe --- src/routes/blog/index.json.ts | 2 +- src/routes/blog/what-are-domain-hacks/index.svx | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/routes/blog/index.json.ts b/src/routes/blog/index.json.ts index 922d8b2..c107f87 100644 --- a/src/routes/blog/index.json.ts +++ b/src/routes/blog/index.json.ts @@ -25,7 +25,7 @@ export const get: RequestHandler = async () => { published: blogPost.published, // HACK: remove images, i WILL parse html with regex and you won't stop me // TODO: cut off the html so it's not sending a bunch of unnecessary data over the network - html: blogPost.html.replace(//g, ''), + html: blogPost.html.replace(/<(img|iframe).+?\/?>|<\/?(img|iframe)>/g, ''), css: blogPost.css, slug: blogPost.slug, } diff --git a/src/routes/blog/what-are-domain-hacks/index.svx b/src/routes/blog/what-are-domain-hacks/index.svx index eb6aac4..081dd4a 100644 --- a/src/routes/blog/what-are-domain-hacks/index.svx +++ b/src/routes/blog/what-are-domain-hacks/index.svx @@ -23,7 +23,8 @@ An advantage to using a domain hack is that your domain is much shorter and ther Finding a good domain isn't always easy, so I've created a tool hosted on [Repl.it](https://repl.it) that helps you find domain hacks [![Domain Hack Generator](domain-hack-generator.png)](https://repl.it/talk/share/Domain-Hack-Finder/15778) -[Click here to view the domain hack finder](https://repl.it/talk/share/Domain-Hack-Finder/15778) + + At the moment, it uses every TLD currently in existence, which may not be what you want since some top level domains cannot be used by most people as they require you to live in a certain area or work for a certain organization. You can customize it by adding or removing from the tlds.txt file.