// ==UserScript== // @name Stack Exchange Deleted Question Viewer // @version 1.3.65535.0 // @description Allows you to view some deleted questions on Stack Exchange. // @namespace http://jeremybanks.ca/ // @include http://stackoverflow.com/questions/* // @include http://*.stackoverflow.com/questions/* // @include http://superuser.com/questions/* // @include http://*.superuser.com/questions/* // @include http://serverfault.com/questions/* // @include http://*.serverfault.com/questions/* // @include http://stackexchange.com/questions/* // @include http://*.stackexchange.com/questions/* // @include http://answers.onstartups.com/questions/* // ==/UserScript== ; var inject; var __hasProp = Object.prototype.hasOwnProperty; inject = function(f) { var script; script = document.createElement('script'); script.textContent = "(" + f + ")();"; return document.body.appendChild(script); }; inject(function() { var answerFrame, continueWithjQuery, markdownLoaded, start; start = function() { var script; if (!(location.pathname.match(/^\/questions\/\d+[\/$]/) && document.title.match(/^Page Not Found - /) && document.querySelector(".revision-comment"))) { return; } console.log('Deleted question detected, attempting to retrieve...'); if (typeof $ !== "undefined" && $ !== null) { return continueWithjQuery(); } else { script = document.createElement('script'); script.src = 'http://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js'; script.addEventListener('load', continueWithjQuery); return document.body.appendChild(script); } }; markdownLoaded = void 0; answerFrame = null; continueWithjQuery = function() { var submitForm; submitForm = function(url, data, method) { var addData, form; if (method == null) method = 'POST'; form = $('