https://forum.palemoon.org/viewtopic.php?f=3&t=32588#p264400jars_ wrote:
small upd in defense of CustomButtons ...
I use Custom Buttons too. I like this add-on but I had a frustration with it: in "tooltipText" I couldn't add "line-breaks" to help me remember the button options.
To solve this problem, I added the following lines to the add-on code:
Code: Select all
setTimeout (function () {
try{
var button_name = oBtn.name;
button_name = button_name.replace(/\\n/g, "\n");
oBtn.tooltipText = button_name;
} catch(err){
// alert(err.message);
}
}, 100);
1. jquery.js ( jQuery Core 3.7.1 )
2. test_load_jquery.js
3. empty_HTML_page.html
The files 1 and 3 are useful in certain circumstances, and the file 2 I added just to test the "mozIJSSubScriptLoader.loadSubScript" function.
This is what a button looks like when I use "line-breaks" to display the button options:
Before modifying the add-on, "\n" inside the button's "Name" box did not produce a "line-break":
Screenshots showing the changes made to the add-on:
After modifying the add-on, "\n" in the "Name" box of the button generated a "line break":
Testing the functionality of the "jquery.js" file added to the add-on:
***
Anyone who wants to test the enhanced version of the Custom Buttons add-on ( Custom Buttons Enhanced 0.0.6 ) can download it here:
https://www.mediafire.com/file/xkjjewlp4h0hrnw/Custom_Buttons_Enhanced_0_0_6.zip/file
