Skip to content

Commit

Permalink
whole buncha doohickeys and knick-knacks
Browse files Browse the repository at this point in the history
  • Loading branch information
hdboye committed Aug 22, 2023
1 parent 897e1f9 commit 7e526e1
Show file tree
Hide file tree
Showing 5 changed files with 42 additions and 12 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/images
44 changes: 36 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,46 @@
# steam-url-opener

Chromium extension that opens URLs in the Steam Client.
Chromium extension that automatically opens Steam pages in the Steam app.

Currently supports any chromium-based browser. FYI you can always inspect source code and build yourself if you don't trust my pre-built crx.
# Features

Make an issue if you have a feature request, or code it in yourself and make a PR! If it's good i'll almost always accept it.
- Open steam pages in Steam automatically
- Customize which pages you want redirected and which not
- Ask before redirecting
- Close the original page once it's redirected
- Redirect Steam widgets, if enabled

## Installation
Go to the extensions menu on your chromium browser, enable Developer Mode then drag [the CRX file from Releases](https://github.com/hdboye/steam-url-opener/releases/latest) into the page. Now restart the browser (or don't) and enjoy!

## Build it yourself
[Download the source](https://github.com/hdboye/steam-url-opener/archive/refs/heads/master.zip) from this github, or if you want a specific version go [here](https://github.com/hdboye/steam-url-opener/releases) and download the source code for whatever version you want. Unzip it then go to the extension menu on your chromium browser. Enable Developer Mode then press Pack Extension and select the folder where the source is.
*I'm currently working on getting this into the Opera store! I'll try to get it onto the Chrome web store next.*

There are currently 2 ways to install the extensions, one works for everyone and one works for Linux only. This is because Google hates me, and because you can't use extensions from CRX files if they aren't from the Google Web Store except if you're on Linux.

Go to the extensions page in your Chromium-based browser. This should be on the 3 lines at the top right corner, or for Opera GX users the Menu button on the top left.

![](https://cdn.discordapp.com/attachments/544247815908360202/1143675491392434348/image.png)

Toggle Developer Mode, this will allow us to install custom extensions.

![1692744354832](https://cdn.discordapp.com/attachments/544247815908360202/1143677727791136918/image.png)
![1692744366975](https://cdn.discordapp.com/attachments/544247815908360202/1143677734074191913/image.png)

### Regular Method

You can also load the source instead of packing it into crx by just pressing Load Unzipped Extension (idk what it is in english).
Download [the Source Code (zip) from Releases](https://github.com/hdboye/steam-url-opener/releases/latest). Once it's downloaded, unzip the file, then go back to the extensions browser and click Load Unpacked.

![1692745495342](https://cdn.discordapp.com/attachments/544247815908360202/1143682103381336204/image.png)

Click on the folder you just got out of unzipping. **Make sure it's the folder with the contents of the extension inside, and NOT the folder that has a folder in it which has the contents.** Once you've clicked that, click Select Folder in your file explorer (or Select or Continue, depends on what OS you use) and the extension should be loaded in! Restart the browser (optional but recommended) and enjoy!

### Linux Method

Download [the CRX file from Releases](https://github.com/hdboye/steam-url-opener/releases/latest). Once it's downloaded, open the file in File Explorer. If you have found the file, grab it then drag it onto the extensions page. *You can drag it anywhere you want, as long as it's on the page.*

Restart the browser (optional but recommended) and enjoy!

## Build the CRX yourself

[Download the source](https://github.com/hdboye/steam-url-opener/archive/refs/heads/master.zip) from this github, or if you want a specific version go [here](https://github.com/hdboye/steam-url-opener/releases) and download the source code for whatever version you want. Unzip it then go to the extension menu on your chromium browser. Enable Developer Mode then press Pack Extension and select the folder where the source is.

There's also [a webpage version of this README](https://hdboye.github.io/steam-url-opener) but i don't know why you'd wanna use it.
*P.S. There's also [a webpage version of this README](https://hdboye.github.io/steam-url-opener) but I don't know why you'd wanna use it.*
Binary file added icons/icon64.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 4 additions & 3 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
{
"name": "Steam URL Opener",
"version": "1.4.1",
"version": "1.4.2",
"manifest_version": 3,
"description": "Will prompt an \"Open in Steam\" message when you open a steamcommunity.com page (or, if allowed, will open automatically)",
"description": "Lets you automatically open Steam URLs in the Steam app.",
"homepage_url": "https://github.com/hdboye/steam-url-opener",
"icons": {
"16": "icons/icon16.png",
"48": "icons/icon48.png",
"64": "icons/icon64.png",
"128": "icons/icon128.png"
},
"background": {
Expand All @@ -18,5 +19,5 @@
"action": {
"default_popup": "popup.html"
},
"host_permissions": ["https://*.steamcommunity.com/*"]
"host_permissions": ["https://*.steamcommunity.com/*, https://*.steampowered.com/"]
}
2 changes: 1 addition & 1 deletion popup.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ <h3>Redirects enabled for:</h3>
<h4>Options:</h4>
<input type="checkbox" id="closepage" selected> <label for="closepage"> Close original page on redirect</label><br>
<input type="checkbox" id="anywidget"> <label for="anywidget"> Redirect widgets anyway</label><br>
<input type="checkbox" id="askfirst"> <label for="askfirst"> Ask before opening on Steam (Finicky)</label><br>
<input type="checkbox" id="askfirst"> <label for="askfirst"> Ask before opening on Steam</label><br>
<div></div>
<p>created by hdboye :D | disc: ukvi</p>
</body>
Expand Down

0 comments on commit 7e526e1

Please sign in to comment.