Created
May 12, 2020 23:58
-
-
Save cvan/c9b84030556cf3517929bca21ebed1cd to your computer and use it in GitHub Desktop.
copy URL redirects from 301 Redirects WordPress plugin
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Paste into your DevTools Console. | |
list = $$('input[name*="301_redirects[request]"]').map(src => src.value ? `${src.value} ${src.closest('div').querySelector('input[name*="301_redirects[destination]"]').value}` | |
: '').filter(Boolean).sort().join('\n'); | |
copy(list); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment