Vivaldi Forum mod
-
@luetage Maybe the NodeBB API can do it, but someone would need to figure out how to get the authentication working.
Documentation for updating user settings: https://docs.nodebb.org/api/write/#tag/users/paths/~1users~1{uid}~1settings/put
My attempt (
UID
needs to be set for specific user) :fetch("https://forum.vivaldi.net/api/v3/users/INSERT_UID_HERE/settings", { "headers": { "content-type": "application/json; charset=UTF-8" }, "body": '{"settings":{"bootswatchSkin":"dark"}}', "method": "PUT" }).then((response) => { console.log(response) });
It always returns
403
when run from the console of the page or when added to one of the injected scripts. I tried includingcredentials: "same-origin"
andcredentials: "include"
, but same result.The copied network request as fetch also didn't work:
fetch("https://forum.vivaldi.net/api/v3/users/INSERT_UID_HERE/settings", { "headers": { "content-type": "application/json; charset=UTF-8", "credentials": "include", "sec-ch-ua": "\"Chromium\";v=\"108\", \"Not?A_Brand\";v=\"8\"", "sec-ch-ua-mobile": "?0", "sec-ch-ua-platform": "\"Windows\"" }, "referrer": "https://forum.vivaldi.net/user/INSERT_USERNAME_HERE/settings", "referrerPolicy": "strict-origin-when-cross-origin", "body": "{\"settings\":{\"bootswatchSkin\":\"dark\"}}", "method": "PUT", "mode": "cors", "credentials": "omit" });
Maybe someone like @Pathduck could help. Seeing as he is so comfortable with
curl
ing that he could both style someone's hair with a curling iron and slide polished stones around on ice at the same time without even breaking a sweat.But it is possible that there isn't a way to get this working. CORS always ruins my day
Edit: Also tried looking at this extension, but couldn't find a source and the actual files were minified hell, so didn't learn anything useful.
-
VFM version 4.7 is live on the webstore.
Happy new year everyone
It took a while but we managed to get a release outβ¦- @nomadic fixed up the system emoji mod to make it compatible with the Tony emoji introduced by Vivaldi (Santa Tony is still only available from emotes when using advanced formatting )
- Vivaldi introduced a dark skin and the forum mod is compatible with it from this release on. When choosing dark skin in Vivaldi settings, go to forum mod settings and select Vivaldi Dark and then reload. When using a custom theme, the Vivaldi default skin has to be activated. We hope to automate this in future releases.
-
@luetage
Happy new year!
I appreciate your efforts.
May the Force be with you!
May the raw eggs be with you! -
@shifte I didnβt get any raw eggs
-
@shifte @luetage All the local grocery stores are already putting up Easter merchandise, so maybe if you can't get any raw eggs, you could get an
Easter egg
instead
On a definitely unrelated note, I can't get that Christmas song originally sung by
Vaughn Monroe
out of my head. But since I mostly listen to instrumental versions of songs, it was hard tosearch
for thesong title
so I could listen to it again.You can also add
1000
times looped version to the search, but my computer gets a little hot if I loop the song that many times, so I set the default loop count to only90
to get into the mood of the season. And if I ever get tired of the festivities, I justrefresh the page
to get back to normal and clear out the loop.
How did I end up talking about Easter eggs and Christmas song titles again? Oh well
-
All the local grocery stores are already putting up Easter merchandise
Awesome!
History will repeat itself.
So grocer's daughters will be the iron lady. -
@shifte lol
-
@shifte said in Vivaldi Forum mod:
May the raw eggs be with you!
Isn't that "May the raw eggs be on you"?
-
I also just wanted to point out that my last post might have been hinting at something rather than me describing an odd obsession with a song.
I mean I like the occasional Christmas song as much as anyone, but I mostly was just clumsily using it to point out some
information
.Let me know if you can get it working
If you aren't feeling too adventurous, you could also look through the GitHub repo commits or closed pull requests to get a better idea what is going on.
Β
You could also send me a chat message if you want me to reveal the secret. -
@nomadic Hmm, must be one of these then?
Yippie-yi-o
Yippie-yi-yay
Ghost riders in the skyOr maybe...
Native girl got figure fine
Like Trinidad coastline
One thing that you see so plain
She's a little plump around the Port of SpainVery hard to guess...
-
@Pathduck You made it to @nomadicβs funnel of love. Congratulations
-
@nomadic Alright, might as well explain it to avoid the possibility of no one ever finding it.
In the last extension update, @luetage and I added an Easter egg. The instructions for triggering it will be below, but they are hidden in case you want to try and figure it out from my ramblings in the earlier post.
Instructions
The Easter egg is a snow falling animation over the forum similar to what I showed in the GIF here. It works best on a theme with a dark background.
Β
To active it, you simply need to input "let it snow
" in the forum search box and hit enter (spaces and capitalization don't matter, so "Le tiTS NoW
" would also work). You can also include a number between1
and1000
to control the number of snow flakes that will be generated. If you don't include a number, there will be90
snow flakes.
Β
If you want to get rid of the snow flakes, you only need to refresh the page.
Β
As an unintendedside effectfeature of the Easter egg, if you set the snow flake count to something high, your computer will likely heat up to help keep you nice and warm on a cold winter night -
@nomadic
I don't get it.
https://www.youtube.com/watch?v=RWTQqpYBHQ8 -
@shifte sorry, you need to hit enter.
-
@shifte , it only works with the forum extension enabled. For me it works fine, but due that I'm using Dark Mode in flags, my snowflakes are black.
-
Hooray!
Haο½lleο½luο½jahο½ -
@nomadic Wonderful. Thanks a lot.
-
@Catweazle said in Vivaldi Forum mod:
my snowflakes are black.
Might be better for getting you in the mood for the apocalypse rather than the winter season
You can change the color of the snowflakes with the
User CSS
option under theModifications
tab. This should work better or if you want to embrace the apocalypse usered
instead:.snow .flake { background: #ccc; }
-
@nomadic , thanks for the tip, I think, respect apocalypse, I'll select red
-
@Catweazle Just a warning, this will change in the next version. I overlooked that one in the initial review and pushed a commit a couple of days ago prepending the classes with
vfm-
. Generally all classes introduced are named this way to prevent clashing with nodeBB or Vivaldi in future. And running the dark mode flag is of course a matter of preference, but I wouldnβt do it on desktop. Use an extension instead, if you need it on every page, e.g. Dark Reader.Btw, there are two different dark mode flags on desktop. The one you are using is the one from
vivaldi://flags
and this is an ugly inverter. Extensions or userscripts invert too, but generally do a far better job at it. The other one (the one I am using) is the startup flag--force-dark-mode
, which forces dark mode on websites which already provide a dark version, independent from your operating system theming.