Bundle.js modding
-
I'm too inpatient to wait until Vivaldi developers implement features that I need so I decided to implement some of them myself.
So here is a list of what I've done:- Show unicode in the addressbar & statusbar (unicode domains at this moment)
- Create tab with with middle click on a free tabbar space (this area is not draggable anymore)
- Ctrl+MiddleClick on a webpage contents - reset zoom
- Fix Ctrl+Wheel zoom speed (1.0.377.10...)
- "Switch Tabs by Scrolling" option doesn't affect RightClick+Wheel (1.0.365.3...)
- New notes at the top
- Keyboard shortcuts for SpeedDial (1.0.403.24...) This feature uses "Quick Commands / Open Pages in New Tab" setting (vivaldi://settings/qc/)
- Settings: Middleclicked URL Tab Position (1.2.479.8...)
- MiddleClick on New Tab button to Paste And Go in a new tab (1.0.435.38...)
- GO button (1.0.435.38...)
- Bookmarks button before AddressBar (1.0.435.38...)
- Open Download Tab instead of Download Panel (1.3.551.30...)
- Prevent Shift+Alt menu appearance (1.3.551.30...)
- Autocomplete to domain first (1.4.589.29...)
"Settings" in a context menu of extensions buttons (1.2.490.35-1.6.689.46)Select text on searchfield focus (1.0.344.37-1.7.715.3)- Disable "VB-25302 Populate Find in Page dialog with page text selection" (1.8.755.3...)
(for Vivaldi versions older than 1.6 final)
Disable tabs cycling with mouse wheel over tabbar (not needed since 1.0.365.3)Ctrl+Wheel page zoom updates zoom indicator (not needed since 1.0.375.3)Ctrl+Wheel - page zoom (not needed since 1.0.377.10)"New tab position: Next To Related Tabs" option works as "Right of Current Tab" (1.0.385.5-1.0.390.3, not needed since 1.0.403.15)SpeedDial: Ctrl+LeftClick opens a link in a background tab (not needed since 1.0.422.8 )Click on active tab to minimize it ("minimize" == switch to another tab back in history/order; like in Opera 12) (not needed since 1.0.429.5)Activate Right of Closed Tab (1.0.403.24-1.1.443.3, not needed since 1.1.453.6)Close tabs to the right (1.0.403.24-1.1.453.52, not needed since 1.2.470.11)Shift+Enter in AddressBar opens a new tab (1.0.435.38-1.1.453.52, not needed since 1.2.470.11)Switch to N-th tab with hotkeys (1.0.435.38-1.2.470.11, not needed since 1.2.479.8 )Don't show Popup Thumbnail for active tab (1.0.435.38-1.2.470.11, not needed since 1.2.479.8 )Shift+Enter in SearchBar opens a search in a new tab (search text isn't copied) (not needed since 1.3.501.6)MiddleClick on Reload Tab button to clone (1.0.435.38-1.3.501.6, not needed since 1.3.519.25)Search Suggest URL editor (1.0.435.38-1.3.501.6, not needed since 1.3.519.25)Don't enable thumbnail mode in tabbar when a border between tabbar and addressbar is doubleclicked (ocasional expanding of thumbnails is very annoing thing for me) (1.0.344.37-1.3.519.25)"Show Tab Thumbnails": now tabs can't be resized when the option is disabled (1.0.344.37-1.3.519.25, not needed since 1.3.534.3)Empty Page fix (1.3.551.17-1.3.551.37)Shift+Enter for new line in Description of CreateBookmark dialog (1.2.490.35-1.4.589.2, not needed since 1.4.589.4)Panels resize fix (1.2.490.35-1.4.589.11, not needed since 1.5.604.4)Show progressbar on open url with no delay (1.0.403.24-1.5.604.4)Fix Search Engines favicons (1.0.435.38-1.5.627.3)Fix first Ctrl+Tab swith after startup (recently used order, show tab cycler) (1.3.551.30-1.5.658.3)
To install these patches just go to http://justdanpo.ru/vivaldi, select patches you need, download patched bundle.js and copy it over original one. You can uncheck all checkboxes and download original bundle.js.
Patches source codes: https://github.com/justdanpo/VivaldiPatches
See also: VivaldiHooks - more useful mods!
-
New patch:
- Create tab with with middle click on a free tabbar space (this area is not draggable anymore)
-
New patch:
- Ctrl+MiddleClick on a webpage contents - reset zoom
-
Amazing! Some of the stuff I needed so much!
I will definitely try to add some mods myself, now that I know it is possible.
Several suggestions to the backend of your patches:
-
It would be great if I could select a browser version manually. As of now, http://justdanpo.ru/vivaldi just tells me "Unknown browser version" if I access it using e.g. Firefox. It would probably be better if I could select a version I like manually.
-
If you beautified the bundle.js first and then patched it, you would probably have your code much more compatible across Vivaldi versions. It would certainly be much easier to read.
-
Assuming the beautified code, each patch could have a comment at the beginning and end of the changed section which would identify the patch. That way, when comparing the old and the new bundle, it would be immediately apparent what each change is about.
-
-
New patch:
- SpeedDial: Ctrl+LeftClick opens a link in a background tab
- It would be great if I could select a browser version manually. As of now, http://justdanpo.ru/vivaldi just tells me "Unknown browser version" if I access it using e.g. Firefox. It would probably be better if I could select a version I like manually.
May be later.
- If you beautified the bundle.js first and then patched it, you would probably have your code much more compatible across Vivaldi versions. It would certainly be much easier to read.
- Assuming the beautified code, each patch could have a comment at the beginning and end of the changed section which would identify the patch. That way, when comparing the old and the new bundle, it would be immediately apparent what each change is about.
I don't think it would be more compatible.
Also in my opinion patches should apply to original code, not to modified one. -
New patch:
- Fix Ctrl+Wheel zoom speed (1.0.377.10…)
-
New patch:
- "Show Tab Thumbnails": now tabs can't be resized when the option is disabled
upd: fixed compatibility with "Don't enable thumbnail mode …" (no_thumbnails_expand.patch)
-
Thank you for putting the patches out there. It's much easier do deal with updates as opposed to manual editing.
I tried using the patch for "Click on tab to minimize - Сворачивать щелчком по вкладке".
When I click on an active tab, I get a horizontal panel with tab thumbnails instead of switching to previously active tab. Vivaldi version 1.0.403.24. It was doing the same with 403.20. I tried reinstallinv Vivaldi and re-downloading bundle.js, but I still get the same result.
[attachment=2752]VivaldiForum-ReplyTopic.png[/attachment]
Attachments:
-
I'm sorry, didn't check with "Show Tab Cycler" option enabled.
Fixed. -
Thank you much. Works great now.
-
New patches:
- "Switch Tabs by Scrolling" option doesn't affect RightClick+Wheel (1.0.365.3…)
- New notes at the top
-
New patch:
- Keyboard shortcuts for SpeedDial (1.0.403.24…) This feature uses "Quick Commands / Open Pages in New Tab" setting (vivaldi://settings/qc/)
Don't forget to clear/reassign these hotkeys:
- Next Tab (Recent)
- Previous Tab (Recent)
- Next Tab
- Previous Tab
[attachment=2917]speeddial.png[/attachment]
Attachments:
-
New patch:
- Show progressbar on open url with no delay (1.0.403.24…)
-
Oh gosh I love you.
Please specify in the original post where is the location of bundle.js so we know before we search. Thanks!
-
New patch:
- Show progressbar on open url with no delay (1.0.403.24…)
Can you please add an option to make Close Tabs and Go to Right?
-
Thank you so much for providing an easy way to apply these improvements to Vivaldi – I use almost all of them. I have a request, though: would it be possible to implement a ‘back to close’ feature? That is, if you try to go to the previous page in a tab but there's nothing in its history to go back to (i.e. the Back button is inactive), the tab is closed instead. This would be a significant improvement to tab management, in my experience.
-
New patch:
- Activate Right of Closed Tab (1.0.403.24…)
[attachment=3059]activate_right_of_closed_tab.png[/attachment]
Can you please add an option to make Close Tabs and Go to Right?
Try it
Thank you so much for providing an easy way to apply these improvements to Vivaldi – I use almost all of them. I have a request, though: would it be possible to implement a ‘back to close’ feature? That is, if you try to go to the previous page in a tab but there's nothing in its history to go back to (i.e. the Back button is inactive), the tab is closed instead. This would be a significant improvement to tab management, in my experience.
Is this behavior implemented in any desktop browser?
Attachments:
-
Hi!
I can't seem to get the [click_on_tab_to_minimize.patch] to work anymore (my favourite!) … and I notice that it is not apperaing on the list / download page anymore either.... Is there a problem with this particular script?Vivaldi 1.0.435.42 () (32-bit)
Versjon 575538bc320e213510be1e66f3521382e615129d
OS Windows
Blink 537.36 (@575538bc320e213510be1e66f3521382e615129d)
JavaScript V8 4.9.385.33
Flash 21.0.0.213
Brukeragent Vivaldi/1.0.435.42 -
I just tried this and all of the options I selected seem to work except for the speed dial shortcuts. It it supposed to work by just hitting ctrl+ a number key from any page?
edit: Nevermind, I got it working. Thanks so much! I just had to delete the keyboard shortcuts that were already assigned to the same command.
-
I just saw that you're in hospital, hope you're well when you read this!
Cheers!