Last active
September 30, 2018 22:30
-
-
Save choonkeat/585708 to your computer and use it in GitHub Desktop.
Bookmarklet to turn any webpage back into a wireframe with "lorem ipsum" text. elements ".brand,.nav,.page-title,.btn,.pagination,.breadcrumb,form label,h1,th" are left intact by default (if you have jQuery on the page) because sometimes we want the basic navigations and buttons), but applying the script again will proceed to anonymize them rega…
This file contains 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
/* | |
Turn any webpage back into a wireframe with "lorem ipsum" text. | |
1. Bookmark this page | |
2. Edit the bookmark, and change the link into | |
javascript:(function(u){ c=document;b=c.body;s=c.createElement('script');s.src=u+'?r='+(new Date()).getTime();b.appendChild(s);})('https://raw.github.com/gist/585708/ac1961130915ed2aef0e67bc97d35ead08513aba/loremipsumizer.js');void(0); | |
3. Visit any webpage | |
4. Click on the bookmark | |
*/ | |
(function(nodes) { | |
if ((typeof $ == 'function') && $(document).attr) $('.brand,.nav,.page-title,.btn,.pagination,.breadcrumb,form label,h1,th').not('[data-loremipsumizer]').attr('data-loremipsumizer', 'no'); | |
var wordset = "Fusce quis ipsum est, sed viverra dolor. In nunc turpis, rhoncus a porta nec, tincidunt non ante. Quisque commodo mi dignissim est rutrum consectetur. Nunc at sagittis ligula. Morbi odio magna, ultrices ac vulputate vel, rutrum vel neque. Donec iaculis nibh at nisl imperdiet quis consequat neque elementum. Integer nec eros sapien, in placerat neque. Fusce accumsan luctus quam, nec volutpat risus convallis eu. Nulla convallis tortor sed libero tristique condimentum. Nullam dignissim ultricies convallis. Morbi iaculis vehicula massa quis vestibulum. Integer rhoncus cursus magna at molestie. Cras non purus justo, sed commodo arcu. Maecenas sem turpis, mattis porttitor porttitor at, sagittis vel ipsum. Pellentesque quis eros lectus, non malesuada neque. Mauris at leo ut nisi accumsan hendrerit quis at nibh. Suspendisse potenti. Pellentesque luctus faucibus turpis, sed ornare lectus fermentum vitae. Nullam euismod lobortis est, at malesuada lacus tempus quis. Vestibulum ultrices lorem ac nisi mollis ac sagittis metus vehicula. Donec vel orci non diam faucibus malesuada. Nunc a velit id enim suscipit luctus ut ut enim. Aenean id lectus ut odio suscipit dictum at ac enim. Sed gravida nulla eros, id ultricies lectus. Maecenas nec neque eget mi aliquet venenatis. Phasellus lobortis vulputate leo non rhoncus. Aliquam laoreet dui ac sem sodales lobortis. Cras quis sem et mi accumsan semper. Quisque tincidunt turpis ac orci pulvinar faucibus. Nam mollis arcu nec nunc commodo bibendum gravida ipsum lobortis. Donec vehicula, justo a pretium vulputate, felis ante porttitor metus, ut tincidunt justo leo in dolor. Nulla varius sem sed neque ultricies consequat. Fusce sed mauris erat. Sed commodo nulla eget ante pulvinar a hendrerit lorem laoreet. Nullam sed dolor ut dui convallis malesuada et a arcu. Fusce consectetur placerat accumsan. Ut convallis erat at ipsum pharetra in malesuada quam vulputate. Duis blandit tempus lacus, vel euismod nibh cursus sit amet. Sed rhoncus pulvinar scelerisque. Nunc mattis risus gravida sapien euismod accumsan. Pellentesque malesuada dignissim tellus, a eleifend nunc iaculis vitae. Aliquam ut leo nibh. Duis est lorem, tempor vel tempor non, ornare eget erat. Duis id nunc non quam sodales tempor ac non elit. Fusce quis nibh justo. Mauris mi nulla, tempus vel elementum at, gravida et orci. Nullam ultricies rutrum adipiscing. Sed id dolor mauris, sit amet sodales nisl. Aliquam euismod viverra est vitae blandit. Phasellus eu eros nisl, nec ultricies tellus. Suspendisse nisl ipsum, cursus blandit tempor eu, semper non ligula. Donec vulputate dolor blandit elit laoreet commodo. Etiam et ante eu sem fringilla ultricies. Praesent rhoncus ultricies lobortis. Integer erat erat, convallis ac pharetra et, iaculis non enim. Fusce vehicula felis quis risus sollicitudin nec feugiat justo vestibulum. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Nam et erat eu ipsum tristique ultrices. Nullam auctor euismod magna. Morbi turpis turpis, consequat et cursus vitae, tristique ac tellus. Duis id ante eget justo convallis egestas. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Aliquam feugiat nisl ut magna auctor luctus. Sed vehicula elementum interdum. Etiam id tempor nisl".split(/\W+/); | |
var image = 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAA+gAAAPoAQAAAABl2OlJAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAIGNIUk0AAHolAACAgwAA+f8AAIDpAAB1MAAA6mAAADqYAAAXb5JfxUYAABSJSURBVHja7N3LbWvJFYXhzWUCVwMPBCdgOZKWI3AKDqVCcgZWR2J1AoYGHsiArugBycPzqMd+18Bdc+IXF/lB4KQO0e/n95N9TvTn91ntC0Af0975N4E+p9W/CPQ1rf5JoO9p9Q/C+TKt/k4AlVn1Nzr9+O8vb7O0v4DKLO8XegW9fkzjXkAvs8B/nQj0PAv8Jwj0NAv8x5lA08C/PxFoGvi3ZwKdaJL38kKgWeAv9EqnH5+//m2K+J/ny2+gWeC/TkSgWeA/QQSaBf7jTASaBf79iQg0C/zbMxFoFvjyQgSaBP5Cr0SnH580BfzP84V+A00C/3Wi6/JTwH/iVp8C/uN8q08B//50q08B//Z8q08BX15u9RngL/RKV+8zwP88X+jqfQb4rxPdl58A/hNLfQL4j/NSnwD+/WmpTwD/9rzUJ4AvL0s9H/yV+9V7Pvif5wvdveeDv3K/LZ8O/sr9Vk8Hf+V+q6eDv3Kn+wJlBvdbPR38lfutng3+xv3mPRv8lfvdezb4G/f78sngb9zv9WTwN+73ejL4G3daJigTuN/ryeBv3O/1XPB37nfvueBv3BfvueDv3JflU8HfuS/1VPB37ks9FfydOz02KPncl3oq+Dv3pZ4JfuG+eM8Ef+f+8J4JfuH+WD4R/ML9UU8Ev3B/1BPBL9xpNUJJ5/6oJ4JfuD/qeeAf3B/e88Av3Ffe88A/uK+WTwP/4L6qp4F/cF/V08A/uNN6hZLNfVVPA//gvqpngV9xX3nPAv/gvvaeBX7Ffb18EvgV93U9CfyK+7qeBH7FnTYzlGTu63oS+BX3dT0H/Jr72nsO+BX3jfcc8G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vQYeadxr4JHGvQYeadxr4JHGvQYeadxr4JHHvQIeedwr4JHHvQIeedwr4JHHvQIeedwr4JHHvQIeedwr4JHI/QgeidyP4JHI/QgeidyP4JHI/QgeidyP4JHI/QgeidyP4JHJ/QAemdwP4JHJ/QAemdwP4JHJ/QAemdwP4JHJ/QAemdwP4JHKfQ8eqdz34JHKfQ8eqdz34JHKfQ8eqdz34JHKfQ8eqdz34JHLfQceudx34JHLfQceudx34JHLfQceudx34JHLfQceudx34JHMfQseydy34JHMfQseydy34JHMfQseydy34JHMfQseydy34JHNfQMe2dw34JHNfQMe2dw34JHNfQMe2dw34JHNfQMe2dw34JHOfQ0e6dzX4JHOfQ0e6dzX4JHOfQ0e6dzX4JHOfQ0e6dzX4JHPfQUe+dxX4JHPfQUe+dxX4JHPfQUe+dxX4JHPfQUe+dxX4DGB+wM8JnB/gMcE7g/wmMD9AR4TuD/AYwL3B3hM4P4AjwncH+Axg/sCHjO4L+Axg/sCHjO4L+Axg/sCHjO4L+Axg/sCHjO4L+AxhfsdPKZwv4PHFO538JjC/Q4eU7jfwWMK9zt4TOF+B48p3O/gMYf7DTzmcL+BxxzuN/CYw/0GHnO438BjDvcbeMzhfgOPOdxv4DGJ+xU8JnG/gsck7lfwmMT9Ch6TuF/BYxL3K3hM4n4Fj0ncr+AxiztReSfM4k70+kGYxZ3o5ZMwizvR8xdhFneip2/CLO5X8D/ol8uc801/xyzuRCd6+8Pp+41m5f+BadyJXgmEafUXAp2n1Z8J9DStPq/8+/l/Pv8bAPNqWO+y3Y8XAAAAAElFTkSuQmCC'; | |
var lindex = 0, dictionary = {}, pair = null, regexp = /[0-9]+|[a-zA-Z]+/g; | |
function capitalise(string) { return string.charAt(0).toUpperCase() + string.slice(1); } | |
function get_style(ele,attr) { | |
if (ele.currentStyle) return ele.currentStyle[attr]; | |
if (window.getComputedStyle) return document.defaultView.getComputedStyle(ele,null).getPropertyValue(attr); | |
} | |
function get_word(word) { | |
var blah = dictionary[word]; | |
while (!blah && !(blah = wordset[lindex])) { lindex = (lindex + 1) % wordset.length; } | |
lindex = (lindex + 1) % wordset.length; | |
if (blah.length < word.length) { | |
blah = blah + blah.substring(0, word.length - blah.length).toLowerCase(); | |
} else if (word.length < blah.length) { | |
blah = blah.substring(0, word.length); | |
} | |
return [[word, capitalise(word), word.toUpperCase(), word.toLowerCase()], [blah, capitalise(blah), blah.toUpperCase(), blah.toLowerCase()]]; | |
} | |
function make_wireframe_box(node, is_image) { | |
if ((node.src == image) || (is_image && !node.src) || get_style(node, 'display') == 'none' || get_style(node, 'visibility') == 'hidden') return; // skip invisible or processed | |
var h = get_style(node, 'height'); | |
var w = get_style(node, 'width'); | |
var img = is_image ? node : document.createElement('img'); | |
if (!is_image && node.getAttribute('style')) img.setAttribute('style', node.getAttribute('style')); | |
node.parentNode.replaceChild(img, node); | |
img.src = image; | |
setTimeout(function() { img.style.height = h; img.style.width = w; }, 100); // if we let datauri render, browser will auto-resize when we change dimensions later | |
} | |
function walk_tree(node) { | |
if (! node) return; | |
if (node.nodeName.match(/script/i)) return; | |
if (node.getAttribute && node.getAttribute("data-loremipsumizer") && node.getAttribute("data-loremipsumizer").match(/\b(no|false)\b/i)) return node.setAttribute("data-loremipsumizer", "yes"); | |
var children = node.childNodes; | |
if (children && children.length > 0) for (var x = children.length-1; x >= 0; x--) { | |
walk_tree(children[x]); | |
} else if ((node.value || node.nodeType == 3) && (node.value || node.nodeValue).replace) { // text node | |
var newvalue = (node.value || node.nodeValue).replace(regexp, function(needle, index, haystack) { | |
if (dictionary[needle]) return dictionary[needle]; // existing | |
if (needle.match(/^\d+$/)) return (dictionary[needle] = (Math.random() + "").substring(2, needle.length+2)); // numbers | |
if (pair = get_word(needle)) for (var y = pair[0].length-1; y >= 0; y--) { | |
dictionary[pair[0][y]] = dictionary[pair[0][y]] || pair[1][y]; // populate various versions | |
} | |
return dictionary[needle]; | |
}); | |
node.value ? node.value = newvalue : node.nodeValue = newvalue; | |
} | |
if (node.nodeName.match(/^(object|iframe|embed|video|img)$/i)) make_wireframe_box(node, (node.nodeName == 'IMG')); | |
} | |
for (var x = nodes.length-1; x >= 0; x--) { walk_tree(nodes[x]); } | |
})([document.body]); | |
document.body.setAttribute('data-loremipsumizer','done'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
bookmarklet: