- the first one (branchless) use the condition to SAVE the correct value (< 500): it temporarily writes any current value to the same index i, always overwriting the previous value, effectively saving it (by moving forward to i+1) only when the value is right (small number).
Downside of this simple function: the last value may be bigger than 500
- the second one use the condition to ADD the value, when it is 100% sure it is a correct small number
I built this script to monitor OpenRouter's models launch and it works very well so far (it will sent me a Slack message every time a new model drops). It was vibe coded as a throwaway project to test some models, but it eventually stuck and became a useful tool. So I though to share it, in case somebody else may find it useful.
I am looking and I don't see my preferred extensions without which I cannot live (I won't repeat the already mentioned ones):
- Selection Context Search - very extensible addon which will allows you to select in page and use that for opening an URL: search in any engine, add to search strings in Wikipedia, IMDB, torrents, almost anything
- Ant Video Downloader - downloads any video from page
- Bookmark Tab Here - bookmark by right clicking directly on bookmark folder
- HistoryBlock - blocklists sites from history (for example google.com, your search history)