Scripts and Utilities

My "User JavaScripts"

User JavaScripts

, , , , , , , , , , , , , , , ,



Snap links - open multiple links quickly by drawing a box
  • Select the links by dragging mouse around the links to create a box
  • Hold shift key to select all links (otherwise the script will only select big links)
  • Hold alt key if you want to move the rectangle
  • Leave the mouse button to open the selected links in new tabs
  • See Screenshots- UserJS, FF Extension
  • Based on Firefox's Snap Links extension.
-> Screenshot -> Thread -User JavaScript > [UserJS] Snap Links - Open multiple links by drawing rectangle
Find/Replace in textareas
  • To show Find/Replace dialog, press [Ctrl+R] (you can change the shortcut key in script)
  • >Download.
-> Screenshots -> Thread -Desktop wish-list > Search and replace directly in <textarea> (eg. in forums, blogs...)!
Zoom images with mousewheel
  • Hold Alt key then scroll the mouse-wheel up/down over an image to zoom in/out
  • Alt+Click on image to restore to original size
  • Also see this zoom-image menu
-> Thread -User JavaScript > Zoom Image
Remove It Permanently (RIP) - Opera UserJS
  • Remove any element from any page permanently !
  • 1- Download the script to your userjs folder.
  • 2- Create a button with action:
    Execute program, "Path to the downloaded userjs", "%u", "Block", "Transfer Stopped" & Go to page, "javascript: opera.cleanHash()"
  • Then Just hold Ctrl+Shift and click on elements that you want to block then click on the Block button.
-> Screenshot -> Thread - Desktop wish-list > Possibility to remove website-elements permanently
Formatting tools in Quick Reply
  • This script adds formatting tools- B,I,U,CODE etc. in quick reply area,blog comments textarea, message reply and above QuickEdit textarea.
  • You can also use Keyboard shortcuts. Press Ctrl key then the shortcut key. For Example- To activate Bold, press Ctrl then B
  • Download !
  • -- The script reselects the selected text after applying a command. If you dont like that, turn it off by opening the script in notepad and setting AutoReSelect to 0.
-> Screenshots -> Thread - User JavaScript > [UserJs] Code/Formatting Tools in Quick-Reply
Total Validator UserJS
  • Use this button to run the Validator : Validate
  • you can use different buttons for different options.
-> Screenshots -> Thread -Customize Opera > Total Validator for Opera?
Bug Me Not - Logins Fetcher script
  • To run the script: Double click on web page while holding down Ctrl and Shift key.
-> Screenshots -> Thread -UserJS > [request] fixing bug-me-not.js
Google Translation in tooltip v1.8
  • Click the [<<] button to enable the script then Select the text you want to translate.
-> Screenshots -> Thread -UserJS > Google Translation Feature from Google Toolbar also as JS for Opera?
Make image-urls to links+previews -> Thread -Customizing Opera > url to image?
Open/Focus tab opener
  • To use the script, drag Open ^ button to a toolbar and click it to focus/reopen the window/tab opener.
-> Thread -Desktop wish-list > Tab enhancement & History Tree[/SIZE]
BreadCrumb URL -> Thread -Desktop wish-list > Easy selecting part of url...
Linkify text files (not all web pages) -> Thread -UserJS > [REQUEST] A few usefull userjs scripts

WinChanger

Comments

Simon Houstonshoust Friday, April 13, 2007 12:33:09 AM

For BreadCrumb URL I did a length check so if its at top already the bar doesn't show.

if(y.length>2){for(var iX=0,temp,curr=b,X;iX<y.length;iX++){
	if(!y[iX])continue
	X=y[iX]+"/";
	curr+=X;temp=d[s]("A")
	temp.textContent=X
	temp.href=curr
	x.appendChild(temp)
}}

AyushAyushJ Friday, April 13, 2007 1:11:22 AM

I didn't add that because sometimes I use that to Reload the page.

Pallab DeIndyan Friday, May 4, 2007 2:37:49 AM

I love the breadcrumb userjs smile

epilos Wednesday, July 4, 2007 5:43:40 AM

if the text is like this

[img]

the linkifier doesnt linkify it

MitsutomoMitsutomoHonma Tuesday, July 10, 2007 3:22:53 AM

"Google Translation in tooltip v1.8" Really nice Js.
However, I am liking and using the engine of Infosee and Amikai. Then, I want to add under Babelfish. Excuse me, please let me know the portion of following ResultText:.

LangPairs:{"Infoseek-DeJa":'x,x'},
ResultText:
URL:"http://translation.infoseek.co.jp/?selector=0&submit=&outer&svp=OPERA&ac=Text&lng=en&original=%T"

