playerx / Match Page Redirect

// ==UserScript==
// @name       Match Page Redirect
// @namespace  http://playerx.hitwicket.com/
// @version    1.1
// @description  Script to redirect page to details
// @include      http*://*hitwicket.com/match/show/*
// @copyright  2014+, PlayerX
// ==/UserScript==
console.debug("Match Redirect Script")
var url = window.location.href
if(url.indexOf("?") == -1) {
   window.location.href = url + "?details=1" 
}
else if(url.indexOf("newsfeed=1") > 0) {
    window.location.href = url.replace("newsfeed=1","details=1")
}