Vivaldi Forum mod
-
I have been testing adding a "Search category" button, which would act similar to the button at https://forum.vivaldi.net/category/113/feature-requests
Basically, it exists in the header and you can use it to directly search the category you're in (it will also select it's children, too). I hate clicking search only to find I then need to remember where I was and re-select the categories in that long list.
As for looking for page loads, you can detect when the forum goes into "ajax" mode, and luckily it appends a CSS class when it does this. An example of how to do this is at: mods.js:113-114
-
@LonM Observing the class change generally works, but it doesn't trigger on infinite scroll. What AJAX does too is create a history entry on navigation, therefore I wanted to listen for this initially. It also changes the hash, but I didn't get it to work. The hashchange would seem promising though. I believe we probably could get it to work with the webnavigation api, but I don't want to introduce a new permission to the extensionβ¦
As it stands the click at least updates infinite scroll when you trigger it, so I don't think it makes much sense changing to the mutation observer.
About the extra search, personally I don't like the second entry and I wonder how useful it really is. You would first have to navigate to the category you want to search and it could be argued it's equally fast to just pick the category in search instead of navigating.
-
@luetage Ah, I have the forum paginated, so hadn't considered infinite scroll.
My intent with the search this category wasn't to replace the big menu in search, it was more as a shortcut so that if you're already in a category and wanted to search it, you could do so without having to find and select the category again.
-
@LonM I understand that, but I think this singular case doesn't warrant a button in navigation which doubles the already existing button. Both are a link to the same site. We could exchange your functionality with the existing one, but then you would have to readjust the search when you don't want to search the category you're already in, or you would have to first visit the category you want to search. And what if I want to search a user instead?
The button introduced in the feature request category makes sense, because you will only see it, if you intend to post a feature request or look for a specific feature; and it's in the content.
-
@luetage yeah... its a bit redundant. I just made it because I was mid-category, wanted to look something up, and then the forum annoyed me by me having to manually select the category I was already in.
I don't see this getting a lot of use.
I wonder if instead I could just tie it to a keypress. Say you press "alt" while clicking on search, it opens a search for the current category...
I could just remove it if it's not much use.
Stuff
-
@LonM Yeah, that's a good idea. I think you can check for eg
shift
in a click event. Doesn't need another button and adds value to an already existing one. Would implement -
version 1.84
- New logos with transparency by Rexfahrer
- All themes updated and working.
- Reimplemented functioning User CSS toggle.
We are back in business. New version is up on webstore, the automatic update might take a while. In case you don't wanna wait enable developer mode on extensions page and click "Update" on top.
-
@luetage OMZ, i'm ahead of the game!
-
@Steffie This is the version released only to the most dedicated circle of users. Congratulations!
-
@luetage Proud to be part of that privileged circle
-
-
V 2.1? Nice present, thanks,
Santa@luetagePS: I found it only because upvote indicators have changed color.
(deleted and after official update restored)
-
Vivaldi Forum mod 2.0
or 2.1 to be exactβ¦
Please make sure you have the 2.1 version, the other one won't load the options page, I'm sorry about that. You can force an extension update by going to Vivaldi's extensions page, enabling developer mode at top right and clicking "Update".Anyway, what's new?
New Options Page
@Sjudenim and I completely reworked the options page and it opens in an individual tab now. One big change is that you don't have to click SAVE anymore after every single change you make - theme and modifications selections will save automatically. You still have to reload your Vivaldi Forum tab/s to activate any changes of course.
The themes selection screen features previews for all themes, inspired by the Vivaldi browser themes section. The custom theme edit screen has been renamed to Theme Machine and provides 4 spots to save your custom creations. The import/export setup has been reworked and let's you copy/paste the theme codes directly; this means no more messing around with files! Personally I put all my themes in the notes panel. This makes it easy to drag and drop selected codes unto the import field, if you like to work with the mouse.
I do hope you like the new setup. At this place a thank you @LonM for going bug-hunting .
Translations
Vivaldi Forum mod 2.0 introduces translations. Following additional languages are currently available:
- French
- German
- Italian
- Spanish
A big thank you @hlehyaric, @burbuja and @Hadden89 for making this possible and doing several rounds of translations, because the code kept changing. This was surely annoying, sorry about that . If someone wants to translate Vivaldi into their own language, this is relatively easy now. I wrote up instructions on github and the process is straightforward. Everyone is invited to contribute.
So this is it, the holiday release with big version jump. I hope you do enjoy it! Merry Christmas everyone!
-
-
I'd post some examples themes but I'm away on holiday right now. Good to see this update finally get released as the new options page looks very good.
-
@luetage Thank you so much for the new release. I'll place it under the Christmas tree tonight. Pretty sure my family will be astonished as well.
-
-
@Steffie You're right, but luetage only mentions two of them in his post.
-
@hlehyaric Certainly, yup... but i was staggered when i saw what a global effort it was, & felt that it should be publicised. I mean, how really excellent is this community??!!
-
@luetage More lovely work thanks.
The answer is probably directly in front of me & i'm blind to it, but anyway... how can i backup/export these values/settings pls?
Spoiler
I suppose i could manually copy the individual colour-codes to a WP Note, & that would certainly provide me a failsafe source for manual recovery... it's just not an elegant way [IF something better is available with me not seeing it].
Spoiler