带格式复制网页内容
Wednesday, May 16, 2007 10:27:45 AM

Add in menu.ini
[Hotclick Popup Menu]
Platform Windows, Item, "Copy text with formatting"="Go to Page, "javascript:(function(){var html_selection=document.createElement('div'); html_selection.appendChild(window.getSelection().getRangeAt(0).cloneContents());var lnks = html_selection.getElementsByTagName('*'); for(var i=0, li; li=lnks[i]; i++){if(li.href)li.href=li.href;if(li.src)li.src=li.src};var fr=document.createElement('iframe'); fr.setAttribute('id', 'tr_dummy');fr.setAttribute('frameborder', '0');fr.setAttribute('style', 'width:0px;height:0px;visibility:hidden;position:absolute;left:-999em;');fr.setAttribute('src', 'data:text/cwf;charset=UTF-8,'+encodeURIComponent('SourceURL:'+document.location+'\r\n\r\n<html><head><meta http-equiv=Content-Type content=\'text/html; charset=utf-8\'></head><body>'+html_selection.innerHTML+'</body></html>'));document.documentElement.appendChild(fr); var tr=document.getElementById('tr_dummy');tr.parentNode.removeChild(tr);})()",,,"Copy""
Autocopy:
Copy autocopy.js in your folder UserJS.
Create MIME type (Ctrl+F12->Downloads->Add) text/cwf and select Open with other application htm2clip.exe
How is it supposed to work?
Sources (innerHTML) of selected text, saving in temp file. Program (htm2clip.exe) read this file, copy html in clipboard, and delete file.
下载htm2clip







