Skip to content
Written for developers. Just using FluxPlugs? Go to the user guide.

Developer mode

Developer mode runs JavaScript files from a folder on your computer directly in Fluxer’s page. It is for trying ideas the plugin API can’t do yet. It is not a plugin feature: no plugin, ZIP or store listing can turn it on or add a script. Only you can, in FluxPlugs’ own settings.

  1. Open Fluxer Settings → FluxPlugs → Settings.
  2. Under Developer mode, turn on the switch.
  3. Read the warning and select Turn on.

FluxPlugs creates the scripts folder and shows its location, with Open folder and Check again buttons. The folder is developer/scripts inside FluxPlugs’ data folder: %LOCALAPPDATA%\FluxPlugs\developer\scripts on Windows, and ~/.local/share/FluxPlugs/developer/scripts on Linux.

  1. Put a .js file in the scripts folder.
  2. Select Check again. The file is listed as Not allowed yet.
  3. Select Allow, check the file name and its SHA-256 hash in the dialog, and select Allow again.
  4. Select Reload Fluxer.

If the file changes between the dialog opening and your click, FluxPlugs refuses it and asks you to check again.

Once you allow a file, later edits to it run without asking. Select Revoke to stop a file from running, or delete it. If you delete an allowed file and a new one appears under the same name, it waits for you again.

Scripts run once each time Fluxer loads, in the main Fluxer window only, after the page’s content has loaded. They run in file name order, one after another; a script that throws doesn’t stop the next one. The settings page shows, for each file, whether it ran or failed and the error message.

Code that already ran can’t be unloaded, so edits, new files and turning developer mode off take effect after Reload Fluxer (or Ctrl+R).

A script is plain JavaScript in the page, like code typed into the DevTools console:

developer/scripts/channel-title.js
const observer = new MutationObserver(() => {
document.title = `Fluxer · ${location.pathname}`;
});
observer.observe(document.body, { childList: true, subtree: true });

If you can open DevTools, each file appears there as fluxplugs-developer/<file name>, so you can set breakpoints in it. Scripts don’t get the plugin API, Node, Electron or anything else from FluxPlugs. Keep anything you build on FluxPlugs’ own elements or Fluxer’s markup to yourself: either can change in any update.

Limits: only .js files directly in the folder count (no subfolders or links), at most 32 files, 1 MiB each and 4 MiB together. Files over a limit are listed with the reason and don’t run.

A Developer mode label stays at the top of the Fluxer window and says how many scripts ran or failed. FluxPlugs’ Plugins page also shows a notice. A script can hide the label, since it can change anything on the page.

Plugins still run in their sandboxes, but a script can read and change everything they show in the page.

Turn off the Developer mode switch, then select Reload Fluxer. Your scripts and the list of allowed files stay; turning developer mode on again asks for confirmation and lists the files that will run.

If a script breaks Fluxer so badly you can’t reach the settings, close Fluxer and delete developer/settings.json in FluxPlugs’ data folder. Fluxer starts without running any scripts, and developer mode is off.

If your script does something useful that others could use, see whether the capabilities cover it and write it as a plugin instead. If they don’t, open an issue describing what the script needs: that is how new plugin features get added.

FluxPlugs is an independent project, not affiliated with or endorsed by Fluxer.