Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/star-hengxing/clipboard-url-clear
clear your clipboard link.
https://github.com/star-hengxing/clipboard-url-clear
clipboard cpp xmake
Last synced: 3 months ago
JSON representation
clear your clipboard link.
- Host: GitHub
- URL: https://github.com/star-hengxing/clipboard-url-clear
- Owner: star-hengxing
- License: gpl-3.0
- Created: 2023-04-30T14:16:26.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-27T12:01:26.000Z (10 months ago)
- Last Synced: 2024-07-30T21:05:44.428Z (6 months ago)
- Topics: clipboard, cpp, xmake
- Language: C++
- Homepage:
- Size: 77.1 KB
- Stars: 4
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Clipboard URL Clear
Now support platform:
- Windows
# Feature
- Anti tracker.
```
bad: https://www.zhihu.com/aaa?bbb
good: https://www.zhihu.com/aaabad: https://tieba.baidu.com/aaa?bbb
good: https://tieba.baidu.com/aaa
```We can customize domain in the `clear_domains.csv` file.
format:
```
domain0,key1,key2
domain1,key1,key2
```key usage:
```
https://www.domain0.com/aaa?key4=value4&key2=value2https://www.domain0.com/aaa?key2=value2
```> `clear_domains.csv` must be in the same directory as the program.
- Convert bilibili short url.
```
https://b23.tv/aaa -> https://www.bilibili.com/bbb
```# Getting started
Download the program from the release page and run it directly in the command line.
# Build
## Prerequisites
- [xmake](https://xmake.io/#/guide/installation)
- Requires C++20 compiler.## Setup
- [Visual Studio](https://visualstudio.microsoft.com) (If you just want to build without developing, download the [Microsoft C++ Build Tools](https://visualstudio.microsoft.com/visual-cpp-build-tools))
- Recommend use [scoop](https://scoop.sh) as package manager on Windows.
```sh
scoop install xmake
```Clone repo, then build and run.
```sh
xmake -y
xmake run
```## Test
```sh
xmake test
```# Credits
- [clip](https://github.com/dacap/clip)
- [cpr](https://github.com/libcpr/cpr)
- [ada](https://github.com/ada-url/ada)
- [fast_io](https://github.com/cppfastio/fast_io)
- [VC-LTL5](https://github.com/Chuyu-Team/VC-LTL5)
- [cppitertools](https://github.com/ryanhaining/cppitertools)