My programs for Opera

Block images from menu Opera

,

Add in [Image Popup Menu] and [Image Link Popup Menu]
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"

Get File Size setup for OperaoGet 2.5

Comments

Nexus009 Thursday, July 19, 2007 11:03:04 AM

thanks Lex1 cheers

Steve DarkenDarken Friday, September 7, 2007 8:22:40 PM

Thanks. yes

Unregistered user Saturday, March 22, 2008 1:20:45 PM

Anonymous writes: 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

Unregistered user Wednesday, August 20, 2008 5:53:08 AM

Anonymous writes: plz tell how 2 use this script?

Unregistered user Thursday, August 28, 2008 7:35:56 AM

Anonymous writes: plz more explanation ! about Block.vbs

Gladman-Ru Thursday, November 20, 2008 10:49:15 PM

bad link

A.RuzanovLex1 Friday, November 21, 2008 9:51:07 AM

Extended menu(with blocking images) is here and in the first post.

bad link


It's bug in my.opera.com. Ask about it at bpm

Unregistered user Friday, November 21, 2008 12:53:36 PM

Anonymous writes: cherrs

EugeneEugenemal Sunday, December 7, 2008 8:20:34 PM

Давно это искал, Thanks.

EugeneEugenemal Sunday, December 7, 2008 9:18:40 PM

Отредактировал C:\Documents and Settings\Юзер\Application Data\Opera\Opera 10 Preview\profile\menu\default в опера 10 - не помогло. Лекси подскажи какой файл редактировать плз.

A.RuzanovLex1 Sunday, December 7, 2008 9:54:00 PM

Лучше будет переименовать default в default.ini и поменять в нём все три вхождения «Show preferences, 14» (без кавычек) на «Show preferences, 13». После чего перезапустить браузер и убедиться что меню выбрано в Ctrl+F12→Дополнительно→Панели.

EugeneEugenemal Tuesday, December 9, 2008 2:27:18 AM

Спасибо огромное, разобрался.
Кстати, альфа не перестает меня радовать своим движком - Многое поправили.

xpyctjawii Sunday, December 13, 2009 4:24:38 PM

Здорово! Присоединяюсь!!!

Unregistered user Tuesday, March 29, 2011 2:28:44 PM

Anonymous writes: Block image menu item doesn't work on Opera 11.01 :( ¿Any idea?

Write a comment

New comments have been disabled for this post.