Skip navigation.

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
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

shoust 13. April 2007, 00:33

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)
}}

AyushJ 13. April 2007, 01:11

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

Indyan 4. May 2007, 02:37

I love the breadcrumb userjs :smile:

epilos 4. July 2007, 05:43

if the text is like this

[img]

the linkifier doesnt linkify it

MitsutomoHonma 10. July 2007, 03:22

"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="

AyushJ 11. July 2007, 12:06

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"
}


MitsutomoHonma 12. July 2007, 02:54

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..

AyushJ 12. July 2007, 12:41

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"
}

MitsutomoHonma 13. July 2007, 02:59

Hi again, thanks for the quick reply.

Hey, "Infoseek" worked!.. Nice!

Thanks AyushJ...

MitsutomoHonma 14. July 2007, 07:50

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"
}
}

AyushJ 14. July 2007, 13:39

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.;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"
}

MitsutomoHonma 15. July 2007, 04:17

Hi again, thanks for the quick reply.

Hey, "Excite" worked!.. Nice!

But "Lingvosoft" did not move.

thanks!

AyushJ 15. July 2007, 10:21

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
}

MitsutomoHonma 15. July 2007, 12:20

Hi again, thanks for the quick reply.

Hey, "Lingvosoft" worked!.. Nice!

I appreciate from the bottom of my heart.

Great thanks!

AyushJ 10. August 2007, 03:06

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


Screenshot

See- Anyone ported lookitup to opera?

epilos 15. August 2007, 13:28

AyushJ 17. August 2007, 02:20

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

bluesbox 16. September 2007, 16:51

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

epilos 7. October 2007, 06:26

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

bugs heavily large websites (freezes opera)

YeGoU 31. October 2007, 18:53

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

hogther 6. December 2007, 12:56

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

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

jabu2oz 11. December 2007, 15:31

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

AyushJ 16. December 2007, 23:00

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 :frown:

AyushJ 30. December 2007, 04:58

Originally posted by R.Badin:

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


Try Greased Lightbox UserScript :smile:

hogther 30. December 2007, 20:09

Thanks Ayush :yes:

sonica 7. January 2008, 16:50

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?

hogther 19. January 2008, 00:37

Hi Ayush.

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

Best Reguards

ABHINAV202020 20. January 2008, 15:00

great scripts.

AleksOD 2. April 2008, 04:03

Great post, thanks! :up:

nizamx 16. June 2008, 12:33

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

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

nizamx 16. June 2008, 17:12

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 16. October 2008, 14:14

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?

AyushJ 16. October 2008, 14:23

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 24. October 2008, 03:48

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

AyushJ 24. October 2008, 14:11

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

Zoraro 26. October 2008, 12:32

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
);
}

AyushJ 26. October 2008, 12:47

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.

Zoraro 26. October 2008, 19:58

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

AyushJ 28. October 2008, 02:18

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 29. October 2008, 09:18

Yo Ayush,

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

AyushJ 29. October 2008, 15:35

Originally posted by dapxin:

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


Explain please..

dapxin 30. October 2008, 08:47

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 ?

cscat 1. November 2008, 00:54

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

Lex1 8. December 2008, 10:36

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

am2 26. May 2009, 07:46

:yes: :yes:

zikzakatak 28. August 2009, 19:34

"Formatting tools in Quick Reply"

is possible to add upload action in the script?

kadvlad 23. September 2009, 19:35

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.

Write a comment

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