Opera Browser:
How to copy HTML by selecting elements on a web page and clicking the right mouse button.
N.B. You need to enable HTML formatting.
Step 1. Duplicate the menu:
Settings > Preferences > Advanced > Toolbars > Menu Setup > "Opera Standard" --> Duplicate
You will find the duplicated menu setup here: c:\users\username\AppData\Roaming\Opera\Opera\menu
The files name usually is "standard menu (1).ini".
Step 2. Add a menu item:
Edit the menu(1).ini file.
Got to:
[Hotclick Popup Menu]
Copy-paste the lines below:
--------------------
Item, "Copy with formating"=Go to page, "javascript:function sS() {var s = window.getSelection();if (s.getRangeAt && s.rangeCount) {return s.getRangeAt(0);}return null;}function rS(range) {if (range) {var s = window.getSelection();s.removeAllRanges();s.addRange(range);}}",,"Copying with formatting" & Go to page, "javascript:void(tmp=sS());void(document.designMode='on')" & Delay, 300 & Go to page, "javascript:void(rS(tmp))" & Delay, 300 & Copy & Delay, 300 & Go to page, "javascript:void(document.designMode='off')""
Step 1. Duplicate the menu:
Settings > Preferences > Advanced > Toolbars > Menu Setup > "Opera Standard" --> Duplicate
You will find the duplicated menu setup here: c:\users\username\AppData\Roaming\Opera\Opera\menu
The files name usually is "standard menu (1).ini".
Step 2. Add a menu item:
Edit the menu(1).ini file.
Got to:
[Hotclick Popup Menu]
Copy-paste the lines below:
--------------------
Item, "Copy with formating"=Go to page, "javascript:function sS() {var s = window.getSelection();if (s.getRangeAt && s.rangeCount) {return s.getRangeAt(0);}return null;}function rS(range) {if (range) {var s = window.getSelection();s.removeAllRanges();s.addRange(range);}}",,"Copying with formatting" & Go to page, "javascript:void(tmp=sS());void(document.designMode='on')" & Delay, 300 & Go to page, "javascript:void(rS(tmp))" & Delay, 300 & Copy & Delay, 300 & Go to page, "javascript:void(document.designMode='off')""