* Added: Setting to automatically uncheck the "Featured Clips Only" option when viewing a channel's clips. * Added: Chat actions can now use the `urlencode` formatter. Really this should have been available from the beginning, as it makes the Open URL action much more useful. * Fixed: An issue where certain emotes wouldn't appear in the list of available emotes during tab-completion. * Fixed: An error in the stream latency metadata handler when the video player cannot be accessed. * Fixed: An issue where a user's FFZ settings profiles may become corrupt and prevent the FFZ Control Center from functioning correctly. * Fixed: An issue where ephemeral settings profiles may not initialize correctly. * Fixed: The new Hype Chat up-sell at the top of chat not being hidden. Go away Hype Chat no one likes you. * Changed: Add support for an updated pubsub library. * API Added: Prefix modifier support, to make Lordmau5's life easier with the BTTV Emotes add-on. * API Changed: Attempting to alter settings profiles before the settings module has fully initialized will throw an exception. * Maintenance: Update the pnpm lockfile. |
||
---|---|---|
.github | ||
bin | ||
res | ||
socketserver | ||
src | ||
styles | ||
.babelrc | ||
.eslintrc.js | ||
.gitignore | ||
changelog.html | ||
fontello.client.json | ||
fontello.config.json | ||
jsconfig.json | ||
LICENSE | ||
old_changes.html | ||
package.json | ||
pnpm-lock.yaml | ||
README.md | ||
webpack.common.js | ||
webpack.web.common.js | ||
webpack.web.dev.js | ||
webpack.web.dev.prod.js | ||
webpack.web.prod.js |
FrankerFaceZ
Copyright (c) 2018 Dan Salvato LLC
Licensed under the Apache License, Version 2.0. See LICENSE.
Developing
FrankerFaceZ uses node.js to manage development dependencies and to run an HTTP server for development. This project uses the pnpm package manager. To get everything you need:
- Install node.js and pnpm
- Run
pnpm install
within the FrankerFaceZ directory.
From there, you can use npm to build FrankerFaceZ from source simply by
running pnpm build
. For development, you can instruct webpack to watch
the source files for changes and re-build automatically with pnpm start
FrankerFaceZ comes with a local development server that listens on port 8000 and it serves up local development copies of files, falling back to the CDN when a local copy of a file isn't present.
Note: The local development server uses
webpack-dev-server
internally, which self-signs a certificate for hosting content via HTTPS. You will need to ensure your browser accepts a self-signed certificate for localhost.
To make FrankerFaceZ load from your local development server, you must set
the local storage variable ffzDebugMode
to true. Just run the following
in your console on Twitch: localStorage.ffzDebugMode = true;
It should be noted that this project is not a browser extension that you would load in your browser's extensions system. You still need the FrankerFaceZ extension or user-script for your browser.
You can edit the project's icon font using the pnpm font
command. This will
create a new Fontello session, if one doesn't already exist, and open your
default web browser to Fontello so you can edit the font.
If you're running the development server with pnpm start
, you'll be able to
automatically save changes to the Fontello font by clicking Fontello's Export
button. Otherwise, you can use pnpm font:save
to download the changes
from your session.
Editor Settings
Please make sure that your editor is configured to use tabs rather than spaces
for indentation and that lines are ended with \n
. It's recommended that you
configure linting support for your editor as well.
If you're using Visual Studio Code, make sure to install the ESLint extension and add the following to your workspace settings:
{
"eslint.validate": [
"javascript",
"javascriptreact",
"vue"
]
}