Lost password? | Help

[ advanced search ]

Go to last post

Thursday, 18. September 2003, 22:06:34

MarcFou

avatar

Posts: 4460

Bookmarklets Thread

18 bookmarklets divided into two categories. "My Searches" & "My Tools". The search bookmarklets gives you quick access to Google, Yahoo, Image search, spell check and more.

The tools have things like, Email page with URL and last updated date, count characters in a form, open all images in a new page, Highlight text and more.

I exported the bookmarklets to an Opera Bookmarks file. Download the zip and extract the file. In Opera goto File, Import, Opera Bookmarks. Select the extracted file.

Note: This will not overwrite your existing bookmarks. They are safe :wink:
If you have a folder selected in the bookmarks panel, thats where the two folders of bookmarklets will end up.

Tip: Right click each folder "My Searches" & "My Tools" and select the option to show on the personal bar. This gives you fast access to them.

Please post comments and your own bookmarklets!

bookmarklets.zip

Thursday, 18. September 2003, 22:09:09

akh

Lounge Diva

avatar

Posts: 57258

Norway

Great idea! :up: *goes to download*

Thursday, 18. September 2003, 22:18:17

MarcFou

avatar

Posts: 4460

I made a mistake when naming one of the bokkmarklets. In My Tools, the one named "How many links?" should be renamed to "Show Email Links".

Sorry about that. :wink:

Thursday, 18. September 2003, 22:23:20

akh

Lounge Diva

avatar

Posts: 57258

Norway

:irked: Yeah, that one totally ruined my evening...p:

Friday, 19. September 2003, 04:17:34

MarcFou

avatar

Posts: 4460

More

