Skip navigation

Sign up | Lost password? | Help

My program for Opera

Posts tagged with "adblock"

AdBlock for Opera - analogue of «Adblock Plus: Element Hiding Helper»

adblock_setup.zip (130Kb)

UserJS-only version: adblock.js (backport from Chrome; use Alt+Shift+B for blocking and Alt+Shift+U for unblocking. Press Alt+Shift+E for editing styles).

This tool used for easily blocking of page elements (and text ads). You simply select the element you want to be block. The element hiding rule is generated and added in Adblock+.css automatically.

Installation:
Copy and select the menu in Ctrl+F12-Advanced-Toolbars. Close Opera, start AdBlock_setup.exe, specify the folder of Opera.
Enable style AdBlock+ in menu View-Style. Install adblock.js as usually.
Now you can block an element from the context menu of page, or having used button AdBlock+.


P.S. Rip.js it's good thing, but the page at first is loaded and only contents then disappear. On my connect, it looks ugly.

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"