Sign up | Lost password? | Help

[ advanced search ]

Possibility to remove website-elements permanently

Forums » Opera Community » Opera for desktop » Desktop wish-list

Go to last post

Saturday, 7. April 2007, 11:59:50

M3CSL

avatar

Posts: 210

Germany

Possibility to remove website-elements permanently

Hi,

I don't want a new ad-blocking system, I only want to remove different
elements from web pages permanently. This elements could be parts of a
table or text passages for example.

I got inspired by the Firefox extension RIP: http://rip.mozdev.org/

Example: rip-heise.png

Greetings, M3CSL

Monday, 9. April 2007, 18:29:01

mehmettev

avatar

Posts: 13

+1

The best ad-blockers are the people themselves :D
(Sorry for my english :D)

Tuesday, 10. April 2007, 15:19:00

Danltn

avatar

Posts: 58

Try the Kill button, it isn't permanent however.

http://operawiki.info/PowerButtons

You MUST drag it to the bar, not click and drag from customise.

Otherwise, +1!

Friday, 20. April 2007, 12:01:43

M3CSL

avatar

Posts: 210

Germany

Thank you Danltn, the Kill button is great. It would be perfect if its changes would be permanent.

CU

Friday, 20. April 2007, 12:23:14

HaJotKE

Grumbling Hyper-Critical Cantankerous Curmudgeon!

avatar

Banned User

Germany

Originally posted by M3CSL:

I only want to remove different elements from web pages permanently.

Originally posted by M3CSL:

It would be perfect if its changes would be permanent.

Do you want to store the modified pages afterwards or what is your intention? :confused:

Saturday, 21. April 2007, 15:52:26

M3CSL

avatar

Posts: 210

Germany

Originally posted by HaJotKE:

Do you want to store the modified pages afterwards or what is your intention?



No, I don't want to save the pages on my harddisk. I want Opera to remove the previous removed elements automatically on every visit of the modified page. Thus like the "Block content" feature, but not only for images.

Sunday, 29. April 2007, 09:06:37

AyushJ

avatar

Posts: 4754

are you using windows ?

Sunday, 29. April 2007, 10:02:01

try out right click + "Block Content"

Sunday, 29. April 2007, 11:57:04

M3CSL

avatar

Posts: 210

Germany

Originally posted by AyushJ:

are you using windows ?



Yes, WinXP. Why?

Sunday, 29. April 2007, 11:58:21

M3CSL

avatar

Posts: 210

Germany

Originally posted by voessli:

try out right click + "Block Content"



I know this feature, but it can't block tables or text passages.

Sunday, 29. April 2007, 12:36:24 (edited)

AyushJ

avatar

Posts: 4754

Originally posted by M3CSL:

Yes, WinXP. Why?



then try :
Remove It Permanently (RIP) for Opera

install the userjs >> how ?

then go to : Buttonmaker
and create a button with following action (enter the following in just write the action as plain text: field) :

Execute program, "USERJS PATH", "%u", Block, Stop & Go to page, "javascript:opera.cleanHash()"


^^ replace USERJS PATH with the path of the userjs.

then drag the created button to a toolbar.
--

After doing all that, you can go to any website, hold Ctrl+Shift and then click on elements to block and then on the Block button to Save changes!


You can also install the RIPS

Saturday, 5. May 2007, 16:22:32

M3CSL

avatar

Posts: 210

Germany

Originally posted by AyushJ:

After doing all that, you can go to any website, hold Ctrl+Shift and then click on elements to block and then on the Block button to Save changes!



Unbelievable, it works! Thank you, your UserJS is great. But it isn't perfect: it occurs that the script threw an error message and didn't save some changes and it doesn't work on this sites:
http://www.tvtv.de/
http://www.teltarif.de/

Therefore I think it would be better, if the same functionality would be integrated in Opera directly.

CU M3CSL

Saturday, 5. May 2007, 16:40:26

AyushJ

avatar

Posts: 4754

Originally posted by M3CSL:

http://www.tvtv.de/


That's because they are using lots of frames :frown:

Originally posted by M3CSL:

http://www.teltarif.de/


Works fine .. :confused:


Sunday, 6. May 2007, 10:37:24

M3CSL

avatar

Posts: 210

Germany

Originally posted by AyushJ:

Works fine ..



I don't know what the reason is. Without www it works on my Opera too: http://teltarif.de/

Wednesday, 23. May 2007, 00:56:51

zgl

avatar

Posts: 4

How can I undo/unblock changes?

Wednesday, 23. May 2007, 01:22:18

AyushJ

avatar

Posts: 4754

Originally posted by zgl:

How can I undo/unblock changes?




You have to edit the file for that :frown:
Open the script in notepad and remove the BLOCKED__.add(URL,XPATH) line(s) from the end of script.

Friday, 8. June 2007, 22:09:58

Hm.. it doesn't work for me.. when I click the button, it just opens my user js folder and deletes the selected elements from the page, but when I reload the page, everything is back... and, when creating the button, I'm told (twice) that there are too many commas in the action...
on another note, any chance of extending http://my.opera.com/community/forums/topic.dml?id=180342 to wikipedia et al? :smile:

Friday, 8. June 2007, 23:50:49

shoust

Operaised

avatar

Posts: 3013

United Kingdom

@Thomas82d That is because the javascript file needs to be parsed by windows as javascript, so make sure .js files aren't opened by any text editor and are opened by windows scripting engine.

Saturday, 9. June 2007, 22:40:34

AyushJ

avatar

Posts: 4754

Originally posted by Thomas82d:

Hm.. it doesn't work for me.. when I click the button, it just opens my user js folder and deletes the selected elements from the page, but when I reload the page, everything is back... and, when creating the button, I'm told (twice) that there are too many commas in the action...



Open your Toolbar Setup File and find the line of Block button and post it here.
Also check what shoust said.

Tuesday, 12. June 2007, 12:12:11

I'm sorry, forgot to answer - shoust's idea did it for me. Now it works like a charm :up:
I'm just wondering why this script (as well as some other scripts, like AyushJ's translate script or the robosticky) won't work on some sites, like torrent.to or onlinetvrecorder.com... is it possible to fix that? (other scripts, like http://userjs.org/scripts/browser/enhancements/zoom-image , work there..)
And I'd propose to use ctrl-alt instead of crtl-shift as trigger for the RIP ujs, because crtl-shift is already used for opening links in the background...:whistle:
Cheers,
Thomas

Tuesday, 12. June 2007, 12:32:07

AyushJ

avatar

Posts: 4754

The torrent.to site is using Frames and this script doesn't work inside frames :frown:

Wednesday, 5. September 2007, 09:24:00

kinnik

avatar

Posts: 227

Can it block element instantly,never show on screen?
Now after I load a page,the blocked element would flash a second on screen then disappear.

Sunday, 7. October 2007, 06:21:36

epilos

avatar

Posts: 1518

I get this error trying to create the button

Sunday, 7. October 2007, 08:06:24

epilos

avatar

Posts: 1518

also, can you change the shortcut and make it trigger only when we click the button? because, it interferes with the ctrl+shift+click to open links in background tabs

and last, how do I see which webpages I have modified and what elements I have set for removal?

thanks

Friday, 12. October 2007, 00:36:23

jabu2oz

avatar

Posts: 153

Originally posted by AyushJ:

are you using windows ?



Will the script not work in Linux? I have tried it, but it kept giving errors about the "path to userjs" folder

Wednesday, 5. March 2008, 03:38:27 (edited)

linguistic

avatar

Posts: 2

I realise that this is effectively raising the dead, but I've looked in vain for anything that comes close to the functionality provided by RIP.

Firstly, for anyone having hassles when creating the button: If it's complaining you have too many commas, this is because the code for button creation that Ayush has provided already includes the title and icon for the button - in other words, when you attempt to add your own title and icon, it'll think you have too many parameters.

The easy solution is to just go with the defaults Ayush provides and not enter a title or choose an icon.

Secondly, for those who find clicking on the button opens their userjs folder - when creating your button, you need to replace the text
USERJS PATH
with the full path to the RIP JS file. If the path you've included is only to the folder and not the file itself, this is why you're having this issue.

Thirdly, if you're clicking the button and it's loading up your favourite code environment/text editor with the contents of the RIP JS file, you'll (unfortunately) need to change your file associations so that the Windows Scripting Host is the default program for .JS files.

Fourthly, if you're me, you're a noob to creating custom buttons and you've never used userJS... you've worked all this out, you've associated JS files with the Windows Scripting host... but clicking the button does nothing at all - then, um... you're kind of lost.

Anyone give me any help here?

EDIT:
I should add that the script itself runs fine; if I go into the file and manually add the elements to be removed, it's flawless. The fault appears to lie with the button, which doesn't add the elements to the script, so it seems.

Thursday, 6. March 2008, 00:45:18 (edited)

HaJotKE

Grumbling Hyper-Critical Cantankerous Curmudgeon!

avatar

Banned User

Germany

All your observations are correct... :D

