Sign up | Lost password? | Help

[ advanced search ]

[REQUEST] A few usefull userjs scripts

Forums » Opera Community » General Opera topics » User JavaScript

Go to last post

Sunday, 4. March 2007, 21:48:58

ThunderFire

avatar

Banned User

[REQUEST] A few usefull userjs scripts

These are for the Javascript experts around here :smile:

Request 1:
There are two useful userjs scripts for Opera, one found in UserJS linkify-txt.js,
the other here in the forums from an Opera user (couldn't locate original post) syntax-highlighting.js

The second script has a nice feature, it creates a pane on top with buttons, allowing users to choose
to highlight or not the text (and displays a nice "wait" message)

The first script "linkifies" without notice. I would like to modify it to display on top a similar pane like
the second script (of course to perform linkify action not highlight).

Anyone up to the task?

Request 2:
Go to http://viamatic.com/firefox and check the AJAX Yahoo! Mail script for Opera. It's a nice addition,
but I can't make it work. Any ideas what's the problem?

Monday, 5. March 2007, 04:50:33

AyushJ

avatar

Posts: 4754

There are two useful userjs scripts for Opera, one found in UserJS linkify-txt.js,
the other here in the forums from an Opera user (couldn't locate original post) syntax-highlighting.js

The second script has a nice feature, it creates a pane on top with buttons, allowing users to choose
to highlight or not the text (and displays a nice "wait" message)

The first script "linkifies" without notice. I would like to modify it to display on top a similar pane like
the second script (of course to perform linkify action not highlight).

Anyone up to the task?



Linkify-Text [MODIFIED]

Note: I removed the Wait feature from Linkify script.

Monday, 5. March 2007, 09:45:55

ThunderFire

avatar

Banned User

Great!

Thanks Ayush!

Monday, 12. March 2007, 16:38:19

Josef K.

avatar

Posts: 13

linkify script seems not to work for me :\
any idea why?

Monday, 12. March 2007, 17:32:21

ThunderFire

avatar

Banned User

Not sure, both the original and the modified work for me.
Just place it on your 'user.js' folder and it should work.

I am running Opera 9.10 build 8679 on Windows XP (MCE) - SP2

Wednesday, 14. March 2007, 16:04:24

Josef K.

avatar

Posts: 13

no it doesn't :\
(same opera, (almost) same OS (winxp sp2))

Wednesday, 14. March 2007, 16:35:32

AyushJ

avatar

Posts: 4754

Originally posted by Josef K.:

no it doesn't :\



can you give a test link and errors in error console (if any)

btw, it will show the prompt only if you open a url that ends with .txt or .js or .css or .nfo.

Wednesday, 21. March 2007, 11:51:20

Josef K.

avatar

Posts: 13

I finally got the answer! ^______^
the script works only with url that start with http://
when the original linkify addon from firefox don't need it
is it possible to fix it?

Wednesday, 28. March 2007, 13:58:45

Josef K.

avatar

Posts: 13

seems I spoke too early :frown: (made a test just with a txt)
there're still http urls not properly displayed
i.e. at this page or at this one ?_?

Wednesday, 28. March 2007, 20:52:34

AyushJ

avatar

Posts: 4754

as i said, the script will show the prompt only if you open a url that ends with .txt or .js or .css or .nfo.

Thursday, 29. March 2007, 06:51:57

Josef K.

avatar

Posts: 13

sorry if I insist
but it seems not working for me this way (and I can't realize why)
seems it convert most all kind of url with a proper prefix in a blank file, but don't work with any url for web pages?!
http://www.opera.com
http://my.opera.com
http://www.opera.nfo
http://www.opera.org
https://my.opera.com/test.txt
https://my.opera.com/test.jpg

but I can't realize why this url

http://freehaven.net/~squires/torbutton

is correctly shown in this post but not in the web-page I've posted

PS
the errors I get on that page are

CSS - https://addons.mozilla.org/css/thickbox.css
Linked-in stylesheet
Declaration syntax error
Line 40:
   filter:alpha(opacity=60);
  --------------------------^
CSS - https://addons.mozilla.org/css/thickbox.css
Linked-in stylesheet
-moz-opacity is an unknown property
Line 41:
   -moz-opacity: 0.6;
  --------------^
CSS - https://addons.mozilla.org/css/thickbox.css
Linked-in stylesheet
Declaration syntax error
Line 121:
   filter:alpha(opacity=0);
  -------------------------^
CSS - https://addons.mozilla.org/css/thickbox.css
Linked-in stylesheet
-moz-opacity is an unknown property
Line 122:
   -moz-opacity: 0;
  --------------^
CSS - https://addons.mozilla.org/css/thickbox.css
Linked-in stylesheet
_margin-bottom is an unknown property
Line 131:
   _margin-bottom:1px;
  ----------------^
CSS - https://addons.mozilla.org/css/rustico.css
Linked-in stylesheet
Unknown pseudo class
Line 728:
  table.dalvay-table tr:target td { background: yellow; }
  ----------------------------^
CSS - https://addons.mozilla.org/css/rustico.css
Linked-in stylesheet
-moz-border-radius is an unknown property
Line 775:
      -moz-border-radius: 10px;
  -----------------------^

Saturday, 31. March 2007, 23:44:37

Deass

avatar

Posts: 61

Argentina

I am using from the same site, UserJS, the Linkifier Plus, and it works wonderful.
Maybe it could be fixed with some pages, when it is replaced http:// with hxxp://, but it isn´t really important.
You can test it here

Tuesday, 17. April 2007, 14:35:57

Nxqd3051990

GTD

avatar

Posts: 177

Viet Nam

Very nice deass
It works like a champ :smile:
nXqd

Tuesday, 24. April 2007, 05:47:24

Nxqd3051990

GTD

avatar

Posts: 177

Viet Nam

Originally posted by Deass:

I am using from the same site, UserJS, the Linkifier Plus, and it works wonderful.
Maybe it could be fixed with some pages, when it is replaced http:// with hxxp://, but it isn´t really important.
You can test it here


I found that, it's not work with the links in tag code :smile:

nXqd

Friday, 27. April 2007, 21:06:30

fdisk2k

avatar

Posts: 48

Peru

I have this problem (Ajax Yahoo) when I upgraded to the new version (9.20).

When I try to use, I no longer see the left pane.

Any hint or fix to this issue?

Regards

Friday, 15. August 2008, 08:00:29

cooolway

avatar

Posts: 27

Originally posted by Nxqd3051990:

Originally posted by Deass:

I am using from the same site, UserJS, the Linkifier Plus, and it works wonderful.
Maybe it could be fixed with some pages, when it is replaced http:// with hxxp://, but it isn´t really important.
You can test it here


I found that, it's not work with the links in tag code :smile:

nXqd


Yea, that's where I really want it.

Forums » Opera Community » General Opera topics » User JavaScript