3 ms·
This seems like a lot of code... Here's what I use: javascript:void(document.body.innerHTML = document.getElementsByTagName("pre")[0].innerHTML.replace(/&a
by rcfox 14y ago
This seems like a lot of code... Here's what I use:
javascript:void(document.body.innerHTML = document.getElementsByTagName("pre")[0].innerHTML.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/ /g," "));
(Note: I've only tested this on Chrome.)
- redment 14y agoMost of the code is for mapping css and js files to the relative raw pages. Try your code on this page: https://raw.github.com/mrdoob/three.js/46c0a8434d3f269741a887f484cc555c3d3f29c7/examples/canvas_interactive_cubes_tween.html https://raw.github.com/mrdoob/three.js/46c0a8434d3f269741a88... And compare it with githtml on the /blob/ version of the same page: https://github.com/mrdoob/three.js/blob/master/examples/canvas_interactive_cubes_tween.html https://github.com/mrdoob/three.js/blob/master/examples/canv...
- rcfox 14y agoCSS works fine. (Try this one: https://raw.github.com/twitter/bootstrap/master/docs/index.html https://raw.github.com/twitter/bootstrap/master/docs/index.h...) I suspect that JS that didn't depend on the page-load to trigger it would work too. I had never considered looking at JS-enabled pages though. When I wrote my bookmarklet, I just needed to view static documentation. Edit: I found a page with only on-click JS events, and they didn't work. Oh well...
- redment 14y agoFixed now.