Block images from menu Opera
Saturday, 23. June 2007, 19:07:20
Add in [Image Popup Menu] and [Image Link Popup Menu]
And in [Frame Menu]
Block.vbs
For Opera 9.5+
Extended menu for Opera 9.5+ is here.
For Opera 10+
Platform Windows, Item, "Block image"="Copy image address,,,, "Content block image" & Go to Page, "javascript:(function(){var clip='%c';var d = document.selectNodes('//img[@src]');for(var i=0, di; di=d[i]; i++){if(di.src==clip)di.style.display='none !important'};})()" & Execute program, "D:\Opera\misc\Block.vbs" & Content block details, 1"
And in [Frame Menu]
Platform Windows, Item, "Block frame"="Copy frame address,,,, "Content block image" & Go to Page, "javascript:(function(){var clip='%c';var d = document.selectNodes('//iframe[@src]');for(var i=0, di; di=d[i]; i++){if(di.src==clip)di.style.display='none !important'};})()" & Execute program, "D:\Opera\misc\Block.vbs" & Content block details, 1"
Block.vbs
Dim WshShell
Set WshShell = WScript.CreateObject("WScript.Shell")
WScript.Sleep 100
WshShell.SendKeys "{TAB}"
WScript.Sleep 100
WshShell.SendKeys "{ENTER}"
WScript.Sleep 200
WshShell.SendKeys "+{INSERT}"
WScript.Sleep 100
WshShell.SendKeys "{ENTER}"
For Opera 9.5+
[Image Popup Menu]
[Image Link Popup Menu]
;Item, "Block image"="Copy image address,,,, "Content block image" & Show preferences, 14 & Focus Previous Widget & Focus Previous Widget & Focus Previous Widget & Focus Previous Widget & Click Button & Delay, 300 & Focus Next Widget & Focus Next Widget & Click Button & Delay, 100 & Paste & Delay, 100 & Click Default Button & Delay, 100 & Ok"
Item, "Block image"="Copy image address,,,, "Content block image" & Go to Page, "javascript:(function(w){if(w)try{var c=decodeURIComponent('%c');var e=w.document.selectNodes('//img[@src]');for(var i=0,ele;ele=e[i];i++){if(decodeURIComponent(ele.src)==c)ele.style.display='none !important'};for(var j=0,f;f=w.frames[j];j++){arguments.callee(f)}}catch(e){}})(window)" & Show preferences, 14 & Focus Previous Widget & Focus Previous Widget & Focus Previous Widget & Focus Previous Widget & Click Button & Delay, 300 & Focus Next Widget & Focus Next Widget & Click Button & Delay, 100 & Paste & Delay, 100 & Click Default Button & Delay, 100 & Cancel"
[Frame Menu]
;Item, "Block frame"="Copy frame address,,,, "Content block image" & Show preferences, 14 & Focus Previous Widget & Focus Previous Widget & Focus Previous Widget & Focus Previous Widget & Click Button & Delay, 300 & Focus Next Widget & Focus Next Widget & Click Button & Delay, 100 & Paste & Delay, 100 & Click Default Button & Delay, 100 & Ok"
Item, "Block frame"="Copy frame address,,,, "Content block image" & Go to Page, "javascript:(function(w){if(w)try{var c=decodeURIComponent('%c');var e=w.document.selectNodes('//iframe[@src]');for(var i=0,ele;ele=e[i];i++){if(decodeURIComponent(ele.src)==c)ele.style.display='none !important'};for(var j=0,f;f=w.frames[j];j++){arguments.callee(f)}}catch(e){}})(window)" & Show preferences, 14 & Focus Previous Widget & Focus Previous Widget & Focus Previous Widget & Focus Previous Widget & Click Button & Delay, 300 & Focus Next Widget & Focus Next Widget & Click Button & Delay, 100 & Paste & Delay, 100 & Click Default Button & Delay, 100 & Cancel"
Extended menu for Opera 9.5+ is here.
For Opera 10+
[Image Popup Menu]
[Image Link Popup Menu]
;Item, "Block image"="Copy image address,,,, "Content block image" & Show preferences, 13 & Focus Previous Widget & Focus Previous Widget & Focus Previous Widget & Focus Previous Widget & Click Button & Delay, 300 & Focus Next Widget & Focus Next Widget & Click Button & Delay, 100 & Paste & Delay, 100 & Click Default Button & Delay, 100 & Ok"
Item, "Block image"="Copy image address,,,, "Content block image" & Go to Page, "javascript:(function(w){if(w)try{var c=decodeURIComponent('%c');var e=w.document.selectNodes('//img[@src]');for(var i=0,ele;ele=e[i];i++){if(decodeURIComponent(ele.src)==c)ele.style.display='none !important'};for(var j=0,f;f=w.frames[j];j++){arguments.callee(f)}}catch(e){}})(window)" & Show preferences, 13 & Focus Previous Widget & Focus Previous Widget & Focus Previous Widget & Focus Previous Widget & Click Button & Delay, 300 & Focus Next Widget & Focus Next Widget & Click Button & Delay, 100 & Paste & Delay, 100 & Click Default Button & Delay, 100 & Cancel"
[Frame Menu]
;Item, "Block frame"="Copy frame address,,,, "Content block image" & Show preferences, 13 & Focus Previous Widget & Focus Previous Widget & Focus Previous Widget & Focus Previous Widget & Click Button & Delay, 300 & Focus Next Widget & Focus Next Widget & Click Button & Delay, 100 & Paste & Delay, 100 & Click Default Button & Delay, 100 & Ok"
Item, "Block frame"="Copy frame address,,,, "Content block image" & Go to Page, "javascript:(function(w){if(w)try{var c=decodeURIComponent('%c');var e=w.document.selectNodes('//iframe[@src]');for(var i=0,ele;ele=e[i];i++){if(decodeURIComponent(ele.src)==c)ele.style.display='none !important'};for(var j=0,f;f=w.frames[j];j++){arguments.callee(f)}}catch(e){}})(window)" & Show preferences, 13 & Focus Previous Widget & Focus Previous Widget & Focus Previous Widget & Focus Previous Widget & Click Button & Delay, 300 & Focus Next Widget & Focus Next Widget & Click Button & Delay, 100 & Paste & Delay, 100 & Click Default Button & Delay, 100 & Cancel"


Nexus009 # 19. July 2007, 11:03
Darken # 7. September 2007, 20:22
Anonymous # 22. March 2008, 13:20
Thanks :-)
I've been looking for something that would do this for ages and it was easy enough to do once I found out that [Image Popup Menu] and [Image Link Popup Menu] were in standard_menu.ini
Anonymous # 20. August 2008, 05:53
plz tell how 2 use this script?
Anonymous # 28. August 2008, 07:35
plz more explanation !
about Block.vbs
Lex1 # 28. August 2008, 09:05
Nick_Gladman # 20. November 2008, 22:49
Lex1 # 21. November 2008, 09:51
It's bug in my.opera.com. Ask about it at bpm
Anonymous # 21. November 2008, 12:53
cherrs
Eugenemal # 7. December 2008, 20:20
Eugenemal # 7. December 2008, 21:18
Lex1 # 7. December 2008, 21:54
Eugenemal # 9. December 2008, 02:27
Кстати, альфа не перестает меня радовать своим движком - Многое поправили.