It's almost always bad news to alter a third-party dependency. You wouldn't, for example, alter a core WordPress file to change how something works, because WordPress updates all the time (even automatically) and your changes would be wiped out. Ideally, third-party code offers hooks and APIs to change how it behaves.
But what about when it doesn't? What should you do? How do you document it? How does it change your process?
If you make websites then you need Bugherd.
It's so simple, it's like sticky-notes on your website. Just point, click & send, to create contextual bug reports & feedback. Bugherd automatically captures details like a screenshot, browser, operating system and selector data.
Try free at bugherd.com