Any kind of collaboration is welcome. Open issues to report bugs, ask questions, or just talk about the project.
Source code might be a bit unusual since I'm usually trying out new things, like FPish style.
The following workflows represent how I currently develop
I'm usually trying out new things, like FPish style
These instructions are evolving, the workflow is focused on my environment setup and what I learned so far.
I use mostly Firefox as an IDE. There are a few alternatives to work.
In the Style Editor tab of DevTools, load pathToProject/style.css
. Anything you write here is automatically applied. Hit ctrl + s
to save changes to the file.
For quick exploration, make changes in the Inspector
tab, and after you're done, click the Changes subtab (right pane) and everything you made will be there to be copied.
In the console tab of DevTools, CTRL + B will give you near the samething as Style Editor for scripts. Use var
instead of const
or let
for easy overriding without having to reload the page. CTRL + ENTER will run everything in the window or just yopur selection
- save the page on a local folder
- edit the HTML and link your userscript
- open the HTML in Live Preview
- now every save in the script reloads the preview
- FF: run build, about:debugging, This Firefox, Load Temporary Addon
- Chrome: run build && run adjustManifestV3, More Tools -> Extensions, Load unpacked
After the logic is done (npx run
will call run.sh):
-
copy the folder of a similar project to use as a base
- delete manifest.js addonIds
- delete .git folder
- don't delete icon.svg (it will be replaced)
-
create an icon
npx run editIcon
or https://app.corelvector.comnpx run generateManifestIcons
-
take a 1280 x 800 screenshot
- chrome store requirement
- use Flameshot + remind last position OR
- F12 -> responsive Design -> click screenshot button (ctrl + shift + s)
- inkscape modifications
- blur: add rectangles on parts to hide, copy image, blur it, set clip group with blurred + rectangles
media/before.jpg
,media/after.jpg
-
npx cspell
npx run bundle
and test the userscript
-
npx run createGithubRepo
- commit
-
npx run syncMetadata
- needed fields: description, keywords, repository
- either in
package.json
ormanifest.json
-
publish to openUserjs
npx run bundle
- commit
userscripts
repo - manually import the script in openuserjs.org
npx run openuserReadme
- update the README with the published URL
-
publish to firefox
npx run firefoxFirst
ornpx run firefox
- get id after first publish, add to manifest.json
- description
- categories: Appearance
- 128px icon
- tags
- update the README with the published URL
- update manifest.json addonIds[0]
- "addonIds": ["firefoxurl"]
-
publish to chrome
- get id after first publish, add to manifest.json
npx run firstChrome
ornpx run chrome
- description
- replace: list dash for a bullet point
- replace: bold for capslock
- TAB Store Listing
- description
- category: social & communication?
- 128 x 128 icon path
- 1280 x 800 screenshot path
- language: english (US)
- TAB Private Practices
- Single Purpose: see boilerplate
- Host Permission: I need to change the appearance of the site
- Remote Code: no
- Mark all 3 last disclosure checkboxes
- update the README with the published URL
- update manifest.json addonIds1
- "addonIds": ["firefoxurl", "chromeUrl"]
npx run openuserReadme
npx run firefoxReadme
npx run chromeReadme