| 08:07 | <MikeSmith> | https://stackoverflow.com/questions/52390368/array-state-will-be-cached-in-ios-12-safari-is-bug-or-feature |
| 23:09 | <devsnek> | what if there were a feature where a website could say "make all future links open in this same tab" |
| 23:10 | <devsnek> | maybe even like register a history push state handler |
| 23:10 | <TimothyGu> | window.open()? |
| 23:10 | <TimothyGu> | and <a target="abc"> |
| 23:10 | <devsnek> | for instance music.youtube.com links |
| 23:10 | <devsnek> | would navigate music.youtube.com ui |
| 23:10 | <devsnek> | instead of opening a new tab |
| 23:11 | <TimothyGu> | for (const el of $$('a[href]')) { a.addEventListener('click', () => {...}); } |
| 23:11 | <TimothyGu> | ? |
| 23:11 | <TimothyGu> | s/a/el |
| 23:11 | <devsnek> | no the links come from outside the tab |
| 23:11 | <TimothyGu> | ah |
| 23:11 | <devsnek> | like i click on a music.youtube.com link from discord or my email or something |
| 23:12 | <TimothyGu> | pretty sure <a target> is what you're looking for then |
| 23:12 | <devsnek> | no |
| 23:13 | <devsnek> | so you know how websites can register scheme handlers |
| 23:15 | <TimothyGu> | yeah? |
| 23:15 | <devsnek> | that but instead of registering the protocol, it registers the origin |
| 23:16 | <TimothyGu> | sounds like something Android has |
| 23:16 | <TimothyGu> | and probably iOS |
| 23:16 | <devsnek> | yeah |
| 23:18 | <devsnek> | https://gist.github.com/devsnek/931aa7bb1fdcb384c60d830805b5fba5 |