Skip to content

Commit b27bae9

Browse files
committed
Update built plugins
1 parent d9c3c05 commit b27bae9

File tree

3 files changed

+45
-0
lines changed

3 files changed

+45
-0
lines changed
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Automatically Accept Custom Launch Arguments
2+
3+
Now that's a mouthful, isn't it?
4+
5+
Are you tired of seeing popups like this?
6+
7+
![popup demonstration](./images/popup.png)
8+
9+
Me too! So I decided to make this simple plugin which will automatically confirm this popup.
10+
11+
**Disclaimer**: This plugin affects/interferes with a feature of steam designed to keep you safe. Use at your own risk, and only if you understand what you are doing.
12+
13+
In the future I plan to add options to allow/deny specific games or launch arguments.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"$schema": "https://raw.githubusercontent.com/SteamClientHomebrew/Millennium/main/src/sys/plugin-schema.json",
3+
"name": "adamraichu.auto-accept-custom-launch-args",
4+
"common_name": "Auto Accept Custom Launch Arguments (v1.2.1)",
5+
"description": "WARNING: This plugin affects/interferes with a feature of steam designed to keep you safe. Use at your own risk, and only if you understand what you are doing.",
6+
"useBackend": false
7+
}
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
const pluginName = "steam-db";
2+
function InitializePlugins() {
3+
/**
4+
* This function is called n times depending on n plugin count,
5+
* Create the plugin list if it wasn't already created
6+
*/
7+
!window.PLUGIN_LIST && (window.PLUGIN_LIST = {});
8+
// initialize a container for the plugin
9+
if (!window.PLUGIN_LIST[pluginName]) {
10+
window.PLUGIN_LIST[pluginName] = {};
11+
}
12+
}
13+
InitializePlugins()
14+
const __call_server_method__ = (methodName, kwargs) => Millennium.callServerMethod(pluginName, methodName, kwargs)
15+
const __wrapped_callable__ = (route) => MILLENNIUM_API.callable(__call_server_method__, route)
16+
var millennium_main=function(e){"use strict";return e.default=async function(){},Object.defineProperty(e,"__esModule",{value:!0}),e}({});
17+
18+
function ExecutePluginModule() {
19+
// Assign the plugin on plugin list.
20+
Object.assign(window.PLUGIN_LIST[pluginName], millennium_main);
21+
// Run the rolled up plugins default exported function
22+
millennium_main["default"]();
23+
MILLENNIUM_BACKEND_IPC.postMessage(1, { pluginName: pluginName });
24+
}
25+
ExecutePluginModule()

0 commit comments

Comments
 (0)