8 new bookmarklets. Most are for setting different fonts on a page. Also Uppercase & Lowercase. And for the picture hunters (a'hem) there is an Open all linked images. This is different from the Open all images in the frist zip. That one only opens images and dosent follow links. Like thumbnails.

But any way... Have fun with these, and use the insstructions from the original post.

bookmarklets 2.zip

Friday, 19. September 2003, 10:40:27

closet geek

- moderator -

avatar

Posts: 9899

United Kingdom

Great thread Marc, these things are useful but not many people realise they're there, lets help those people - stickyfied :D

cg

Friday, 19. September 2003, 10:45:18

MarcFou

avatar

Posts: 4460

Thanks! I hope other people will post there bookmarklets here too. It solved many of the search.ini editing. Every week I will post more bookmarklets. I am encouraging people to write\post bookmarklets. Thanks again CG!

Saturday, 20. September 2003, 08:17:49

bhusan

avatar

Posts: 493

:up: :cheers:
awsome! has anyone applied for patent for this technology yet??

weblogs >----------------------------------------> blogs..
bookmarklets >-----------------------------------> blets?

:smile::smile::smile:

Saturday, 20. September 2003, 10:50:30

MarcFou

avatar

Posts: 4460

Originally posted by bhusan
:up: :cheers:
awsome! has anyone applied for patent for this technology yet??
weblogs >----------------------------------------> blogs..
bookmarklets >-----------------------------------> blets?
:smile::smile::smile:



I dont think so. :wink:

Note to Opera users: Please post your custom bookmarklets or even links to web pages\sites that have them. I thik we could use some of the following: Navigation, Saving images and or pages, Printer Friendly Links, Elements, and of course more searches! (Like the ones in my first upload).

Also, users can post links to "how to articles" as well.

Sunday, 21. September 2003, 03:29:55

Tricolor

@opera.fan.club

avatar

Posts: 728

Japan

'Highlight Text' in 'My Tools' is very nice! I'm impressed. Thanks alot. :up:

The problem is if 'Reuse existing page' is unchecked, which I prefer, I get the popup window on a blank new page ... Is there a way or work-around to use your tools with that option selected?

Thanks again.

Sunday, 21. September 2003, 03:34:37

MarcFou

avatar

Posts: 4460

I'll have to play with that and see what I can do. I am still learning about Javascript & Bookmarklets.

Sunday, 21. September 2003, 03:48:45

Tricolor

@opera.fan.club

avatar

Posts: 728

Japan

Thanks. :smile:

Sunday, 21. September 2003, 10:57:53

MarcFou

avatar

Posts: 4460

Site with many bookmarklets

Bookmarklets
Drag and Drop to your Bookmark panel. Rename as needed.

Sunday, 21. September 2003, 10:59:28

MarcFou

avatar

Posts: 4460

Math - Add Fractions

javascript:var N1=prompt('First Numerator',1);var D1=prompt('Denominator',1);var N2=prompt('Second Numerator',1);var D2=prompt('Denominator',1);var N=N1*D2+N2*D1;var D=D1*D2;var M=N;var E=D;for(var I=1;I<=N;I++){var A=N/I;var B=D/I;if(Math.floor(A)==A){if(Math.floor(B)==B){M=A;E=B;}}}var X=N1+'/'+D1+' + '+N2+'/'+D2+' = '+N+'/'+D;var Y=M/E;if(M==N){alert(X+' and is not reducable.\n'+Y);}else{alert(X+' = '+M+'/'+E+'\n'+Y);}

Sunday, 21. September 2003, 11:00:11

MarcFou

avatar

Posts: 4460

Duplicate Page

javascript:function sDqUikyQkO(){if(window.frames.length<1){x=new Date();window.open(location.href,'w'+x.getTime());}else{alert("Opening "+window.frames.length+" new windows.");var i;for(i=0;i<window.frames.length;i++){window.open(window.frames.location);}};}void(sDqUikyQkO());

Sunday, 21. September 2003, 11:01:00

MarcFou

avatar

Posts: 4460

Days left this month

javascript:var z=new Date();var y=z.getYear();var m=z.getMonth();var d=z.getDate();var s=new Array(31,28,31,30,31,30,31,31,30,31,30,31);if(y==Math.floor(y/100)*100){s[1]=29;}var l=s[m]-d;alert(l+' days left this month.');

Sunday, 21. September 2003, 11:04:25

MarcFou

avatar

Posts: 4460

Credit Card Verify

javascript:var n1=document.getSelection();if(!n1){void(n1=prompt('Card Number:',''));}n1=n1.replace(/-/g,'');var m1=n1.length;m1=m1%2;m1=2-m1;var t1=0;while(n1.length>0){n2=n1.substr(0,1);n1=n1.substr(1);n3=m1*n2;if(n3>9){n3=n3-9;}t1=t1+n3;m1=3-m1;}var r1=t1%10;if(r1==0){alert('OK')}else{alert('Bad='+r1);}

Sunday, 21. September 2003, 14:22:39

MarcFou

avatar

Posts: 4460

Convert Kilometers to Miles

javascript:expr=prompt('Length in kilometers:','');if(expr){if(isNaN(parseFloat(expr))){alert(expr+' is not a number')}else{void(prompt('Length in miles is ',Math.round(expr*6214)/10000))}}else{void('')}

Sunday, 21. September 2003, 14:25:05

MarcFou

avatar

Posts: 4460

Panel

I think I am going to start working on a Hotlist Panel with all the bookmarklets. It would make for fast easy access. I f anyone has any suggestions let me know.

Monday, 22. September 2003, 01:07:10

MikeyHE

avatar

Posts: 138

The problem I've had is getting the "target" of links in a panel to point to the current page instead of the page in the panel. Something like "target=_top" should work but...

Otherwise, Opera's Manage Bookmarks HTML Export is a good start, but you have to delete all the links that aren't part of your bookmarklets folder.

Monday, 22. September 2003, 01:27:29

MarcFou

avatar

Posts: 4460

Originally posted by MikeyHE
Otherwise, Opera's Manage Bookmarks HTML Export is a good start, but you have to delete all the links that aren't part of your bookmarklets folder.


Thats what I did and I have a long list of bookmarklets. What I am trying to achieve is not having the panel be too long. I hate scrollbars. Also, I need to separate them into categories. I am currently working with a 2 column table. In the table there are merged cells to separate each categorie. But it may come out too wide for a panel. But the lenth is ok.

Any ideas?

Monday, 22. September 2003, 02:40:27

MikeyHE

avatar

Posts: 138

Well, what about dynamic html? Hover over or click on a category and it displays the bm'lets in that category. Do the same for another and the previous one collapses and the new one expands. That way only one category is open at a time. Personally, though, I would rather settle for scrollbars and I don't generally use this kind of code.

Monday, 22. September 2003, 06:06:28

MarcFou

avatar

Posts: 4460

Bookmarklets Panel - Beta

Ok here is the initial panel I made. I have some problems with a few scripts not working with the target frame (visible page).

Many are working though. Can anyone help me to fix the items that arent working? Download the zip, extract the html doc to your hard drive. Open it in Opera. Bookmark it and check the box to show it in the hotlist.

bookmarlets panel.zip

Monday, 22. September 2003, 10:10:06

aleto

A Man from Zuerich

avatar

Posts: 1812

Norway

I was also working on that, to let run a javascript over the current page from the panel. The problem i see is that a tab has a certain identity. For example if you like to open a link from a html file from the panel you need the target="_main" or "_blank". If you take the _main that will open the link always in the same tab, so that means that this tab has a identity. With _blank it opens a new tab. But that is very different from the behavior of the normal panel bookmarks: a doubleclick opens the bookmark in the current tab, so there is a relation between the current tab and the bookmarkpanel, which doesen't existe from a html page and i don't see a way to create that relation.

Monday, 22. September 2003, 11:04:33

MarcFou

avatar

Posts: 4460

Well I think rather than setting the target frame of the link(s) in the panel, the javascript needs to be modifed. Document.Source, .frame, etc.

But again I dont know enough about JS to modify the bookmarlets. As a consolation the following colums work ok:
Opera, Search, Tools (most of them).

The Links, Page & Format colums wont work. But... You can drag and drop each link to the Personal bar and then they will work.

Here is an example what needs to be modified. The "Close Page" script is: javascript:top.close()
The problem is that since its in the panel, the script dosent know what page to close. There has to be a way to specify it some how.

If we (or someone) can figure out that one, then I can fix the rest that arent working. Have you tried the ones that work I mentioned above? What do you think?

Thanks for the frrdback!

Friday, 26. September 2003, 06:48:19

bhusan

avatar

Posts: 493

Originally posted by Tricolor
'Highlight Text' in 'My Tools' is very nice! I'm impressed. Thanks alot. :up:

The problem is if 'Reuse existing page' is unchecked, which I prefer, I get the popup window on a blank new page ... Is there a way or work-around to use your tools with that option selected?

Thanks again.




I also have "Reuse Existing page" unchecked. Heres a workaround I found.

:idea:

Go to edit bookmarks.
Edit the Highlight text bookmark.
In the Nick field, enter a nick like "h" or "highlight" or any other name you can remember.
Next time you want to highlight something, enter this shortcut-nick in the address bar.

as an example, I set the "h" as nick for this bookmark.
I do F8 to get to address bar.
Type only "h" and then hit Enter (or click on "go")
heres comes the dialog for text:)


