Install
imDaniX / deep-rock-wiki

Published:

Version: 1.2.0+b5c992d

Summary: Transform https://deeprockgalactic.wiki.gg pages into https://deeprock.wiki link

Groups:

Homepage: https://github.com/imDaniX/deep-rock-wiki

License: MIT; https://opensource.org/license/mit

Antifeature: unspecified

deep-rock-wiki

A browser userscript that generates shortened wiki links for the Deep Rock Galactic games.

Press Ctrl+C anywhere on a deeprockgalactic.wiki.gg page to copy a shortened deeprock.wiki link to your clipboard. The script only activates when no text is selected on the page.

The script uses the wiki's search functionality, so it is case-insensitive and will lead to a search page if the requested page does not exist.

How It Works

The script listens for the copy event on any deeprockgalactic.wiki.gg page. When you press Ctrl+C with no text selected, it detects which game wiki you are viewing from the URL path, extracts the current page title, generates the corresponding shortened URL, and fills the clipboard contents with the shortened link.

The shortened links use Cloudflare Rules to rewrite and redirect requests back to the correct page on deeprockgalactic.wiki.gg. The links resolve as follows:

  • If there are no parameters after the / (e.g., https://deeprock.wiki/), the link redirects to the respective game's main page.
  • Otherwise, the path is used to redirect to https://deeprockgalactic.wiki.gg/wiki/Special:Search?search={query} with the respective namespace and the value from the shortened URL.

Supported Domains

Game Original Domain Shortened Domain
Deep Rock Galactic deeprockgalactic.wiki.gg deeprock.wiki
Deep Rock Galactic: Survivor deeprockgalactic.wiki.gg/wiki/Survivor:* survivor.deeprock.wiki
Deep Rock Galactic: Rogue Core deeprockgalactic.wiki.gg/wiki/Rogue_Core:* rc.deeprock.wiki

Rating: 0