AhFei

AhFei

简洁的写作需要勇气

1Click2OpenALL - Open all URLs with one click, an open-source tool that supports Docker installation.

1Click2OpenALL is a tool that allows you to open all the URLs in an input box with just one click. It processes each line, extracts the URLs, and opens them all in the browser, saving you the repetitive work of copying and opening URLs manually and improving efficiency.

Project address: AhFeil/1Click2OpenALL: Open all URLs in the input box with one click. (github.com)

Experience website: OneClickOpen (vfly2.com) (The server network is not good, so the experience may be slow)

Usage#

For the first time, click on the link "Get Popup Permission" and allow pop-ups.

Paste the content containing URLs into the input box, and then click "Open Websites" to open them all.

image

During the week, I usually record the URLs of interesting projects I come across in places like Telegram channels, and then open them all at once using this tool on Saturdays.

Supported Formats#

Each line is checked. The following are listed in order of matching:

  1. A line of text in md format containing URLs will extract all the URLs in it.
  2. Use regular expressions to find strings in the format http://xx.xx/xxx and https://xx.xx/xxx.
  3. A line with a pure URL, the http:// and https:// can be omitted, and if it is a Chinese domain name, it will be discarded.
  4. Ignore empty lines

Recommended usage: each line is a pure URL or a line of md format containing URLs, and different lines can have different formats, as shown below:

https://blog.vfly2.com/

baidu.com

[Providing AhFei's Self-Hosted Services - Emby, Bitwarden, and more - 承飞之咎 (vfly2.com)](https://blog.vfly2.com/2024/01/provide-ahfeis-self-hosted-services-emby-bitwarden-and-more/)

Here are some I found when looking for vscode articles:
The above should have matched a line with a URL, but Chinese domain names are rarely used, and it is also common to have a section of text without URLs in between, so Chinese domain names are discarded to avoid this situation.

- Rime Input Method Word Library Expansion: https://zhuanlan.zhihu.com/p/471412208

Docker Installation One-Click Open#

Copy and execute all, one-click to create a working directory

myserve="1Click2OpenALL"
sudo ufw allow 7500/tcp comment $myserve
mkdir -p ~/myserve/$myserve && cd ~/myserve/$myserve

Customize according to the comments, and then execute, one-click to create the docker-compose.yml file

cat > docker-compose.yml << EOF
---

version: "3"

services:
  oneclickopen:
    image: ahfeil/1click2openall:latest   # Manually create and upload the image, it must be able to run
    container_name: oneclickopen
    restart: always
    ports:
      - 7500:7500
    environment:
      - 1Click2OpenALL_SECRET="your_secrec_key"   # Modify the encryption session key, it is also fine not to modify
EOF

Pull the image

docker compose pull

Start (now you can access the webpage at ip:7500)

docker compose up -d

Shutdown

docker compose down
Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.