It works for me so thought you may want to give it a try.
:cheers: :D

Friday, 26. September 2003, 13:06:05

Tricolor

@opera.fan.club

avatar

Posts: 728

Japan

Thanks for sharing the tip. Your workaround works for me too. :up: F8 > h + Enter is quite easy to remember.

I also changed 'r ctrl' to 'Refresh display', which clears highlights. :smile:

:beer: :beer: :beer: :beer: :beer: for Bhusan and MarcFou. :D

Friday, 3. October 2003, 08:08:04

MarcFou

avatar

Posts: 4460

Move up a level in a directory

javascript:if (location.pathname == "/"); else if (location.pathname.charAt(location.pathname.length-1) == "/") location = ".."; else location = "."; void 0

Friday, 3. October 2003, 08:17:12

MarcFou

avatar

Posts: 4460

Validate CSS with WC3 (in new page)

javascript:void(str='http://jigsaw.w3.org/css-validator/validator?uri=' + document.location.href);if(str){abc123=open(href=str,'','scrollbars,resizable');}(abc123.blur());

Friday, 3. October 2003, 08:23:53

MarcFou

avatar

Posts: 4460

Read cookie from site

javascript:if(document.cookie.length<1){alert('No cookie for this site.')}else{alert('Cookie for this site:'+document.cookie)}

Wednesday, 8. October 2003, 15:45:50

mattie

Doodiedoodiedooo

avatar

Posts: 379

Belgium

uuuh..
it's been some time since I visited this forum and this thread looks very interesting! =)
But I wondered if there is some fixed "link" where I can always download the latest version of this? This would be wonderful =) In this thread then, you could post a changelog and all people subscribed to this thread know then they can download a new version. :smile:
Just an idea, because I have the impression the thread becomes a bit cluttered otherwise..

Thanks a lot!
greets
mattie

Wednesday, 8. October 2003, 19:12:22

MarcFou

avatar

Posts: 4460

Glad you like the thread! You can check back directly with this URL
[url]http://my.opera.com/forums/showthread.php?threadid=31059&goto=newpost

It will always take you to the newest post. In the Forum\Control Panel\Edit Options select Yes for the option "Use 'Email Notification' by default?" this way you'll get an email telling you that there is a new post to the thread.

At some point when I have a few more bookmarklets, I am going to create an HTML file so users can drag and drop the ones they want into their bookmark panel.

Wednesday, 8. October 2003, 21:59:37

MikeyHE

avatar

Posts: 138

Marc,
I've got a little different bookmarklet for viewing cookies (it probably came from Phil Burns's website, but not sure). This one inserts a line break (/n) after each element, making it a little easier to read. I tried combining the two for best result.

Other one unmodified:
javascript:alert('Cookies stored by this host or domain:\n\n' + document.cookie.replace(/; /g,'\n'));

Yours as I modified it:
javascript:if(document.cookie.length<1){alert('No cookie for this site.')}else{alert('Cookie for this site:\n\n'+document.cookie.replace(/; /g,'\n'))}

Thursday, 9. October 2003, 01:43:19

MarcFou

avatar

Posts: 4460

Nice job! I like your version much better as its easier to read. :up:

Wednesday, 15. October 2003, 16:34:55

y3k

1k better

avatar

Posts: 537

London

brilliant bookmarklets site [url]http://www.squarefree.com/bookmarklets/ check for the Opera compatibility symbol

Thursday, 16. October 2003, 18:51:09

garyamort

avatar

Posts: 1

Livejournal "blog this" bookmarklet

I made a simple bookmarklet for Livejournal.

You can use it to select text on a webpage and than have it load Livejournal's update page, automatically putting the title of the web page, the selected text(in italics), and a link to the page in the main text entry field.

Because of the way livejournal works, this script does not need to be customized, but you do need to be logged in on livejournal(or have a cookie saved)

javascript:d=document;t=d.selection?d.selection.createRange().text:d.getSelection();void(window.open('http://www.livejournal.com/update.bml?mode=full&event='+escape(d.title)+escape('\n\n')+escape(t)+escape('\n\n')+'<a href'+escape('=')+'"'+escape(d.location.href)+'">Goto Website'))

Once you add this to your bookmarks, you can give it a nickname(allowing for easy entry in the address bar as mentioned earlier). You can also add a keyboard shortcut and select the "Go to nickname" option and load the nickname.

Or my personal favorite, as detailed in the INI file discussion, you can make your own custom menu.ini file so you can swipe text, and than right click on the web page and choose "LJ This!" - or whatever you call it - and load the LJ entry page from there.

Monday, 27. October 2003, 09:23:00

bhusan

avatar

Posts: 493

