A small plugin loader for League Client, supports CommonJS modules.
- Customize League Client
- Unlock insecure options
- Support built-in and remote DevTools
- Support custom plugins
- Support CommonJS modules
- Interacting LCU APIs be easier
- Download the latest release and extract it (or build from source).
- Run League Loader.exe
- Select League Client path
- Click Install
- Launch League Client
After League is ready, just click "Open DevTools" to open League Client DevTools.
We also support insecure options for plugins, do not use it if you do not want to be banned.
To add a plugin, just create a .js
file in the plugins folder.
// hello.js
console.log('Hello, League Client!')
All .js files in root of plugins folder will be executed after League ready, except file name starts with underscore.
plugins/
_util.js
demo.js ; will be executed after League starts.
You can use ES6 and CommonJS modules in your plugins.
// _util.js
module.exports = {
greet: () => console.log('Hello, world')
}
// demo.js
const util = require('./_util')
util.greet()
We also support to require JSON and text files.
require('data.json') // -> parsed JSON
require('data.raw') // -> string
To store data globally, you can use window
object or global
.
window.my_str = 'ABC'
global.my_num = 100
To open DevTools, just call:
window.openDevTools()
We have an example which modifies the settings UI to preppend a DevTools opener, see dev-tools.js.
You should use Visual Studio Code to develop your plugins, it supports intellisense, linter and autocomplete for modules.
League Client uses CEF 91/Chromium 91. The JS runtime is V8 engine in browser, that means you are writing JS for web browser.
When interacting with the DOM, you should add your code to onload
or DOMContentLoaded
event of window
.
This project uses Visual Studio 2017 with
- Windows SDK 8.1 for C++
- .Net Framework SDK 4.5 for C#
You can also use VS2015+ and different SDK version.
Build steps
- Open league_loader.sln in VS
- Right click on the solution -> Restore Nuget Packages
- Set arch to Any CPU or x86
- Right click on each project -> Build
See HOW_IT_WORKS for details.