gkoberger / BugzillaJS

A userscript that adds additional functionality to bugzilla
https://addons.mozilla.org/en-US/firefox/addon/bugzillajs/
43 stars 18 forks source link

DOWNLOAD THE ADD-ON

https://addons.mozilla.org/firefox/addon/bugzillajs/

DEVELOPING THE ADD-ON

BugzillaJS is in the process of being converted to a cross-browser web extension, and can be installed like this:

git clone git@github.com:gkoberger/BugzillaJS.git bugzillajs
cd bugzillajs
web-ext run

This should open up an install button in Firefox.

To package for distribution, simply run make

TESTING THE ADD-ON

Once you have it installed, check out the following URL to see it in action:

https://bugzilla.mozilla.org/show_bug.cgi?id=574290

FEATURES

This extension was converted to an web extension and is missing some of the previous features. If you are interested in these features you can port them from the 'legacy' directory and submit a PR.

You can turn features on and off by clicking the "BugzillaJS Preferences" link at the top and bottom of every page. You need to refresh the page to see them come into effect.

Keyboard Shortcuts

To view all keyboard shortcuts, type "?" on any page.

Improve Comments

Make the comments on bugs more readable.

Show inline media

Show images and other types of content right in the comments.

Improve Bugs

These pertain to editing bugs.

Listing Pages

These modify parts of the pages with lists of bugs.

Miscellaneous

These are other tidbits that do not fit into other categories.

CONTRIBUTE

If you have an idea for an extra feature, either ask me to implement it or you can implement it yourself and submit a patch. I'll do a better job in the future of cleaning up the code and possibly making it API-like.

Bugzilla Installation URLs

To test patterns/globs against installation URLs you can visit https://www.bugzilla.org/installation-list/ and run:

  new Set([...document.querySelectorAll("a[href]")].filter(a => a.textContent.trim() == "Bugzilla").map(a => a.href).filter(url => !url.includes("www.bugzilla.org")).filter(url => !url.match(/(.*bugz.*|.*bugs.*|.*Bugs.*|.*bz.*)/)))

TROUBLESHOOTING

IF THERE IS A CONFLICT WITH ANOTHER SCRIPT

Simply disabling the feature in the Bugzilla Preferences should fix it.

STILL HAVE ISSUES?

Post an issue, or contact me at gkoberger [a] gkoberger [dot] com