Skip to content

Instantly share code, notes, and snippets.

@KustoSan
Created June 6, 2016 19:28
Show Gist options
  • Save KustoSan/4bdfd5874864d4ecf5e872c9a75dd8b6 to your computer and use it in GitHub Desktop.
Save KustoSan/4bdfd5874864d4ecf5e872c9a75dd8b6 to your computer and use it in GitHub Desktop.
ouo bypass workaround
$('a').click(function() {
$('a[href*="ouo.io"]').each(function(){
$(this).attr('href',$(this).attr('href')
.replace(/^http.*\/?s=/gm,'')
.replace(/%3A/gm, ':')
.replace(/%2F/gm, '/'));
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment