Skip to content
This repository has been archived by the owner on May 18, 2022. It is now read-only.

Commit

Permalink
Copy files from v1.4.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Mafrans committed Mar 12, 2020
1 parent c459ea2 commit 60e04ec
Show file tree
Hide file tree
Showing 14 changed files with 162 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
{
"extends": "airbnb",
"env": {
"browser": true
},
"globals": {
"SlimSelect": true
},
"rules": {
"func-names": [
"error",
"never"
],
"indent": [
"error",
4
],
"no-console": [
"off"
],
"no-use-before-define": [
"warn"
],
"linebreak-style": [
"off"
]
}
}
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Stadia+
Stadia+ is a chrome extension for Google's Stadia platform. It is designed to improve and extend Stadia's features and upgrade existing ones.

## Installation
Download the extension on [the Chrome Web Store](https://chrome.google.com/webstore/detail/stadia%20-extension/bbhmnnecicphphjamhdefpagipoegijd)!
16 changes: 16 additions & 0 deletions background.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
/* eslint-disable no-undef */

chrome.runtime.onInstalled.addListener(() => {
chrome.declarativeContent.onPageChanged.removeRules(undefined, () => {
chrome.declarativeContent.onPageChanged.addRules([{
conditions: [
new chrome.declarativeContent.PageStateMatcher({
pageUrl: { hostEquals: 'stadia.google.com' },
}),
],
actions: [
new chrome.declarativeContent.ShowPageAction(),
],
}]);
});
});
Binary file added images/Stadia+128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/Stadia+16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/Stadia+32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/Stadia+48.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
14 changes: 14 additions & 0 deletions images/Stadia_logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions images/icons/filter.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions images/icons/search.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions images/icons/stadiaplus.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions images/icons/visibility.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions images/icons/visibility_off.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
69 changes: 69 additions & 0 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
{
"name": "Stadia+ Extension",
"short_name": "Stadia+",
"version": "2.0",
"author": "Malte Klüft (Mafrans)",
"description": "Extends Google's Stadia gaming platform with additional features, such as custom filters and in game network monitoring.",
"permissions": [
"declarativeContent",
"storage",
"https://www.stadiagamedb.com/*",
"https://raw.githubusercontent.com/nilicule/StadiaGameDB/master/data/gamedb.json"
],
"background": {
"scripts": [
"background.js"
],
"persistent": false
},
"page_action": {
"default_icon": {
"16": "images/Stadia+16.png",
"32": "images/Stadia+32.png",
"48": "images/Stadia+48.png",
"128": "images/Stadia+128.png"
}
},
"icons": {
"16": "images/Stadia+16.png",
"32": "images/Stadia+32.png",
"48": "images/Stadia+48.png",
"128": "images/Stadia+128.png"
},
"content_scripts": [
{
"run_at": "document_start",
"matches": [
"https://stadia.google.com/*"
],
"js": [
"util/slimselect.min.js",
"injectors/clockInjector.js",
"injectors/filterInjector.js",
"injectors/networkInjector.js",
"injectors/codecForceInjector.js",
"injectors/storeFilterInjector.js",
"injectors/ratingInjector.js",
"injectors/forceResolutionInjector.js",
"util/UIComponent.js",
"injectors/tabInjector.js",
"util/forceReload.js"
],
"css": [
"resources/stadia+_stylesheet.css",
"resources/slimselect.min.css",
"resources/pretty-checkbox.min.css"
]
}
],
"web_accessible_resources": [
"images/icons/visibility.svg",
"images/icons/visibility_off.svg",
"images/icons/filter.svg",
"images/icons/sun.svg",
"images/icons/search.svg",
"images/icons/stadiaplus.svg",
"util/monitorScript.js"
],
"manifest_version": 2
}

0 comments on commit 60e04ec

Please sign in to comment.