This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name LiveFFN meta viewport | |
| // @version 2025-02-09 | |
| // @description Adds meta viewport tag to LiveFFN | |
| // @author MaelFr | |
| // @match https://www.liveffn.com/* | |
| // @icon https://www.liveffn.com/media/img/apple-touch-icon.png | |
| // @grant none | |
| // ==/UserScript== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Available variables: | |
| // - Machine | |
| // - interpret | |
| // - assign | |
| // - send | |
| // - sendParent | |
| // - spawn | |
| // - raise | |
| // - actions |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // Available variables: | |
| // - Machine | |
| // - interpret | |
| // - assign | |
| // - send | |
| // - sendParent | |
| // - spawn | |
| // - raise | |
| // - actions |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const door = Machine({ | |
| id: 'tryTryAgain', | |
| initial: 'idle', | |
| context: { | |
| tries: 0 | |
| }, | |
| states: { | |
| idle: { | |
| on: { TRY: 'trying' } | |
| }, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const door = Machine({ | |
| id: 'door', | |
| initial: 'locked', | |
| states: { | |
| locked: { | |
| on: { | |
| UNLOCK: 'unlocked' | |
| } | |
| }, | |
| unlocked: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const door = Machine({ | |
| id: 'door', | |
| initial: 'locked', | |
| states: { | |
| locked: {}, | |
| unlocked: {}, | |
| closed: {}, | |
| opened: {} | |
| } | |
| }) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const vendingMachineMachine = Machine( | |
| { | |
| id: 'vendingMachine', | |
| initial: 'idle', | |
| context: { | |
| deposited: 0 | |
| }, | |
| states: { | |
| idle: { | |
| on: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const fetchMachine = Machine({ | |
| id: 'alarmClock', | |
| initial: 'idle', | |
| states: { | |
| idle: { | |
| on: { | |
| ALARM: 'alarming' | |
| } | |
| }, | |
| alarming: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const idleMachine = Machine({ | |
| id: 'idle', | |
| initial: 'idle', | |
| states: { | |
| idle: { | |
| entry: 'logEntry', | |
| exit: 'logExit' | |
| }, | |
| }, | |
| on: { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const fetchMachine = Machine({ | |
| id: 'lightbulb', | |
| initial: 'unlit', | |
| states: { | |
| unlit: { | |
| on: { | |
| TOGGLE: 'lit', | |
| BREAK: 'broken' | |
| } | |
| }, |
NewerOlder