Skip navigation.

带格式复制网页内容

,



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><!--StartFragment-->'+html_selection.innerHTML+'<!--EndFragment--></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

funShow link to download Youtube video in all browser use admuncher

Write a comment

You must be logged in to write a comment. If you're not a registered member, please sign up.

December 2009
S M T W T F S
November 2009January 2010
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 31