UPD 3/9/2024:
Widgets can now be added, modified and deleted directly in the browser.
The size of the widgets can now be changed with the mouse.
Traditionally, the demonstration:
ΠΠΈΡΠΊΠ°
Sorry for such a long delay after the last update, but the changes after the previous version are simply colossal by the standards of this mod. A few important details:
If you want your current widgets to be saved, you can copy everything from
widgets.js except the WIDGETS array. If you restarted the browser and saw that the widgets loaded, you can safely replace the file completely, because the widgets are saved to the browser database, which does not disappear even after updates. I mean, the mod itself, of course, will disappear, but the widgets will remain in your profile, so after turning on the mod, the widgets will be restored automatically.
At the last moment, I added the "Copy" and "Paste" buttons so that widgets can be easily shared. In order for the widget to be inserted, there must be a valid json or a piece of javascript code with the widget in the clipboard. The following options will work:
{
"id": "VivaldiProfileWidget",
"url": "https://forum.vivaldi.net/user/aminought",
"zoomFactor": "0.8",
"selector": ".profile.row",
"width": "292px",
"height": "266px",
"timeout": "0"
}
{
id: 'VivaldiProfileWidget',
url: 'https://forum.vivaldi.net/user/aminought',
selector: '.profile.row',
zoomFactor: 0.8,
width: '292px',
height: '266px',
timeout: 0
}
Do not forget to press the "Save" button after the changes!
When adding a new widget, a widget with Vivaldi releases is added by default, and you can change the parameters to the ones you need: web address, selector, etc.
P.S. The mod code has already exceeded 1 thousand lines π