Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Is there a widget for Opera that performs a similar function to firefox's Remove It Permanently (it can remove just about any elemnt of a page, picture or not)?

share|improve this question

2 Answers 2

up vote 2 down vote accepted

Add this button: http://operawiki.info/PowerButtons#kill

It highlights in red elements of the page when you hover them. Clicking, pressing enter or pressing space removes the element and goes back into normal mode. Pressing escape goes back into normal mode.

Click it and Opera will ask if you want to add it and it will list its action. In this case this just uses the opera button "Go" action to execute some javascript (a bookmarklet). The button will then be available under "My Buttons" when you customise any toolbar. You can also just drag the button off the page onto any toolbar. However, if you do this, it won't go into "My Buttons". Thus, if you delete it accidentally later you won't be able to add it unless you go back to that wiki page.

The following pages have a lot of useful buttons. There are also several online button creators that allow you to make your own button with icons/actions/labels easily if you are not comfortable editing .ini files manually.

http://operawiki.info/CustomButtons

http://operawiki.info/PowerButtons

Alternatively you can add the same script directly as a bookmarklet. A bookmarklet is a bookmark that contains javascript instead of a url. Bookmarklets work in any browsers that can execute the script properly. In Opera, you can add bookmarkets to the Personal toolbar just like any bookmark, or click them from the Bookmark panel (Ctrl+B) directly. To add a bookmarklet to other toolbars you have to make them into opera buttons. However, the disadvantage of this is that if the script is too long it won't work as an opera button.

Bookmarklet:

javascript:var b=new Array();var c=1;var o=((document.onkeydown==null)||(o==2))?0:1;document.onkeydown=ck;z=document.getElementsByTagName('*');for(i=0;i<z.length;i++){if(z[i].tagName.search(/(HTML|BODY)/i)==-1){z[i].onclick=function(e){t=this;if(window.event) e=window.event;if((t==e.target)||(window.event)) t.parentNode.removeChild(t);if(window.opera) e.stopPropagation();return false;};z[i].onmouseover=function(){if(!c)return;c=0;t=this;b[t]=t.style.backgroundColor;t.style.background='#FF9999';};void(z[i].onmouseout=function(){t=this;t.style.backgroundColor=b[t];c=1;});}}function ck(e){k=window.event?window.event.keyCode:e.keyCode;if((k==27)||o){o=2;document.onkeydown=null;for(i=0;i<z.length;i++){if(z[i].tagName.search(/(HTML|BODY)/i)==-1){z[i].onclick=null;z[i].onmouseover=null;z[i].onmouseout=null;z[i].style.backgroundColor=b[t];}}}}if(o==1) ck(1);
share|improve this answer

Opera has a "block content", accessible by right mouse button on the page.

More details on Opera Help.

Though it works for images and active content, but not for text, for example.


Edit For precisely the HTML elements, I don't really know, I don't think there is such thing. In other things that could be useful, you could choose style for a site, change the appearance of it, with the Opera Style Menu

share|improve this answer
    
I know about that, but it's more of an adblock plus replacement. I'm looking for something that can remove any HTML element from a page. –  RCIX Aug 19 '09 at 22:36

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.