Skip to content

Commit

Permalink
AIM v0.23: remove 'get all reasons' call which slows down metasmoke
Browse files Browse the repository at this point in the history
  • Loading branch information
Glorfindel83 committed May 7, 2018
1 parent 70bd304 commit ace6050
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion autoflagging/autoflagging.meta.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// @contributor angussidney
// @contributor ArtOfCode
// @contributor Cerbrus
// @version 0.22
// @version 0.23
// @updateURL https://raw.githubusercontent.com/Charcoal-SE/Userscripts/master/autoflagging/autoflagging.meta.js
// @downloadURL https://raw.githubusercontent.com/Charcoal-SE/Userscripts/master/autoflagging/autoflagging.user.js
// @supportURL https://github.com/Charcoal-SE/Userscripts/issues
Expand Down
7 changes: 5 additions & 2 deletions autoflagging/autoflagging.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
// @contributor angussidney
// @contributor ArtOfCode
// @contributor Cerbrus
// @version 0.22
// @version 0.23
// @updateURL https://raw.githubusercontent.com/Charcoal-SE/Userscripts/master/autoflagging/autoflagging.meta.js
// @downloadURL https://raw.githubusercontent.com/Charcoal-SE/Userscripts/master/autoflagging/autoflagging.user.js
// @supportURL https://github.com/Charcoal-SE/Userscripts/issues
Expand Down Expand Up @@ -91,12 +91,14 @@
lastTextNode.parentNode.removeChild(lastTextNode);
}

autoflagging.getAllReasons($message, data);
// Temporarily disabled following https://chat.stackexchange.com/transcript/message/44456641#44456641
// autoflagging.getAllReasons($message, data);
};

/*!
* Extend a report message's reasons when the message was cropped.
*/
/* Temporarily disabled following https://chat.stackexchange.com/transcript/message/44456641#44456641
autoflagging.getAllReasons = function ($message, data) {
if (autoflagging.hasMoreRegex.test($message.html())) {
$.get(
Expand Down Expand Up @@ -130,6 +132,7 @@
});
}
};
*/

/*!
* Adds the AIM information to the provided element.
Expand Down

0 comments on commit ace6050

Please sign in to comment.