An open API service indexing awesome lists of open source software.

https://github.com/krwclassic/opera-custom-homepage-bypass

Bypass for Opera's custom homepage block with address bar auto-focus (ERR_BLOCKED_BY_CLIENT)
https://github.com/krwclassic/opera-custom-homepage-bypass

bat batch bypass javascript js newtabdraft newtabstartpage ntd ntsp opera opera-gx operagx py pyautogui pygetwindow python pythonw websocket websockets windows

Last synced: 4 months ago
JSON representation

Bypass for Opera's custom homepage block with address bar auto-focus (ERR_BLOCKED_BY_CLIENT)

Awesome Lists containing this project

README

        

# Opera `(GX too)` Custom Homepage Bypass

This tutorial is split into 2 parts: one showing how to just change it using NTSP and the second showing how to bypass the `?abfocus` block by Opera.

## Part 1: Changing the Homepage

- Download [NTSP](https://chromewebstore.google.com/detail/new-tab-start-page/mjfahldkpjhcnfbbmdhpjolcjpcfhcpj) from the Chrome Web Store.

- Go to [Configuration](chrome-extension://mjfahldkpjhcnfbbmdhpjolcjpcfhcpj/options.html).

- Fill up `Custom URL` with whatever you want, but I will go with steps needed to use [New Tab Draft](https://chromewebstore.google.com/detail/new-tab-draft/nmfjkeiebceinkbggliapgfdjphocpdh). For that, you need to paste in `chrome-extension://nmfjkeiebceinkbggliapgfdjphocpdh/index.html`.

- Go to the bottom and save.

Now it will work, but it won't focus on the address bar on NTD homepage load because of Opera's blocking.

## Part 2: Websocket Injection `With Python`

First, we need to bypass CSP and File System Integrity and Permissions.

- Go to [Extensions](opera://extensions/) and enable Developer Mode.

> In the step below, we are ultimately disabling updates for NTD, so if you want the newest version, you will need to do these steps and manually update NTD each time!

- Now we need to load NTD locally. Go to `Load Unpacked` and enter NTD's folder:

```text
%APPDATA%\Opera Software\Opera Stable\Default\Extensions\nmfjkeiebceinkbggliapgfdjphocpdh\(your_version)
```

> The above path is Opera-specific. I don't have Opera GX to give the correct path, but it will be similar.

- Now we need to edit NTD's `index.html` because we want to use Python to focus on the address bar using a keyboard shortcut.

- At the end of `index.html`, before `