Bookmarklet for changing visible number of iRules in VS resource management
Problem this snippet solves:
Sorry for the tags, but I had to select some to be able to submit the code.
How to use this snippet:
Firefox and Chrome: Create a new bookmark by right-clicking the bookmark toolbar in your browser. Enter a name to your liking and copy the code below into the URL field.
Internet Explorer 11: A bit trickier as it does not allow you to create a new bookmark directly. You have to bookmark a random page and then edit its properties by right-clicking.
Edge: You have to bookmark a random page, then open your Favourites with Ctrl-I. Right-click the bookmark you just created, and now you can rename it and edit the URL so it contains the code.
The configuration options within the GUI are in general embedded via an iframe. The code takes the size of the two relevant select tags with the IDs "assigned_rules" (these are the enabled iRules) and "rule_references" (these are the available iRules), and changes their size (ie the number of lines displayed) from the default value of 5 to a custom value, in this case 15. This can be adjusted by changing the mySize variable.
The size of the select field (ie the number of lines displayed) can be changed by editing the variable mySize. The script changes
Tested this on version:No Version Found