Skip to content

Instantly share code, notes, and snippets.

@amblerkr
Last active December 12, 2020 00:35
Show Gist options
  • Save amblerkr/9ecf06412b4a65a8d9ea4d59df62c467 to your computer and use it in GitHub Desktop.
Save amblerkr/9ecf06412b4a65a8d9ea4d59df62c467 to your computer and use it in GitHub Desktop.
javascript:function redirectURLFunc(){var targetURL=window.location.href.split("?")[0]+"?";var fqa=new Array("oid","aid");for(var i=0;i<fqa.length;i++){targetURL=targetURL+(i>0?"&":"")+fqa[i]+"="+__getQuerystring(fqa[i])}window.location.href=targetURL}function __getQuerystring(key){key=key.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");var regex=new RegExp("[\\?&]"+key+"=([^&#]*)");var qs=regex.exec(window.location.href);if(qs==null)return"";else return qs[1]}redirectURLFunc();
javascript:function redirectURLFunc(){var targetURL=window.location.href.split("?")[0]+"?";var fqa=new Array("id","no");for(var i=0;i<fqa.length;i++){targetURL=targetURL+(i>0?"&":"")+fqa[i]+"="+__getQuerystring(fqa[i])}window.location.href=targetURL}function __getQuerystring(key){key=key.replace(/[\[]/,"\\\[").replace(/[\]]/,"\\\]");var regex=new RegExp("[\\?&]"+key+"=([^&#]*)");var qs=regex.exec(window.location.href);if(qs==null)return"";else return qs[1]}redirectURLFunc();
@amblerkr
Copy link
Author

JavaScript Compressor : http://dean.edwards.name/packer/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment