// ==UserScript== // @name Magic™ Tag Review 2 // @namespace http://github.com/Tiny-Giant // @version 1.0.2.0 // @description Custom review queue for tag oriented reviewing with the ability to filter by close votes and delete votes // @author @TinyGiant // @contributor @Makyen // @include /^https?:\/\/(?:\w*\.)?stackoverflow\.com\/review(?:/?|\/MagicTagReview)(?:\?.*)?$/ // @grant GM_getValue // @grant GM_setValue // @grant GM_listValues // @grant GM_deleteValue // @grant GM_addValueChangeListener // @run-at document-start // ==/UserScript== /* jshint -W097 */ /* jshint esnext: true */ /* globals $, GM_setValue, GM_getValue, StackExchange, GM_info */ 'use strict'; /** Start Reusable Utilities **/ const executeInPage = function(functionToRunInPage, leaveInPage, id) { //Execute a function in the page context. // Any additional arguments for this function are passed into the page to the functionToRunInPage. // Such arguments must be JSON-ifiable (also Date, Function, and RegExp) (prototypes are not copied). // Using () => doesn't set arguments, so can't use it to define this function. // This has to be done without jQuery, as jQuery creates the script // within this context, not the page context, which results in // permission denied to run the function. function convertToText(args) { //This uses the fact that the arguments are converted to text which is interpreted // within a