AFAICS, there is additionally a forum's flaw interfering, "&" is erroneously translated into "&" within text and code sections of postings, as used by *AyushJ* above:
Thus

Execute program, "USERJS PATH", "%u", Block, Stop & Go to page, "javascript:opera.cleanHash()"

should read

Execute program, "USERJS PATH", "%u", Block, Stop & Go to page, "javascript:opera.cleanHash()"


Furthermore I got two different versions from Buttonmaker, depending on the OPERA version I used:
(as seen from the toolbars.ini file)

Button#(V9.26), "Block"="Execute program, "E:\Programme\Opera\program\userjs\Remove_it_permanently-for_Opera.js", "%u", "Block", "Stop" & Go to page, "javascript:opera.cleanHash()""

Button#(V9.50), "Block"="Execute program, "E:\Programme\Opera\program\userjs\Remove_it_permanently-for_Opera.js", "%u", "Block", "Stop" & External action, "Go to page, "javascript:opera.cleanHash()"""

One has to manually edit these strings, as far as this "&" thingy is concerned... :frown:

Thursday, 6. March 2008, 00:08:35

linguistic

avatar

Posts: 2

Works like a charm!

Looks like button creation was the problem there... I had a few entries in my toolbar config file that didn't look anything like the content I entered into the button script.

Hmm.

You're a lifesaver, Hajotke!

And for anyone else having issues with the button not working: just entering a fresh button into your config file manually is a surefire way (be sure to close Opera before making changes to it).

Monday, 16. June 2008, 15:26:32

nizamx

avatar

Banned User

I have the same error on 9.5 final

Monday, 30. June 2008, 09:54:45

Jammet

avatar

Posts: 87

Is there any way to get this to work with Linux Opera? No Windows Scripting Host around. Opera instead asks me if I want to edit the helper applications (for MIME) if i click that button.

That's a bummer.

There was this other, kill button that removes stuff, works like a charme, but nothing is permanent. One refresh and all the stuff I do not wish to see is back.

Friday, 4. July 2008, 12:21:19

nizamx

avatar

Banned User

When I go to Buttonmaker it says too much parameters. I can still add the button but when I click that button the path which I entered opens, help please.

Sunday, 6. July 2008, 17:27:50

TheInvoker

avatar

Posts: 29

Search around...i had the same problem but i don't remember how was the wrong thing exactly
-Be sure to add the right path (including the file,not only the folders) to the file .js
-Don't add any icon
-In Opera advanced preferences go to "download". Files ".js" must be opened with windows script.....and so must be in Windows.

A question
How can i block an object for all the domain?

Sunday, 6. July 2008, 21:26:49

jabu2oz

avatar

Posts: 153

Hopefully one day this can be ported to work on Linux aswell

Monday, 7. July 2008, 19:16:58

TheInvoker

avatar

Posts: 29

i hope it because on Linux (KDE) Opera works better than Firefox

Wednesday, 9. July 2008, 19:51:35 (edited)

Hey guys, got a problem with the content selection thing in RIP.

I hold Ctrl & Shift and guess what. Nothing happens.

I'm running latest opera (Version 9.51,Build 10081) on my Windows XP.

Friday, 8. August 2008, 10:22:00

HaJotKE

Grumbling Hyper-Critical Cantankerous Curmudgeon!

avatar

Banned User

Germany

I wonder if it would be possible to RIP some always identical parts from a title tag,
e.g. from <title>LEO Ergebnisse für "allerdings"</title>
the first three words so that
e.g. <title>"allerdings"</title>
would always result. :confused:

Monday, 22. September 2008, 15:12:27

rolandb313

avatar

Posts: 63

Works great, but doesn't work in Hotmail. Any way to fix that? Thanks!

Wednesday, 1. October 2008, 13:04:52

Hy.
I like the script very much :yes: , but it was annoying that whenever i pressed CTRL+Shift it activated :no: . So, i've modified the script a little and made a button that would toggle the script on and off .

