Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

Tip - multi-row macro bar bookmarklet

After a lot of googling, I've found a way to use a JavaScript bookmarklet to give the macro bar multiple rows. To use it, create a new bookmark and enter the following code into the URL field: javascript:(function(){$("#playerzone .player").css("display", "none");$("#macrobar_macros").css("margin", "20 px");$("#macrobar_macros").css("white-space", "normal");$("#macrobar_macros").css("line-height", "3");$("#macrobar_macros").css("display", "block");$("#macrobar").css("height", "auto");$("#macrobar_macros .macrobox .btn").each(function() {$(this).text($(this).text().replace(/[^:]+: /, ""));});$("#initiativewindow").css("width", "100px").parent().css("width", "100px");})(); The marklet turns my long macro bar from this: To this: When active, the multi-row macro bar adds new lines to accommodate macros. This method requires re-using the marklet when refreshing or changing pages. I'm sure this code could be adapted for use in Monkeywrench or Stylish so it's automatically applied, but I've no idea how. (It also once again re-opens the repeatedly asked question why this simple CSS tweak isn't part of Roll20's code.) Original Reddit link
1592166675
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
You can also look into a Stylus version of this that is persistent and includes other tweaks. You can easily edit it for multiple rolls. Show Off Your Style , and Show Off Your Style 2: The Stylening! Original thread More Compact Macro Bar  - keithcurtis  [install]
1592198137

Edited 1592198284
vÍnce
Pro
Sheet Author
The Aaron has posted some great bookmarklets in the past(old, but many are still useful).  You might be interested... (scripts, bookmarklets, css, etc.)  Aaron's Roll20 Enhancement pack
1592205599
keithcurtis
Forum Champion
Marketplace Creator
API Scripter
Also keep in mind that Bookmarklets will not work with modern versions of Firefox. AFAIK, Chrome still accepts them.
You can use emoji for macro name and fit a dozen or more buttons on a single line.
1592243463

Edited 1592243862
keithcurtis said: Also keep in mind that Bookmarklets will not work with modern versions of Firefox. AFAIK, Chrome still accepts them. I'm using that bookmarklet with the latest version of Firefox (77.0.1), and it works fine. Vince  said: The Aaron  has posted some great bookmarklets in the past(old, but many are still useful).   You might be interested... (scripts, bookmarklets, css, etc.)  Aaron's Roll20 Enhancement pack Thanks. Some of those could be useful. I think I've used some of Aaron's stuff before. Patrick  said: You can use emoji for macro name and fit a dozen or more buttons on a single line. I prefer using words to emojis.