Skip to content

Commit 9def081

Browse files
committed
docs: add readme
1 parent 290ad7e commit 9def081

6 files changed

Lines changed: 125 additions & 3 deletions

File tree

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22

33
[![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/rxliuli)
44

5-
- [Reddit Ctrl+Enter Sender](./packages//reddit-ctrl-enter-sender/README.md): Send Reddit comments with Ctrl+Enter.
6-
- [YouTube Music Background Play](./packages/youtube-music-background-play/README.md): Enable background play on YouTube Music.
7-
- [TVTropes Anti-Adblock Bypass](./packages/tvtropes-anti-adblock-bypass/README.md): Bypass anti-adblock detection on TVTropes.org.
5+
- [Reddit Ctrl+Enter Sender](./src/plugins/reddit-ctrl-enter-sender/README.md): Send Reddit comments with Ctrl+Enter.
6+
- [Reddit Search Options Persist](./src/plugins/reddit-search-options-persist/README.md): Keep Reddit search filters when searching with new keywords.
7+
- [YouTube Music Background Play](./src/plugins/youtube-music-background-play/README.md): Enable background play on YouTube Music.
8+
- [TVTropes Anti-Adblock Bypass](./src/plugins/tvtropes-anti-adblock-bypass/README.md): Bypass anti-adblock detection on TVTropes.org.
89

910
## FAQ
1011

src/plugins/hztsg-wifi/README.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Hangzhou Library Wifi Auto Login
2+
3+
A userscript that enables automatic login to the Hangzhou Library Wifi.
4+
5+
## Installation
6+
7+
1. Install a userscript manager like [Tampermonkey](https://www.tampermonkey.net/) or [Greasemonkey](https://www.greasespot.net/)
8+
2. Download the userscript from <https://github.com/rxliuli/userscripts/releases/latest/download/hz-library-wifi.user.js>
9+
10+
## How to Use
11+
12+
1. **Visit the Login Page**: Navigate to the Hangzhou Library Wifi login page
13+
2. **Start Typing**: Enter your library account and password
14+
3. **Use the Shortcut**: Press Ctrl+Enter (Windows/Linux) or Cmd+Enter (Mac)
15+
4. **Auto Submit**: The script automatically finds and clicks the appropriate submit/save button
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Reddit Ctrl+Enter Sender
2+
3+
A userscript that enables quick submission of replies, comments, or edits on Reddit using the Ctrl+Enter (Windows/Linux) or Cmd+Enter (Mac) keyboard shortcut.
4+
5+
## Features
6+
7+
- **Universal Shortcuts**: Supports Ctrl+Enter (Windows/Linux) and Cmd+Enter (Mac)
8+
- **Smart Button Detection**: Automatically identifies submit/save buttons on the current page
9+
- **Multi-level Search**: Prioritizes buttons within the current editing area, falls back to global page buttons
10+
- **Multiple Scenarios**: Works with comment replies, edit submissions, post creation, and more
11+
- **Lightweight**: No permissions required, works entirely in the browser
12+
13+
## Installation
14+
15+
1. Install a userscript manager like [Tampermonkey](https://www.tampermonkey.net/) or [Greasemonkey](https://www.greasespot.net/)
16+
2. Download the userscript from <https://github.com/rxliuli/userscripts/releases/latest/download/reddit-ctrl-enter-sender.user.js>
17+
18+
## How to Use
19+
20+
1. **Visit Reddit**: Navigate to any Reddit page (the script works on `https://www.reddit.com/**`)
21+
2. **Start Typing**: Enter your content in a comment box, reply field, or edit area
22+
3. **Use the Shortcut**: Press Ctrl+Enter (Windows/Linux) or Cmd+Enter (Mac)
23+
4. **Auto Submit**: The script automatically finds and clicks the appropriate submit/save button
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Reddit Search Options Persist
2+
3+
A userscript that keeps your Reddit search filters (sort, time range, type) when searching with new keywords.
4+
5+
## What it does
6+
7+
Reddit resets all search options every time you enter a new search term. This userscript intercepts the search input and preserves your filter preferences (sort order, time range, search type) when you perform a new search.
8+
9+
## Features
10+
11+
- **Preserves Sort Order**: Keeps your sort preference (relevance, hot, top, new, comments)
12+
- **Preserves Time Range**: Maintains time filter (hour, day, week, month, year, all time)
13+
- **Preserves Search Type**: Retains type filter (posts, comments, communities, people)
14+
- **Subreddit & Site-wide**: Works in both subreddit-specific and global Reddit search
15+
- **Lightweight**: Minimal overhead, works entirely in the browser
16+
17+
## Installation
18+
19+
1. Install a userscript manager like [Tampermonkey](https://www.tampermonkey.net/) or [Greasemonkey](https://www.greasespot.net/)
20+
2. Download the userscript from <https://github.com/rxliuli/userscripts/releases/latest/download/reddit-search-options-persist.user.js>
21+
22+
## How to Use
23+
24+
1. **Visit Reddit**: Navigate to any Reddit page
25+
2. **Perform a Search**: Use the search bar with your preferred filters (sort, time, type)
26+
3. **Search Again**: Enter a new search term and press Enter
27+
4. **Filters Preserved**: Your previous filter settings are automatically applied to the new search
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# TVTropes Anti-Adblock Bypass
2+
3+
A userscript that bypasses anti-adblock detection on TVTropes.org, allowing you to browse the site with your adblocker enabled.
4+
5+
## What it does
6+
7+
This userscript intercepts and modifies scripts that detect ad blockers on TVTropes, preventing the anti-adblock warning from appearing. It also blocks ad-related scripts from loading.
8+
9+
## Installation
10+
11+
1. Install a userscript manager like [Tampermonkey](https://www.tampermonkey.net/) or [Greasemonkey](https://www.greasespot.net/)
12+
2. Download the userscript from <https://github.com/rxliuli/userscripts/releases/latest/download/tvtropes-anti-adblock-bypass.user.js>
13+
14+
## How it works
15+
16+
The userscript runs at document-start and:
17+
18+
- Intercepts script loading via DOM manipulation hooks and MutationObserver
19+
- Blocks ad scripts from Google (googlesyndication, doubleclick, googletagservices) and BigCrunch
20+
- Modifies the anti-adblock detection script to prevent it from triggering
21+
22+
## Disclaimer
23+
24+
This userscript is for personal use. Please consider supporting TVTropes by subscribing or allowing ads if you find their content valuable.
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# YouTube Music Background Play
2+
3+
A userscript that prevents YouTube Music from pausing playback when running in background tabs.
4+
5+
## What it does
6+
7+
This userscript intercepts browser APIs that YouTube uses to detect if you're actively watching, allowing music to continue playing when you switch to other tabs.
8+
9+
## Installation
10+
11+
1. Install a userscript manager like [Tampermonkey](https://www.tampermonkey.net/) or [Greasemonkey](https://www.greasespot.net/)
12+
2. Download the userscript from <https://github.com/rxliuli/userscripts/releases/latest/download/youtube-music-background-play.user.js>
13+
14+
## Limitations
15+
16+
- **Unstable**: YouTube may update their detection methods at any time, causing this userscript to stop working
17+
- **Computer sleep**: Playback will still pause when your computer goes to sleep or hibernates
18+
- **iOS Safari**: This userscript does not work on iOS Safari due to platform-specific restrictions
19+
- **Updates**: May break when YouTube updates their site
20+
21+
## How it works
22+
23+
The userscript overrides the following browser APIs:
24+
25+
- `document.hidden` - always returns `false`
26+
- `document.visibilityState` - always returns `'visible'`
27+
- `document.hasFocus()` - always returns `true`
28+
- Blocks visibility change and focus events
29+
30+
## Disclaimer
31+
32+
This userscript is for personal use. Use at your own risk.

0 commit comments

Comments
 (0)