pins your bookmarklets to the sidebar in zen-browser.app
1// ==UserScript== 2// @name pinnedbookmarklets.uc.js 3// @description Puts your bookmarklets in the top of the sidebar. 4// @author Carly Smallbird 5// @version v1.0 6// @include main 7// @grant none 8// ==/UserScript== 9 10const sidebarBoxes = document.querySelectorAll('.workspace-arrowscrollbox'); // gets all sidebars 11const bookmarklets = document.getElementById('PlacesToolbarItems').querySelectorAll('toolbarbutton[scheme="javascript"]'); // filters bookmarks toolbar for bookmarklets 12sidebarBoxes.forEach((box) => { // creates a new box in each sidebar to put the bookmarks in 13 const newVbox = document.createElement('vbox'); 14 newVbox.classList.add('zen-workspace-bookmarklets-section'); 15 bookmarklets.forEach((b) => { 16 newVbox.append(b); 17 }); 18 sidebarBoxes.prepend(newVbox); // adds the bookmarklets 19});