Skip to main content
3 of 7
fixed duplicated match rule for stack overflow and put userscript code inside an IIFE.
matt.
  • 253
  • 1
  • 9

Review Tag Repositioner

About:

This userscript clones the tags and adds them to the top of the post when working in the review queue. This is in response to a feature-request on Meta Stack Overflow.

tag reposition

Installation:

Install

// ==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 (~settings.url.indexOf('/review/')) {
            var $taglist = $(".post-taglist").clone(),
                $header = $(".subheader h2:first");

            $taglist.css("clear", "none");
            $header.css({ "line-height": "1.6", 
                         "margin-right": "10px" }).after($taglist);
        }
    });
}(jQuery));
matt.
  • 253
  • 1
  • 9