Advanced Panels Mod (with Sessions Panel)
-
That was just to show that I was using the correct
url
with @guigirl's code.The issue I'm having with yours is actually on restart. Sessions show fine when added but all are hidden on restart (https://forum.vivaldi.net/post/559504).
No errors in console
-
@sjudenim It's working for me. If you restart and open the normal sessions popup (from quick commands), does that display correctly? Also what OS are you using?
-
-
I read this thread a long time ago before CSS mods were kept by Vivaldi. Am I correct in assuming I don't have to worry about checking an option to make sure they don't disappear these days? Should I still back up my CSS mods?
edit: erm, something weird happened... I thought I posted this in the Vivaldi mods thread.
-
@sjudenim Could you try this for me: When vivaldi restarts, before you open the panel, open the conolse and type this command:
vivaldi.sessionsPrivate.getAll(console.log)
It should print out all your saved sessions to the console. Does that work?
-
Yes
-
@sjudenim OK. From what you've posted here and the earlier screenshot of the devtools, I think I see where the problem is happening.
For some reason
advancedPanelOpened
is not being called when you open the panel.Now I need to figure out why...
Could you please add a new line like so (at line 679) and let me know what happens?
const ADVANCED_PANEL_ACTIVATION = new MutationObserver(records => { console.log(records); /* add this line */ records.forEach(record => { if(record.target.classList.contains("visible")){
If it's working properly this should print something to the console every time you open it. If not, this is where the problem is happening.
-
Nothing on start and nothing when I open the panel. Only clicking on it renders this
0: MutationRecord {type: 'attributes', target: div#sessions_lonm.panel.webpanel, addedNodes: NodeList(0), removedNodes: NodeList(0), previousSibling: null, …} length: 1 [[Prototype]]: Array(0)```
-
@sjudenim That's strange. it looks like the panel isn't getting the "visible" class when the mutate observer fires, but I can see from your earlier screenshot that class was there, so I don't understand what is happening.
Do you have any other mods or have non-standard configuration of your panels?
-
That was with no other mods running.
I removed my data folder and loaded your mod, restarted and it works as expected. I've tracked the problem to the
preferences
file, but there isn't anything non-standard about it so I'm not sure what setting is causing the conflict.EDIT: Removed the preferences file and redid the settings using a side by side with another build. With the settings exactly the same, your mod works. When I copy the older version of the pref file, doesn't work. Something with that file is wonky.
All's well that ends well. Thanks again
-
@lonm Could you tell me whether it is normal to see the Advanced Panels Mod for Sessions appear in some profiles and not in others? I have two profiles on MacOS for which it shows, and another profile for which it does not.
As far as I can remember, I created both additional profiles by copying the Default profile directory into their respective directories and using that as a starting point. For the profile I created a couple of months ago, the burger button shows, whereas for the profile I created today, it does not.
P.S. I did the same thing on Linux and the button shows on all three profiles.
-
@yaha12 That sounds odd. Are you sure you added the right panel address in each profile? You would need to re-add it each time you make a new profile.
-
This post is deleted! -
There is now a spanish translation by mlopezgva
-
@LonM hallo, it works on the latest versions of vivaldi?
-
@VAIO73 It should, if there is a specific problem or a bug, let me know what is not working.
-
@LonM
just updated to vivaldi 6.0 and its not showing the sessions anymore. but they are still shown in the normal "open saved sessions".
could you check please? -
@schreck I am not updating this mod any more. If you need a session panel, please use the experiment provided by vivaldi.
Type
vivaldi://experiments
into the address bar and enable the sessions panel. You might need to edit your toolbar panel to add the new panel button.Old sessions will carry over to the new panel.
-
i see. so thanks for the ride!