chitwan.malhotra / JIRA - auto redirect issue to old view.

// ==UserScript==
// @name         JIRA - auto redirect issue to old view.
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  Auto redirects the JIRA issue to Older View, Trying to solve this - https://community.atlassian.com/t5/Jira-Core-questions/Where-has-Add-Watchers-gone-in-the-new-JIRA-view/qaq-p/774776?utm_source=atlcomm&utm_medium=email&utm_campaign=immediate_general_reply&utm_content=topic
// @author       chitwan.malhotra@gmail.com
// @match        https://3clogic.atlassian.net/browse/*
// @grant        none
// @license 	 MIT
// ==/UserScript==

(function() {
    'use strict';

    var currentURL = window.location.href;

    if(currentURL.search('oldIssueView') == -1){
        var newURL = currentURL + '?oldIssueView=true';
        window.location.replace (newURL);
    }

})();