As far as I can tell, Lectrote is built using JavaScript with Chromium before being wrapped up as an executable.
I use several extensions for Chrome that are just JavaScript snippets. Is it possible to copy and paste the JavaScript snippets from the extensions into one of the Lectrote files before compiling so that the extension runs on Lectrote?
This is part of my ongoing quest to put a profanity filter on an IF interpreter. I’m especially hoping for a filter for Hugo, but a general one would be even better.
I just figured it out! It’s in elkote.min.js that you need to change the javascript; I couldn’t find it by searching lectrote on github since it’s fetched from the Quixe repository.
I used the bad-words npm package, and modified the insert_text_detecting function to be the following:
var Filter = require(‘bad-words’),
filter = new Filter();