diff --git a/docs/TAB_INTERCEPTION.md b/docs/TAB_INTERCEPTION.md new file mode 100644 index 0000000..08d1cc7 --- /dev/null +++ b/docs/TAB_INTERCEPTION.md @@ -0,0 +1,114 @@ +# Tab and Window Interception System + +## Overview + +This system intercepts attempts to open new tabs or windows in proxied web content (using Scramjet and Ultraviolet web proxies) and redirects them to open in the main iframe instead. + +## How It Works + +The solution uses a multi-layered approach: + +### 1. Iframe Sandbox Attributes +The main proxy iframe in `src/pages/index.astro` includes carefully configured sandbox attributes: +```html +