MediaWiki talk:Gadget-togglePatrollerRequests.js

Exclude diff-views from script
For some time now I've been noticing that viewing previous diffs of the MCW:Patroller requests page itself, partially enables the script as well. If you have set in your preferences that a diff should also show the page content below, the page will not be set to "diff" action but to "view" action. This special case means it will effectively hide requests and their conversations, but leave empty headings. This is wrong, the script should not function in this situation, such that when someone modifies a request to a status that you have hidden, you will still be able to view the request in this view.

I've made a fix for this and tested it a bit. , could you please review and add the bold code to this line at the bottom: if (mw.config.get("wgAction") === "view"  && $(".diff").length <= 0  && $("[class*='patrol-request-toggle']").length > 0) {