This commit is contained in:
Glorfindel 2019-01-06 20:17:05 +01:00
parent c601cab4b7
commit e8009cc9a2

View file

@ -5,7 +5,7 @@
// @author Glorfindel // @author Glorfindel
// @updateURL https://raw.githubusercontent.com/Glorfindel83/SE-Userscripts/master/show-flag-responses/show-flag-responses.user.js // @updateURL https://raw.githubusercontent.com/Glorfindel83/SE-Userscripts/master/show-flag-responses/show-flag-responses.user.js
// @downloadURL https://raw.githubusercontent.com/Glorfindel83/SE-Userscripts/master/show-flag-responses/show-flag-responses.user.js // @downloadURL https://raw.githubusercontent.com/Glorfindel83/SE-Userscripts/master/show-flag-responses/show-flag-responses.user.js
// @version 0.1 // @version 0.1.1
// @match *://*.stackexchange.com/admin/history/* // @match *://*.stackexchange.com/admin/history/*
// @match *://*.stackoverflow.com/admin/history/* // @match *://*.stackoverflow.com/admin/history/*
// @match *://stackoverflow.com/admin/history/* // @match *://stackoverflow.com/admin/history/*
@ -37,7 +37,7 @@
let postID = parseInt(matches[1]); let postID = parseInt(matches[1]);
// Load Post Flag History page // Load Post Flag History page
$.get("https://apple.stackexchange.com/admin/posts/" + postID + "/show-flags", function(data) { $.get("https://" + document.location.host + "/admin/posts/" + postID + "/show-flags", function(data) {
// Search for rows corresponding to the time of handling // Search for rows corresponding to the time of handling
let deletionDate = $(data).find("span[title='" + time + "']"); let deletionDate = $(data).find("span[title='" + time + "']");
if (deletionDate.length == 0) if (deletionDate.length == 0)