You can download the modified script (i can't take credit for the script, it's AyushJ's work) from HERE.

On the ButtonMaker site i've made a new button with the following code :
"Go to page, "javascript:opera.RIP.Toggle();", , "Toggle RIP", "Mail Spam""
Now, when i press the button it activates/deactivates the script (which is deactivated by default).

Here are my changes :

1. changed
(function() {
(7th line) to
(opera.RIP = new function() {
2. added
var enabled=0
this.Toggle = function(){
if (enabled != 1){
alert("RIP for Opera : ACTIVATED")
enabled=1
}
else{
alert("RIP for Opera : deactivated")
enabled=0
}
}
right after
var notify=1
3. changed the line that checks if it should active from
if(e.ctrlKey&&e.shiftKey){
to
if(e.ctrlKey&&e.shiftKey&&enabled){


:idea: In order to add a new element to be filtered, first you press the button, it activates the filter editing, and then you just go over the element with CTRL+Shift pressed, click on it and a red border appears. After you selected all elements you want filtered (selecting a selected element will deselect it), you press the other button (the one given by Ayush) and it will add them to the list. You will be shown a message box when you toggle the script ON/Off, so you know it's active or not. This might be done in a nicer way, but the alerts work for me just fine :happy:

Hope this helps.

Wednesday, 1. October 2008, 18:21:40

grotos

avatar

Posts: 31

Poland

What about a solution based on CSS? I mean something similiar to Opera Dragonfly: you click on an element which you want to remove, then a CSS file is created with display:none property.
I am aware that it wouldn't be so efficient (especially in table-based design), there would be some problems with selectors.

Tuesday, 11. November 2008, 16:33:21

jabu2oz

avatar

Posts: 153

Instead of using albuemil's tweak above, I just changed the activation keys to ALT + SHIFT (don't think Opera uses that elsewhere?):

Find:
if(e.ctrlKey&&e.shiftKey){

and change to:
if(e.altKey&&e.shiftKey){


Still, it's not a perfect solution :frown:

Eventually, I'm looking for something with similar power as Adblock Element Hider. Ideally, this could be extended into Opera's "Block Content" feature.

Friday, 14. November 2008, 16:18:43

FRauter

avatar

Posts: 6

Hi,

I think that is an excelent idea and should be integrated in Opera! +1

Monday, 15. December 2008, 20:59:59

Ideally, this could be extended into Opera's "Block Content" feature.


Not real. urlfilter.ini has no such possibilities.

What about a solution based on CSS?


http://my.opera.com/Lex1/blog/2008/12/15/adblock-for-opera-analogue-of-adblock-plus-element-hiding-helper

Wednesday, 17. December 2008, 02:39:31

Originally posted by voessli:

try out right click + "Block Content"


that's not good enough, sometimes i just want to block content wich is not an image or a flash or an add.
+1
should work like rip, because i've used it and i liked it.

Sunday, 11. January 2009, 17:17:49

Jammet

avatar

Posts: 87

Is there someone who can make something like this work for all versions of Opera 9 or 10? Meaning, Linux, Windows, Mac, all alike? For some reason, most of these solutions come with SETUP.EXE files and come with absolutely inadequate readme's as to how they work and how you can install them manually.

Sunday, 12. April 2009, 13:32:05

Originally posted by albuemil:

Hy.
I like the script very much :yes: , but it was annoying that whenever i pressed CTRL+Shift it activated :no: . So, i've modified the script a little and made a button that would toggle the script on and off .

You can download the modified script (i can't take credit for the script, it's AyushJ's work) from HERE.

On the ButtonMaker site i've made a new button with the following code :

"Go to page, "javascript:opera.RIP.Toggle();", , "Toggle RIP", "Mail Spam""
Now, when i press the button it activates/deactivates the script (which is deactivated by default).

Here are my changes :

1. changed
(function() {
(7th line) to
(opera.RIP = new function() {
2. added
var enabled=0
this.Toggle = function(){
if (enabled != 1){
alert("RIP for Opera : ACTIVATED")
enabled=1
}
else{
alert("RIP for Opera : deactivated")
enabled=0
}
}
right after
var notify=1
3. changed the line that checks if it should active from
if(e.ctrlKey&&e.shiftKey){
to
if(e.ctrlKey&&e.shiftKey&&enabled){


:idea: In order to add a new element to be filtered, first you press the button, it activates the filter editing, and then you just go over the element with CTRL+Shift pressed, click on it and a red border appears. After you selected all elements you want filtered (selecting a selected element will deselect it), you press the other button (the one given by Ayush) and it will add them to the list. You will be shown a message box when you toggle the script ON/Off, so you know it's active or not. This might be done in a nicer way, but the alerts work for me just fine :happy:

Hope this helps.


i added on/off button but it didnt worked . so i wanted to use it without on/off button ( like before ) but i get this error because of i edited the userjs file .



am i doing something wrong or there is an error with your modified version ?
thank you .

Monday, 13. April 2009, 19:57:14

and how can i make a exclude list , how can i use wildcard without opening userjs file ( from browser like opera's content blocking ) ?
sorry for double post but i cannot edited previous post because of 1 day edit limit .

Sunday, 10. May 2009, 23:00:05

after a month any idea ? :smile:

Forums » Opera Community » Opera for desktop » Desktop wish-list