My Unclassifiable Pieces

OH MY GOD! I found it at last, viewing selection source!

,

By using some bookmarklets, I can find the way obtaining a 'view selection source' similar to FireFox.
What is needed is a 'view selection' bookmarklet from Opera Browser Wiki :: Opera Bookmarklets Page and 'view source' bookmarklet that I cannot remember where I got it from.

View selection bookmarklet
javascript:(function(){ var d=open().document; d.title="Selection"; if (window.getSelection) { /*Moz*/ var s = getSelection(); for(i=0; i<s.rangeCount; ++i) { var a, r = s.getRangeAt(i); if (!r.collapsed) { var x = d.createElement("div"); x.appendChild(r.cloneContents()); while ((a = x.getElementsByTagName("script")).length) a[0].parentNode.removeChild(a[0]); d.body.appendChild(x); } } } else { /*IE*/ d.body.innerHTML = document.selection.createRange().htmlText; } })();


View source bookmarket
javascript:var oSrcWin=window.open('');oSrcWin.document.write('<pre>'+document.documentElement.outerHTML.replace(/</g,'<')+'</pre>');oSrcWin.document.close();oSrcWin.focus();


Just select something and use 'view selection' bookmarklet first, when a popup shown up just use the 'view source' bookmarklet.


---------------------------------------------------------------------------


Select something


Then it's 'view selection' bookmarket turn.


A popup showing what you've selcted


Now, the 'view source''s turn.


And get what you want!

ของใหม่มา บางอย่างก็หายไป...Download tool of the day: Opera!

Write a comment

New comments have been disabled for this post.

June 2012
S M T W T F S
May 2012July 2012
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30