Closed johnnyutahh closed 2 years ago
Hi, yes I agree that it should be documented a lot better, with examples etc! I will think about improving it. For now you can think about it being sort of like Greasemonkey.
It simply runs javascript files for the current web page. Anything you can do with Greasemonkey you can add to Fastmate to customize your Fastmail experience within the app. No Swift/ObjC knowledge is required for this, it's purely a Javascript extension API.
To answer the questions more specifically:
Fastmate.focusSearch()
.// helloworld.js
alert("Hello! I'm an alert within Fastmate!");
Notification("a fastmate desktop notification", {})
Can someone share more background on the intriguing user-scripts feature?
Some exploratory questions:
The
README.txt
in the.../userscripts
dir is light on details in v1.8.0.I briefly browsed the
master
branch head and did not see anything that immediately answered my questions. I did not look that hard. ;-)Also: I have little to no javascript/Swift/Objective-C experience, but being multi-lingual in similar languages I have historically "figured stuff out" in similar situations without too much fuss for small changes/updates.