Skip to content

lensvol/fl-small-mercies

Repository files navigation

FL Small Mercies

License GitHub release (latest by date) Chrome Web Store Mozilla Add-on User count code style: prettier

screenshot

ko-fi

Set of small "fixers" for the Fallen London UI. Each of them can be disabled or enabled individually via the "Extensions" section on the "Account" screen.

Current features:

  • Display Favours in the right sidebar.
  • Remove "Plans" button and related UI.
  • Fix color and alignment of the navigation buttons in Journal.
  • Add comma after thousands in the currency indicators.
  • Auto-scroll to the storylet after choosing branch.
  • Remove progress bars from discrete and maxed-out sidebar qualities.
  • Add Hinterlands Scrip Icon to a sidebar indicator.
  • Disable storylet that lets you sell your Ship.
  • Remove various UI elements (MotR banner, candles, Fate counter etc.)
  • Remove empty requirements bar from social storylets.
  • Sort various in-game things according to canonical order.
  • Add "Profile" button to the top bar.
  • Hide sidebar qualities not appropriate for the current location.
  • Update relevant currencies on shop transactions.
  • More currencies are displayed in the left sidebar.
  • Two-step confirmation for certain dangerous actions.
  • Hide "1" indicator on single items in your inventory.
  • Show "After Fall" years on Journal snippets.
  • Show prospects for recruitment when cycling Airs of Khanate.
  • Show "Perhaps Not" button at the top in storylets that have 4 branches or more.

NB: This extension is not (yet) whitelisted by Failbetter Games. Use at your own risk!

Development

Basics

First, install Node.js and npm >= 8.5.1.

Second, install necessary packages:

npm install --save-dev typescript ts-loader '@types/chrome'

Third, compile JS version of the plugin:

make build_dist

Enjoy hacking!

Changing Hinterland Scrip icon

Due to the issues with accessing files within extensions from CSS on Firefox, we are forced to inline SVG file itself into the CSS file.

How to do it:

  1. Run src/images/icon_scrip.svg through svgo
  2. Encode contents of that SVG using data URI encoder
  3. Replace contents of src/css/extension.css with the following:
.scrip:before {
    content: "";
    {{ contents of the "Ready for CSS field" }} -6px 1px no-repeat;
    display: inline-block;
    width: 1.2em;
    height: 1.8em;
    margin: 0 0 -0.8em;
    background-size: 1.75em;
}

Manual installation

Chrome

  1. Download .ZIP file from the "Releases" page.
  2. Unzip that file somewhere on your computer.
  3. Open Chrome.
  4. Go to chrome://extensions and
  5. Check the box for "Developer Mode" (top right corner).
  6. Click Load unpacked extension and select the folder where you unzipped the file.

Mozilla Firefox

  1. Download .ZIP file from the "Releases" page.
  2. Unzip that file somewhere on your computer.
  3. Open about:debugging page.
  4. Click Load Temporary Add-On
  5. Select any file in the folder where you unzipped the archive.

Opera

  1. Download .ZIP file from the "Releases" page.
  2. Unzip that file somewhere on your computer.
  3. Open opera:extensions page.
  4. Enable "Developer Mode" (top right corner).
  5. Click Load unpacked and select the folder where you unzipped the file.

Special thanks

  • rahv7 - for having the nerve to goad me into writing this.
  • idyl - for suggesting idea with thousands separator.
  • RagCall - for suggesting idea with removing progress bars on discrete qualities.
  • Saklad5 - for finding the appropriate graphic for Hinterlands Scrip icon.

About

Small collections of patches and fixes for Fallen London UI.

Resources

License

Stars

Watchers

Forks

Sponsor this project

 

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages