Skip to main content
edited tags
Link
Brock Adams
  • 13k
  • 5
  • 39
  • 64
added 388 characters in body
Source Link
matt.
  • 253
  • 1
  • 9

tag repositionenter image description here

// ==UserScript==
// @name         Tag Reposition
// @description  Repositions Tags at top of question in review queue
// @namespace    https://stackoverflow.com/users/1454538/
// @author       ᴉʞuǝ
// @match        *://*.askubuntu.com/review/*
// @match        *://*.mathoverflow.net/review/*
// @match        *://*.serverfault.com/review/*
// @match        *://*.stackapps.com/review/*
// @match        *://*.stackexchange.com/review/*
// @match        *://*.stackoverflow.com/review/*
// @match        *://*.superuser.com/review/*
// @exclude      *://api.stackexchange.com/*
// @exclude      *://blog.stackexchange.com/*
// @exclude      *://blog.stackoverflow.com/*
// @exclude      *://data.stackexchange.com/*
// @exclude      *://elections.stackexchange.com/*
// @exclude      *://stackexchange.com/*
// @run-at       document-end
// ==/UserScript==
(function($) {
    $(document).ajaxComplete(function(event, request, settings) {
        if(isReview(settings.url)){
            var $tags,
                $review = $(".review-content"),
                $title = $("<h2/>", {text: "Tags", style:"display: inline-block; margin-right: 5px;"});

            if(isEditReview(window.location.href)){
                $tags = $("a.post-tag:first").parent().clone();
            } else {
                $tags = $(".post-taglist").clone();
            }
            
            $tags.addClass("subheader").css("border-bottom", "none");
            $tags.prepend($title);
            $review.prepend($tags);
        } 
    });

    function isReview(url){
        returnvar urlresult = false;
        if(~url.indexOf("/review"review/"task-reviewed") ===|| ~url.indexOf("review/next-1task")){
 ? false :         result = true;
        }
        return result;
    }

    function isEditReview(url){
        return url.indexOf("edits") === -1 ? false : true;
    }
}(jQuery));

tag reposition

// ==UserScript==
// @name         Tag Reposition
// @description  Repositions Tags at top of question in review queue
// @namespace    https://stackoverflow.com/users/1454538/
// @author       ᴉʞuǝ
// @match        *://*.askubuntu.com/review/*
// @match        *://*.mathoverflow.net/review/*
// @match        *://*.serverfault.com/review/*
// @match        *://*.stackapps.com/review/*
// @match        *://*.stackexchange.com/review/*
// @match        *://*.stackoverflow.com/review/*
// @match        *://*.superuser.com/review/*
// @exclude      *://api.stackexchange.com/*
// @exclude      *://blog.stackexchange.com/*
// @exclude      *://blog.stackoverflow.com/*
// @exclude      *://data.stackexchange.com/*
// @exclude      *://elections.stackexchange.com/*
// @exclude      *://stackexchange.com/*
// @run-at       document-end
// ==/UserScript==
(function($) {
    $(document).ajaxComplete(function(event, request, settings) {
        if(isReview(settings.url)){
            var $tags,
                $review = $(".review-content");

            if(isEditReview(window.location.href)){
                $tags = $("a.post-tag:first").parent().clone();
            } else {
                $tags = $(".post-taglist").clone();
            }
            $review.prepend($tags);
        } 
    });

    function isReview(url){
        return url.indexOf("/review/") === -1 ? false : true;
    }

    function isEditReview(url){
        return url.indexOf("edits") === -1 ? false : true;
    }
}(jQuery));

enter image description here

// ==UserScript==
// @name         Tag Reposition
// @description  Repositions Tags at top of question in review queue
// @namespace    https://stackoverflow.com/users/1454538/
// @author       ᴉʞuǝ
// @match        *://*.askubuntu.com/review/*
// @match        *://*.mathoverflow.net/review/*
// @match        *://*.serverfault.com/review/*
// @match        *://*.stackapps.com/review/*
// @match        *://*.stackexchange.com/review/*
// @match        *://*.stackoverflow.com/review/*
// @match        *://*.superuser.com/review/*
// @exclude      *://api.stackexchange.com/*
// @exclude      *://blog.stackexchange.com/*
// @exclude      *://blog.stackoverflow.com/*
// @exclude      *://data.stackexchange.com/*
// @exclude      *://elections.stackexchange.com/*
// @exclude      *://stackexchange.com/*
// @run-at       document-end
// ==/UserScript==
(function($) {
    $(document).ajaxComplete(function(event, request, settings) {
        if(isReview(settings.url)){
            var $tags,
                $review = $(".review-content"),
                $title = $("<h2/>", {text: "Tags", style:"display: inline-block; margin-right: 5px;"});

            if(isEditReview(window.location.href)){
                $tags = $("a.post-tag:first").parent().clone();
            } else {
                $tags = $(".post-taglist").clone();
            }
            
            $tags.addClass("subheader").css("border-bottom", "none");
            $tags.prepend($title);
            $review.prepend($tags);
        } 
    });

    function isReview(url){
        var result = false;
        if(~url.indexOf("review/task-reviewed") || ~url.indexOf("review/next-task")){
            result = true;
        }
        return result;
    }

    function isEditReview(url){
        return url.indexOf("edits") === -1 ? false : true;
    }
}(jQuery));
deleted 365 characters in body
Source Link
matt.
  • 253
  • 1
  • 9
// ==UserScript==
// @name         Tag Reposition
// @description  Repositions Tags at top of question in review queue
// @namespace    https://stackoverflow.com/users/1454538/
// @author       ᴉʞuǝ
// @match        *://*.askubuntu.com/review/*
// @match        *://*.mathoverflow.net/review/*
// @match        *://*.serverfault.com/review/*
// @match        *://*.stackapps.com/review/*
// @match        *://*.stackexchange.com/review/*
// @match        *://*.stackoverflow.com/review/*
// @match        *://*.superuser.com/review/*
// @exclude      *://api.stackexchange.com/*
// @exclude      *://blog.stackexchange.com/*
// @exclude      *://blog.stackoverflow.com/*
// @exclude      *://data.stackexchange.com/*
// @exclude      *://elections.stackexchange.com/*
// @exclude      *://stackexchange.com/*
// @run-at       document-end
// ==/UserScript==
(function($) {
    $(document).ajaxComplete(function(event, request, settings) {
        var $taglist;
        if(isReview(settings.url)){
            if(isEditReview(window.location.href)){var $tags,
                $taglist$review = $("a".postreview-tag:first").parent().clone(content");
     
            $taglist.cssif("margin-bottom", "20px"isEditReview(window.location.href);
){
                var $choices$tags = $("div"a.diffpost-choices"tag:first");
                $choices.cssparent("margin-bottom", "10px").afterclone($taglist);
            } else {
                $taglist$tags = $(".post-taglist").clone()
                $taglist.css("clear", "none");
 
                var $header = $(".subheader h2:first");
                $header.css({"line-height": "1.6", }
                             "margin-right": "10px"})$review.afterprepend($taglist$tags);
            }

        } 
    });

    function isReview(url){
        return url.indexOf("/review/") === -1 ? false : true;
    }

    function isEditReview(url){
        return url.indexOf("edits") === -1 ? false : true;
    }
}(jQuery));
// ==UserScript==
// @name         Tag Reposition
// @description  Repositions Tags at top of question in review queue
// @namespace    https://stackoverflow.com/users/1454538/
// @author       ᴉʞuǝ
// @match        *://*.askubuntu.com/review/*
// @match        *://*.mathoverflow.net/review/*
// @match        *://*.serverfault.com/review/*
// @match        *://*.stackapps.com/review/*
// @match        *://*.stackexchange.com/review/*
// @match        *://*.stackoverflow.com/review/*
// @match        *://*.superuser.com/review/*
// @exclude      *://api.stackexchange.com/*
// @exclude      *://blog.stackexchange.com/*
// @exclude      *://blog.stackoverflow.com/*
// @exclude      *://data.stackexchange.com/*
// @exclude      *://elections.stackexchange.com/*
// @exclude      *://stackexchange.com/*
// @run-at       document-end
// ==/UserScript==
(function($) {
    $(document).ajaxComplete(function(event, request, settings) {
        var $taglist;
        if(isReview(settings.url)){
            if(isEditReview(window.location.href)){
                $taglist = $("a.post-tag:first").parent().clone();
                $taglist.css("margin-bottom", "20px");

                var $choices = $("div.diff-choices");
                $choices.css("margin-bottom", "10px").after($taglist);
            } else {
                $taglist = $(".post-taglist").clone()
                $taglist.css("clear", "none");
 
                var $header = $(".subheader h2:first");
                $header.css({"line-height": "1.6", 
                             "margin-right": "10px"}).after($taglist);
            }

        } 
    });

    function isReview(url){
        return url.indexOf("/review/") === -1 ? false : true;
    }

    function isEditReview(url){
        return url.indexOf("edits") === -1 ? false : true;
    }
}(jQuery));
// ==UserScript==
// @name         Tag Reposition
// @description  Repositions Tags at top of question in review queue
// @namespace    https://stackoverflow.com/users/1454538/
// @author       ᴉʞuǝ
// @match        *://*.askubuntu.com/review/*
// @match        *://*.mathoverflow.net/review/*
// @match        *://*.serverfault.com/review/*
// @match        *://*.stackapps.com/review/*
// @match        *://*.stackexchange.com/review/*
// @match        *://*.stackoverflow.com/review/*
// @match        *://*.superuser.com/review/*
// @exclude      *://api.stackexchange.com/*
// @exclude      *://blog.stackexchange.com/*
// @exclude      *://blog.stackoverflow.com/*
// @exclude      *://data.stackexchange.com/*
// @exclude      *://elections.stackexchange.com/*
// @exclude      *://stackexchange.com/*
// @run-at       document-end
// ==/UserScript==
(function($) {
    $(document).ajaxComplete(function(event, request, settings) {
        if(isReview(settings.url)){
            var $tags,
                $review = $(".review-content");
 
            if(isEditReview(window.location.href)){
                $tags = $("a.post-tag:first").parent().clone();
            } else {
                $tags = $(".post-taglist").clone();
            }
            $review.prepend($tags);
        } 
    });

    function isReview(url){
        return url.indexOf("/review/") === -1 ? false : true;
    }

    function isEditReview(url){
        return url.indexOf("edits") === -1 ? false : true;
    }
}(jQuery));
added support for Suggested Edits queue.
Source Link
matt.
  • 253
  • 1
  • 9
Loading
fixed duplicated match rule for stack overflow and put userscript code inside an IIFE.
Source Link
matt.
  • 253
  • 1
  • 9
Loading
added 1 character in body; edited tags
Source Link
Brock Adams
  • 13k
  • 5
  • 39
  • 64
Loading
Source Link
matt.
  • 253
  • 1
  • 9
Loading