Skip to content

Instantly share code, notes, and snippets.

/parser.js Secret

Created October 6, 2016 15:10
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/172326225e1802b7228c73a24c4aa3bd to your computer and use it in GitHub Desktop.
Save anonymous/172326225e1802b7228c73a24c4aa3bd to your computer and use it in GitHub Desktop.
<script>
jQuery(document).ready(function($){
var _GET = location.search.substring(1).split("&");
function parseGetParam(getParam) {
var $_GET = {};
for (var i = 0; i < getParam.length; i++) {
var getVar = getParam[i].split("=");
$_GET[getVar[0]] = typeof(getVar[1]) == "undefined" ? "" : getVar[1];
}
return $_GET['user'];
}
if (_GET != '' && _GET != 'undefined')
{
var username = parseGetParam(_GET);
$('.button-slider').attr('href', 'https://www.life-media.ag/index.php?id=2&user=' + username);
$('.role-button').attr('href', 'https://www.life-media.ag/index.php?id=2&user=' + username);
}
})
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment