Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- javascript: (function() {
- var url = document.location;
- var meta = document.getElementsByTagName('meta');
- var found = 'Not Found';
- var title = document.title;
- var output = '';
- output = '\n\n##### Page Title #####\n\n' + title + '\n\n\n####META DATA####\n\n';
- if (meta.length > 0) {}
- for (i = 0; i < meta.length; i++) {
- if (meta[i].getAttribute('name') != null) {
- output += '\'' + meta[i].getAttribute('name') + '\'' + '\n' + meta[i].getAttribute('content') + '\n\n';
- } else if (meta[i].getAttribute('property') != null) {
- output += '\'' + meta[i].getAttribute('property') + '\'' + '\n' + meta[i].getAttribute('content') + '\n\n';
- }
- }
- alert(output)
- })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement