Skip to content

Commit

Permalink
HTML change: rename .post-text to .js-post-body
Browse files Browse the repository at this point in the history
  • Loading branch information
double-beep committed Sep 12, 2020
1 parent fcab40d commit f7f04c3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions dist/AdvancedFlagging.user.js
@@ -1,7 +1,7 @@
// ==UserScript==
// @name Advanced Flagging
// @namespace https://github.com/SOBotics
// @version 1.2.2
// @version 1.2.4
// @author Robert Rudman
// @match *://*.stackexchange.com/*
// @match *://*.stackoverflow.com/*
Expand Down Expand Up @@ -13283,14 +13283,14 @@ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_
if (!sotools_1.IsStackOverflow()) {
resolve(false);
}
if ($('#answer-' + this.answerId + ' .post-text').length === 0) {
if ($('#answer-' + this.answerId + ' .js-post-body').length === 0) {
resolve(false);
}
if ($('.top-bar .my-profile .gravatar-wrapper-24').length === 0) {
reject('Flag Tracker: Could not find username.');
}
const flaggerName = $('.top-bar .my-profile .gravatar-wrapper-24').attr('title');
const contentHash = this.computeContentHash($('#answer-' + this.answerId + ' .post-text').html().trim());
const contentHash = this.computeContentHash($('#answer-' + this.answerId + ' .js-post-body').html().trim());
GM_xmlhttpRequest({
method: 'POST',
url: 'https://so.floern.com/api/trackpost.php',
Expand Down Expand Up @@ -13953,4 +13953,4 @@ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;!(__WEBPACK_AMD_


/***/ })
/******/ ]);
/******/ ]);

0 comments on commit f7f04c3

Please sign in to comment.