Is there a non-obfuscated version of the redirection.js file?
-
I have a lot of old encoded url’s that I’m updating to latin only slugs and am using the redirection plugin to make sure the old links redirect to their new targets.
Editing (and viewing) these links is quite a hassle. I’ve a couple of hundred of these old non-latin urls.I’ve added these lines of code in a separate js file, and they do the job. Barely. It only allows me to edit the links in encoded form. But not to view.
And it’s obviously a hack.$(document).on('blur','.edit-redirection input',function(){$(this).val(encodeURI($(this).val()))}) $(document).on('focus','.edit-redirection input',function(){$(this).val(decodeURI($(this).val()))})
I’m certain there should be a more elegant way to encodeURI the values only on submit and using the redirection plugin javascript.
However the js is minified (not a problem) and obfuscated (quite a problem).Is there a non-obfuscated version of the script – that I can look through?
Or is such a file intentionally unavailable? (What with redirection plugin being both comprehensive, fast yet free)Thanks,
apedog
- The topic ‘Is there a non-obfuscated version of the redirection.js file?’ is closed to new replies.