Skip to content

Latest commit

 

History

History
263 lines (153 loc) · 10.9 KB

README.md

File metadata and controls

263 lines (153 loc) · 10.9 KB

User Scripts

English | 简体中文

A user script manager such as Violentmonkey is required to use user scripts.

If you like my GitHub user scripts, be sure to check out Refined GitHub.


YouTube

Screenshot

Add a screenshot button to YouTube (shortcut: s).

  • Click to save. Video title and timestamp will be used as file name
  • Use context menu to copy and more
  • Press Esc to cancel

NOTE Due to implementation limits, the screenshot's color may not be the same as the video's.

Screenshot

Floating YouTube mini player like Bilibili, for conveniently reading comments and more.

  • Drag to move
  • Known issues:
    • Can't resize
    • Doesn't work in Theater mode and Full screen
    • Some controls (progress bar, volume, etc.) doesn't follow cursor. This is due to implementation limits.

Notion

Restore “All” and “Following” updates tab in Notion.

Learn more in this post.

View images in Notion with Medium-style zoom.

Learn more in this post.

Block following analytics services Notion uses:

  • Intercom (note: this also disables contact support)
  • Segment
  • Sentry
  • Splunk
  • Statsig

Enable Notion's native localization for more languages.

Notes:

  • You must be logged in for it to work
  • The script may not work if Notion's code happen to run before it. Open https://www.notion.so or keep refreshing if the issue happens.

Screenshot

Inject into Notion desktop app

Scripts can be used in Notion desktop app by injecting them into preload.js. This need to be done every time the app updates.

For example, to install Notion Medium Zoom into macOS Notion app:

curl https://cherry.xuann.wang/notion-medium-zoom.user.js >> /Applications/Notion.app/Contents/Resources/app/renderer/preload.js

For Windows Notion app, preload.js is located at %LocalAppData%\Programs\Notion\resources\app\renderer\preload.js.

Make Danbooru great again.

  • More keyboard shortcuts. New shortcuts can be found on Danbooru's Keyboard Shortcuts page.
  • esc to clear search boxes
    • esc to unfocus search boxes when they are clear
  • Expandable tag list
  • Use Gelbooru to search for more than 2 tags when Danbooru doesn't allow it
  • Alt + click to toggle tag in search box
  • Improvements for "Related Tags"
    • Restore Meta / Shift click behavior of tag links
    • Alt + click to (de)select all tags in the same type
  • Improvements for safebooru.donmai.us
    • Show "Safebooru" as site name to easily recognize it
    • Link hidden post notice to current page/post
  • Make post previews draggable

A campus network helper for Nanchang University. Supports NCU-5G/NCU-2.4G & NCUWLAN.

Also check out NCU Net CLI.

Features

  • Jump-free login
  • Remember username & password
  • Auto reconnect
  • Connection logs

NOTE You can configure timeout and retry interval in the script.

GitHub

Power GitHub's "Go to file" feature (t) with fzf, with support for "extended-search mode".

Screenshot

Note: Real-time highlighting of currently-matched items is not supported at the moment.

Implement refined-github#5052

Enable native hovercards for most GitHub links of the following types:

  • Repository file trees
  • Issues & pull requests
  • Discussions
  • Commits
  • Profiles (users & organizations)

Ported from refined-github#4770

Hides "Public" repository badge or removes "Public" prefix.

Screenshot

Implement refined-github#4906

Add avatars in GitHub's issue and pull request list.

Screenshot

Warning Deprecated. Use Refined GitHub's repo-avatars feature.

Implement refined-github#5546

Add avatars to GitHub repositories, like on official mobile app.

Screenshot

Warning Deprecated. GitHub has implemented most changes.

Implement refined-github#5007

Tweak certain GitHub icons' color and style.

Before After
Before After

Implement refined-github#4132

Replace camo.githubusercontent.com image links on GitHub with image's data-canonical-src attribute.

Automatically unsubscribe from all closed/merged issues/PR.

Just install the script and head to Subscriptions.

NOTE

  • There is no way for the script to figure out what thread you want to keep subscribing to, proceed with caution. Use the "Reason" dropdown if you only want to clean selective subscriptions.
  • If the script becomes dumb and only unsubscribe one thread at a time, then manually turn to next page first.
  • If the script stops working, you may have an server error or hit a rate limit. Try again later.

Implement refined-github#3382

Screenshot

Show precise watch/star/fork counts on hover. Compatible with Refined GitHub's hide-watch-and-fork-count feature.

Implement refined-github#3426

Make profile README's header link to the README instead of the repository.

Warning Deprecated. Use GitHub's Command palette instead.

Ported from refined-github#3804.

Screenshot

Add theme preferences dropdown to GitHub header.

Also available as a bookmarklet.

Implement refined-github#4097

Adds a button to Stargazers page to view star history on https://star-history.t9t.io/.

Implement octotree#992

Before:

Screenshot of before

After:

Screenshot of after

Display a logo in the bottom right corner linked to the source repository when visiting a site hosted on the following Git hosting services:

Show media on t.me as regular elements. Make context menu, drag and drop, etc. work on them.

Auto fix loading of sinaimg.cn images by using no-referrer referrer policy.

Test Page

Redirects