Saturday, 7. April 2007, 11:59:50
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
Tuesday, 10. April 2007, 15:19:00
http://operawiki.info/PowerButtons
You MUST drag it to the bar, not click and drag from customise.
Otherwise, +1!
Friday, 20. April 2007, 12:23:14
Originally posted by M3CSL:
I only want to remove different elements from web pages permanently.
Originally posted by M3CSL:
Do you want to store the modified pages afterwards or what is your intention?It would be perfect if its changes would be permanent.
Saturday, 21. April 2007, 15:52:26
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, 12:36:24 (edited)
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
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
Originally posted by M3CSL:
That's because they are using lots of frames
Originally posted by M3CSL:
Works fine ..
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/
Friday, 8. June 2007, 22:09:58
on another note, any chance of extending http://my.opera.com/community/forums/topic.dml?id=180342 to wikipedia et al?
Friday, 8. June 2007, 23:50:49
Saturday, 9. June 2007, 22:40:34
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 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...
Cheers,
Thomas
Wednesday, 5. March 2008, 03:38:27 (edited)
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)
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
should readExecute program, "USERJS PATH", "%u", Block, Stop & Go to page, "javascript:opera.cleanHash()"
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...
Thursday, 6. March 2008, 00:08:35
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, 30. June 2008, 09:54:45
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
Sunday, 6. July 2008, 17:27:50
-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?
Wednesday, 9. July 2008, 19:51:35 (edited)
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
e.g. from <title>LEO Ergebnisse für "allerdings"</title>
the first three words so that
e.g. <title>"allerdings"</title>
would always result.
Monday, 22. September 2008, 15:12:27
Wednesday, 1. October 2008, 13:04:52
I like the script very much
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=13. changed the line that checks if it should active from
if(e.ctrlKey&&e.shiftKey){ to if(e.ctrlKey&&e.shiftKey&&enabled){
Hope this helps.
Wednesday, 1. October 2008, 18:21:40
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
Find:
if(e.ctrlKey&&e.shiftKey){
and change to:
if(e.altKey&&e.shiftKey){
Still, it's not a perfect solution
Eventually, I'm looking for something with similar power as Adblock Element Hider. Ideally, this could be extended into Opera's "Block Content" feature.
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
Sunday, 12. April 2009, 13:32:05
Originally posted by albuemil:
Hy.
I like the script very much, but it was annoying that whenever i pressed CTRL+Shift it activated
. 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. addedvar enabled=0 this.Toggle = function(){ if (enabled != 1){ alert("RIP for Opera : ACTIVATED") enabled=1 } else{ alert("RIP for Opera : deactivated") enabled=0 } }right aftervar notify=13. changed the line that checks if it should active fromif(e.ctrlKey&&e.shiftKey){toif(e.ctrlKey&&e.shiftKey&&enabled){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
![]()
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
sorry for double post but i cannot edited previous post because of 1 day edit limit .
Forums » Opera Community » Opera for desktop » Desktop wish-list

