1
0
Fork 0
mirror of https://github.com/mat-1/matdoesdev.git synced 2025-08-02 14:46:04 +00:00

Update domain hacks post with iframe

This commit is contained in:
mat 2022-07-01 14:33:20 -05:00
parent e1320733ae
commit 083467845d
2 changed files with 3 additions and 2 deletions

View file

@ -25,7 +25,7 @@ export const get: RequestHandler = async () => {
published: blogPost.published, published: blogPost.published,
// HACK: remove images, i WILL parse html with regex and you won't stop me // 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 // TODO: cut off the html so it's not sending a bunch of unnecessary data over the network
html: blogPost.html.replace(/<img.+?\/?>/g, ''), html: blogPost.html.replace(/<(img|iframe).+?\/?>|<\/?(img|iframe)>/g, ''),
css: blogPost.css, css: blogPost.css,
slug: blogPost.slug, slug: blogPost.slug,
} }

View file

@ -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 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) [![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)
<iframe frameborder="0" width="100%" height="500px" src="https://replit.com/@mat1/domain-hack-finder?embed=true"></iframe>
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. 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.