Nyaa Filter English Translated Only

Auto filter Nyaa searches to show only English translated results.

// ==UserScript==
// @name        Nyaa Filter English Translated Only
// @description Auto filter Nyaa searches to show only English translated results.
// @require     http://code.jquery.com/jquery-3.1.0.slim.min.js
// @require     https://cdnjs.cloudflare.com/ajax/libs/markdown-it/8.3.1/markdown-it.min.js
// @include     http*://nyaa.si/*
// @license     MIT
// @grant       GM_xmlhttpRequest
// @run-at      document-start
// @version     1
// @namespace https://greasyfork.org/users/1466117
// ==/UserScript==

var url = $(location).attr('href');
var c = getUrlParameter('c');

if (c == '0_0') {
    url = url.replace('c=0_0', "c=1_2")
    window.location.replace(url);
    redirecting = true;
}

function getUrlParameter(sParam) {
    var sPageURL = decodeURIComponent(window.location.search.substring(1)),
        sURLVariables = sPageURL.split('&'),
        sParameterName,
        i;

    for (i = 0; i < sURLVariables.length; i++) {
        sParameterName = sURLVariables[i].split('=');

        if (sParameterName[0] === sParam) {
            return sParameterName[1] === undefined ? true : sParameterName[1];
        }
    }
}