LangPairs:{"NiftyEnJa":'x,x'},
ResultText:
URL:"http://nifty.amikai.com/amitext/indexUTF8.jsp?c_id=nifty&lang=JA&langpair=EN%2CJA&sourceText=%T&translate=%E7%BF%BB%E8%A8%B3%E3%81%99%E3%82%8B&translatedText="

AyushAyushJ Wednesday, July 11, 2007 12:06:23 PM

WHere is the translated text in InfoSeek ?

For Amikai, add:
    ,'Amikai':
        {
            LangPairs:{'English to Japanese':'EN,JA'},
            ResultText:function(){ var form=document.forms.translateForm;return (form && form.translatedText.value) },
            URL:"http://nifty.amikai.com/amitext/indexUTF8.jsp?c_id=nifty&lang=JA&sourceText=%T&langpair=%FROM,%TO&translate=%E7%BF%BB%E8%A8%B3%E3%81%99%E3%82%8B"
        }


MitsutomoMitsutomoHonma Thursday, July 12, 2007 2:54:30 AM

Hi, thanks for the quick reply.
I'm sorry, Infoseek is the question that follows are right.
,'Info-EnJa':
      {
LangPairs:{"Infoseek-EnJa":'x,x'},
ResultText:
URL:"http://translation.infoseek.co.jp/?selector=0&submit=&outer&svp=OPERA&ac=Text&lng=en&original=%T"
       }

---------------------
---------------------
Hey, "Nifty Amikai" worked!.. Nice!
thanks..

AyushAyushJ Thursday, July 12, 2007 12:41:30 PM

Hi, thanks for the quick reply.


whistle

For infoseek:

	,'InfoSeek':
		{
			LangPairs:{'Eng to japanese':'en'},
			ResultText:function(){var form=document.forms.text;return (form && form.converted && form.converted.value) },
			URL:"http://translation.infoseek.co.jp/?selector=0&submit=&outer&svp=OPERA&ac=Text&lng=%FROM&original=%T"
		}

MitsutomoMitsutomoHonma Friday, July 13, 2007 2:59:17 AM

Hi again, thanks for the quick reply.

Hey, "Infoseek" worked!.. Nice!

Thanks AyushJ...

MitsutomoMitsutomoHonma Saturday, July 14, 2007 7:50:15 AM

I am sorry repeatedly- - -

It was tested Amikai(Nifty) translation my friend,

It is said to have horizontal scrolling it.However, it was good in alice-group.amikai.com.

If it checks once again, to be sure, that is right.

If this can be corrected, I will want to need your help very much.

Because I want to add the following addresses again, I need your help with it.

- - - - - - - -
 ,'Excite':
       {
LangPairs:{"ExciteGoogleTtanslateS":'EN,JA'},
ResultText:
URL:"http://www.excite-webtl.jp/world/english/web/body/?wb_url=http://www.google.com/search?hl=en&q=%T&btnG=Google+Search&wb_submit=%96%7C%96%F3&wb_lp=ENJA&wb_dis=3"
          }

 }

 ,'lingvozone':
          {
 LangPairs:{"lingvozone-Maltchi":'x,x'},
 ResultText:
 URL:"http://www.lingvozone.com/dictionary?action=translation_ajax&do=dictionary&language_id_from=23&language_id_to=1001&word=%T&t.x=0&t.y=0"
                       }
 }

AyushAyushJ Saturday, July 14, 2007 1:39:49 PM

It is said to have horizontal scrolling it.


No horizontal scrollbar here.

For LingvoSoft
    ,'LingvoSoft':
        {
            LangPairs:{'English to Spanish':'23,1001'},
            ResultText:function(){var tab=document.body.selectSingleNode('TABLE');if(tab){var e=tab.selectSingleNode('//EMBED');if(e)e.style='width:0;height:0';return '::HTML::'+tab.outerHTML}},
            URL:"http://www.lingvozone.com/onlineforms/dictionary_online_form.jsp?action=translation_ajax&word=%T&language_id_from=%FROM&language_id_to=%TO",
            AllowScripts:1
        }


For Excite:
    ,'Excite':
        {
            LangPairs:{'EN to JA':'EN,JA'},
            ResultText:function(){var form=document.forms.world;if(form&&form.after)return form.after.value},
            URL:"http://www.excite.co.jp/world/english/?before=%T&wb_lp=%FROM%TO"
        }

MitsutomoMitsutomoHonma Sunday, July 15, 2007 4:17:36 AM

Hi again, thanks for the quick reply.

Hey, "Excite" worked!.. Nice!

But "Lingvosoft" did not move.

thanks!

AyushAyushJ Sunday, July 15, 2007 10:21:33 AM

LingvoSoft:
    ,'LingvoSoft':
        {
            LangPairs:{'English to Spanish':'23,1001'},
            ResultText:function(){var tab=document.body.selectSingleNode('TABLE');if(tab){var e=tab.selectSingleNode('//EMBED');if(e){e.style.width=0;e.style.height=0};return '::HTML::'+tab.outerHTML}},
            URL:"http://www.lingvozone.com/onlineforms/dictionary_online_form.jsp?action=translation_ajax&word=%T&language_id_from=%FROM&language_id_to=%TO",
            AllowScripts:1
        }

MitsutomoMitsutomoHonma Sunday, July 15, 2007 12:20:52 PM

Hi again, thanks for the quick reply.

Hey, "Lingvosoft" worked!.. Nice!

I appreciate from the bottom of my heart.

Great thanks!

AyushAyushJ Friday, August 10, 2007 3:06:01 AM

For answers.com tooltip, add in (G)TransIT:
   ,'Answers.com':
      {
         LangPairs:{'Answers.com':''},
         ResultText:function(){var res=document.selectSingleNode('//div[@class="content"]');return res&&('::HTML::'+res.outerHTML) },
         URL:'http://www.answers.com/%T?cat=travel&nafid=3'
      }


Screenshot

See- Anyone ported lookitup to opera?

epilos Wednesday, August 15, 2007 1:28:27 PM

AyushAyushJ Friday, August 17, 2007 2:20:41 AM

@epilos- Linkify works on plain-text files only not on web pages. You can use this script for web pages..

Michael Daumbluesbox Sunday, September 16, 2007 4:51:33 PM

Thanks Ayush for the updated version of the Quick Reply tool. Glad it also works in Opera 9.5 Alpha now.

epilos Sunday, October 7, 2007 6:26:16 AM

thanks but this script
http://userscripts.org/scripts/show/6128

bugs heavily large websites (freezes opera)

DiegoYeGoU Wednesday, October 31, 2007 6:53:34 PM

Grax... estab nuy buenos...

Very _Goood

http://www.letenemo.cl.tc - Letenemo ! Tu punto de encuentro

http://www.portalopera.cl.tc - Portal Opera Comunidad Hispana

Rodrigohogther Thursday, December 6, 2007 12:56:13 PM

Hi Ayush, could you make an Script like "Image link to Lytebox"?

Lytebox: http://www.dolem.com/lytebox/

jabu2oz Tuesday, December 11, 2007 3:31:43 PM

Ayush, any chance of the RIP script working on Linux?

AyushAyushJ Sunday, December 16, 2007 11:00:01 PM

R.Badin- I'll take a look later smile

jabu2oz- Yes, it's possible if you can create a script(bash?) to parse the arguments passed to it then append the parsed string to the end of userjs.

sorry for the late replies. didn't get any notification in my watched list sad

AyushAyushJ Sunday, December 30, 2007 4:58:13 AM

Originally posted by R.Badin:

could you make an Script like "Image link to Lytebox"?


Try Greased Lightbox UserScript smile

Rodrigohogther Sunday, December 30, 2007 8:09:38 PM

Thanks Ayush yes

sonica Monday, January 7, 2008 4:50:22 PM

hello i tested bug me not script on beta 9.5 but the magic wand doesn't work. and i'm not even able to close the windows. is it just me?

Rodrigohogther Saturday, January 19, 2008 12:37:48 AM

Hi Ayush.

What you think about add support to the Snap Links to check multiple check boxes?

Best Reguards

cool trickABHINAV202020 Sunday, January 20, 2008 3:00:57 PM

great scripts.

KryptoKnightAleksOD Wednesday, April 2, 2008 4:03:22 AM

Great post, thanks! up

nizamx Monday, June 16, 2008 12:33:36 PM

Can you make image toolbar like this firefox extension for one click image saving?

http://www.cusser.net/extensions/imagetoolbar/

nizamx Monday, June 16, 2008 5:12:22 PM

Really very useful scripts. Linkyf mostly not working I hope you develop it further and a way for saving pictures with one click would be excellent too.

racingfan Thursday, October 16, 2008 2:14:02 PM

Does find/replace not work on certain sites? I downloaded it today to use it in our content management system at work, and it wouldn't do anything. But when I click in this box I'm typing in now, it comes right up...any ideas?

AyushAyushJ Thursday, October 16, 2008 2:23:02 PM

Originally posted by racingfan:

Does find/replace not work on certain sites? I downloaded it today to use it in our content management system at work, and it wouldn't do anything.


Do you use HTTPS protocol to access your CMS (url like https://cms... ) ? If yes, then enable User JavaScript on HTTPS setting in opera:config, Save and try again.

Merkuri Friday, October 24, 2008 3:48:43 AM

Hey!
Please, I need script to add Quick Reply in forums. Is that possible? smile

AyushAyushJ Friday, October 24, 2008 2:11:39 PM

Originally posted by Merkuri:

Please, I need script to add Quick Reply in forums. Is that possible?


See http://my.opera.com/community/forums/findpost.pl?id=2772110

zoraroZoraro Sunday, October 26, 2008 12:32:07 PM

Hi,
I need some help here. The script below, which I got from opera javascript tutorial page displays user agent, browser version e.t.c. on a bar at the bottom of the browser. I want to modify it to also display the total time left for all transfers (which is show in the transfer panel). What I need is the equivalent command to "navigator.userAgent" or "navigator.appName" to do this. I have searched all over but I couldn't get a list of all allowed commands. Thanks.


{
  document.addEventListener (
    'load',
    function (e) 
    {
      if( !document.body ) {
       return;
      }
    	
      var mydiv = document.createElement('div');
      mydiv.style.position = 'fixed';
      mydiv.style.bottom = '0px';
      mydiv.style.border = '1px solid #000';
      mydiv.style.backgroundColor = '#fff';
      mydiv.style.color = '#000';
      mydiv.appendChild(document.createTextNode("Browser: " + navigator.appName))
      mydiv.appendChild(document.createTextNode("Opera Version: " + navigator.appVersion))
      mydiv.appendChild(document.createTextNode("; Cookies: " + navigator.cookieEnabled))
      mydiv.appendChild(document.createTextNode("; User Agent: " + navigator.userAgent))
    	
      document.body.appendChild(mydiv);
    },
    false
  );
}

AyushAyushJ Sunday, October 26, 2008 12:47:58 PM

Originally posted by Zoraro:

I need some help here. The script below, which I got from opera javascript tutorial page displays user agent, browser version e.t.c. on a bar at the bottom of the browser. I want to modify it to also display the total time left for all transfers (which is show in the transfer panel).



Not possible - you can't get that information with javascript.

zoraroZoraro Sunday, October 26, 2008 7:58:58 PM

Thanks AyushJ for the quick reply. Is it possible with a widget? i.e to display time left for transfers in the widget window.

AyushAyushJ Tuesday, October 28, 2008 2:18:16 AM

Originally posted by Zoraro:

Is it possible with a widget? i.e to display time left for transfers in the widget window.


Unfortunately, no. The only place where this information is available is in Transfers panel and Transfers tab.

dapxin Wednesday, October 29, 2008 9:18:48 AM

Yo Ayush,

I noticed the snap-links userjs seems to conflict with the opera pan (ctrl + alt ) shortcut...Is it me alone ?

AyushAyushJ Wednesday, October 29, 2008 3:35:03 PM

Originally posted by dapxin:

I noticed the snap-links userjs seems to conflict with the opera pan (ctrl + alt ) shortcut


Explain please..

dapxin Thursday, October 30, 2008 8:47:52 AM

Ayush,

sorry If I was vague.

I enabled the "scroll is pan" feature on opera:config.

scroll is pan works well, but as soon as I finish scrolling a page with pan, the snap-links userjs kicks in.

It seems the script is set to trap click+drag on every page, thus making a permanent-scroll-is-pan difficult to use.

It doesn't conflict if I use ctrl+alt + pan on the page tho. Hope this clears things ?

Reza Fathzadehcscat Saturday, November 1, 2008 12:54:43 AM

Hi Ayush,

Does RIP 1.0 work on Yahoo New Mail? (I guess NO!) I want to disable the right side nagging advertisement. But hitting ctrl+shift doesn't bring the ability to remove items in there. But I tested it on some other sites and it works perfectly.

Let me add that when I remove an element from a site, and then refresh by F5 that element is back!!! shouldn't it be removed forever (as long as I have not deleted the cookies of that domain)?!

After removing an element it prompts me with this:
no application is registered with this extension. Why? (FYI: I have enabled error console and shows no error there.)

thx

A.RuzanovLex1 Monday, December 8, 2008 10:36:09 AM

The majority of links does not work because «This snipurl has been deleted» sad

Crazy Virusam2 Tuesday, May 26, 2009 7:46:55 AM

yes yes

Øzikzakatak Friday, August 28, 2009 7:34:47 PM

"Formatting tools in Quick Reply"

is possible to add upload action in the script?

Vladkadvlad Wednesday, September 23, 2009 7:35:52 PM

Re: Breadcrumb URL

While zooming page, the URL is zooming, too.
Any possibility to fix the original size? It'll be more convenient, I guess.
Thanks.

bankr Sunday, December 20, 2009 9:28:24 AM

Thanks for inspiration, Ayush smile
Would you give me some review on my addings to your BreadCrumb URL script:
http://my.opera.com/community/forums/findpost.pl?id=3610411

Merkuri Sunday, January 24, 2010 5:56:58 PM

Thanks Ayush. smile

metude Wednesday, January 27, 2010 4:48:46 PM

Remove_it_permanently doesn't work in Opera 10.5 (3206)...
Could you update script for Opera 10.5?...

Write a comment

You must be logged in to write a comment. If you're not a registered member, please sign up.