I tried to put bookmarklet as Opera button. I couldn't.
(didn'try very hard as its 4AM already!) Is there anyway to do it here in forum (since the HTML is off?)

These are the kind of buttons I am talking about.
[url]http://people.opera.com/rijk/opera/dndbuttons.html
[url]http://nontroppo.org/wiki/CustomButtons

If it's possible, frequenlty used bookmarklets can be easly dragged and droped on any bar.

While at it, is there a way to add a new blank bar? all of my bars-menu, address, status etc, are full of buttons now. there is not enough space left for anymore!!

Monday, 27. October 2003, 09:53:36

non-troppo

Spinning Top

avatar

Posts: 4657

CrazyTeraByte (a newsgroup regular) has just started adding bookmarklets to a new page on the Opera 7 Wiki:

[url]http://nontroppo.org/wiki/BookMarklets

This could possibly be a central repositry of bookmarklets, just like the CustomButtons page. Anyone who wants to add to that page is more than welcome, it would help CrazyTeraByte out, and allow any user to drag'n'drop the excellent work done here...

Tuesday, 28. October 2003, 11:04:37

non-troppo

Spinning Top

avatar

Posts: 4657

The wiki page has been updated by SeaKai to add most of MarcFou's bookmarklets, but needs some checking:

[url]http://nontroppo.org/wiki/BookMarklets

Wednesday, 5. November 2003, 05:10:42

MarcFou

avatar

Posts: 4460

Yahoo Mail - Fix

javascript:void(oBw.op=false)

Use this to enable the Yahoo Mail Menus. (Taken from This thread posted by: Ratty)

Tuesday, 11. November 2003, 21:54:22

Cruiser

avatar

Posts: 77

MarcFou, First of all, thanks for the interesting bookmarks.

Of those you wrote here, I got an error on the following: Page last updated, Move up a level, Math-add fractions, convert kilometers to miles, Credit card Verify, Days left this month, and Duplicate page.

Message on the error bookmarks: Type of address unknown or unsupported.

What I did was that I pasted the script into the address field on a new bookmark, Named it, and saved it. Is this the wrong way to do it?
I did get both the "Read Cokie from site" bookmarks to work thow.

Tuesday, 11. November 2003, 21:58:55

MarcFou

avatar

Posts: 4460

I'm glad you posted that problem. I noticed when posting these to the forum it formatted them.

Instead of: java script
Change to: javascript

Without a space. You can edit your bookmarklets that are giving you that error message.

Tuesday, 11. November 2003, 23:12:51

Cruiser

avatar

Posts: 77

Thanks, MarcFou, that cured most problems.
Not solved is that the "Page last updated" shows January 1st, 1970 GMT.
Impressive, but probably not accurate. :smile:

Another thing I wondered about is the Credit Card Verify. How is this supposed to work? Or in which setting is this supposed to work?
Just clicking gives no response.

Tuesday, 11. November 2003, 23:18:08

MarcFou

avatar

Posts: 4460

On the page last updated I notice it dosent always detect\read the paremeters. Many pages it works while others it displays the default 1970.

Try that one on this page: [url]http://www.microsoft.com/homepage/ms.htm
It correctly reports the date. I suspect it looks for something specific that not all page authors use.

The CC Verify is supposed to open a dialog box where you imput a CC and it will then tell you if its a valid number or not. I my self have no use for it. But a few people do. Its a popup window so your Java settings may have something to do with it? (Not too sure on that one).

Tuesday, 11. November 2003, 23:45:11

Cruiser

avatar

Posts: 77

Yes, it worked fine on that page.
I found a couple of other bookmarks that gave no response, so I guess you are right about that there may be something with my Java setting that is not working well with those.

Wednesday, 12. November 2003, 00:59:14

MarcFou

avatar

Posts: 4460

Attached in a zip file is Bookmarklets.adr. Unzip and import bookmarks. You will have a new folder named "My Tools". I have tested all the items and they are working. Replace your non working ones with these and unless there is a Java setting disabled, they should work for you.

bookmarklets.zip

Thursday, 20. November 2003, 08:32:02

MarcFou

avatar

Posts: 4460

More Searches!

MSN Member Directory
javascript:void(str=prompt('MSN Member Directory:',''));if(str){void(open('http://members.msn.com/results.msnw?SearchType=1&DName='+str+''));}

MSN Money Stock Quote
javascript:void(str=prompt('MSN Money Quote:',''));if(str){void(open('http://investor.msn.com/quotes/quotes.asp?Symbol='+str+''));}

NASDAQ Quote
javascript:void(str=prompt('NASDAQ Quote:',''));if(str){void(open('http://www.nasdaq.com/asp/quotes_multi.asp?symbol='+str+''));}

Weather
javascript:void(str=prompt('Weather for zip code:',''));if(str){void(open('http://www.weather.com/weather/local/'+str+''));}

WebCrawler
javascript:void(str=prompt('WebCrawler:',''));if(str){void(open('http://www.webcrawler.com/cgi-bin/WebQuery?searchText='+str+''));}

Note:
The word javascript is getting a space for some reason. After pasting this into a new bookmark remember to delete the space bettween java and script.

Thursday, 20. November 2003, 09:52:40

frease

avatar

Posts: 414

Hi, is there any ZAP CSS bookmarklet around? I need one. Thanks :smile:

Thursday, 20. November 2003, 10:07:02

non-troppo

Spinning Top

avatar

Posts: 4657

frease, see:

[url]http://nontroppo.org/wiki/BookMarklets#zap

but why not simply use ctrl+g?

Thursday, 20. November 2003, 10:21:10

frease

avatar

Posts: 414

Oops, I did not know that. Thanks for the tip and the bookmarklet! :smile:

Thursday, 20. November 2003, 10:59:26

non-troppo

Spinning Top

avatar

Posts: 4657

Frease: Opera's control of style-sheets is one of its most excellent features, read:

[url]http://tntluoma.com/opera/lover/7/15/

Although Tim excludes some useful information there. In preferences > page style > configure mode... change your settings to resemble my attached screen-shot. Then you can add user style-sheets ON TOP of an authors styles, allowing you to control a page to a fine degree...

csssettings.png

Forums » Opera Community » General Opera topics » Customizing Opera