mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-08-30 01:40:55 +00:00
Initial commit for modular FrankerFaceZ rewrite.
This commit is contained in:
parent
b74fdaa22b
commit
f1377bc989
27 changed files with 2717 additions and 1034 deletions
27
Chrome Extension/script.js
Normal file
27
Chrome Extension/script.js
Normal file
|
@ -0,0 +1,27 @@
|
|||
// ==UserScript==
|
||||
// @name FrankerFaceZ
|
||||
// @namespace FrankerFaceZ
|
||||
// @include *.twitch.tv/*
|
||||
// @exclude api.twitch.tv/*
|
||||
// @grant none
|
||||
// @icon http://cdn.frankerfacez.com/icon32.png
|
||||
// @version 1.56
|
||||
// ==/UserScript==
|
||||
|
||||
function ffz_init()
|
||||
{
|
||||
var script = document.createElement('script');
|
||||
script.type = 'text/javascript';
|
||||
|
||||
var debug = localStorage.ffzDebugMode == "true";
|
||||
|
||||
if ( debug )
|
||||
script.src = "//localhost:8000/script/script.js";
|
||||
else
|
||||
script.src = "//cdn.frankerfacez.com/script/script.min.js";
|
||||
|
||||
var head = document.getElementsByTagName('head')[0];
|
||||
if(head) head.appendChild(script);
|
||||
}
|
||||
|
||||
ffz_init();
|
Loading…
Add table
Add a link
Reference in a new issue