[Release] Add To Bookmarks button

General questions about scripts and buttons should be asked here. Development scripts and buttons may also be posted for feedback.

Moderators: Support Staff², Support Staff, AvantGuard, Developer

Post Reply
Scrabble
Semi-Fan
Semi-Fan
Posts: 68
Joined: Sat Nov 18, 2006 10:36 pm
Windows Version: Windows
Avant Version:

[Release] Add To Bookmarks button

Post by Scrabble » Sat Dec 02, 2006 5:41 am

You can create a button to add a website to your Bookmarks with a press of a button by going to Tools...Avant Browser Options...Add-Ons...Add-Ons. Then click add, give it a name, select an icon to identify it, make sure for "Type" that the 'Script Button' is selected, then paste the text below into the 'Content' field:


javascript:window.external.addFavorite('http://www.website.com','');


Rick :D

abfan123
Avantus Maximus
Avantus Maximus
Posts: 5624
Joined: Wed Jan 26, 2005 4:24 pm
Windows Version: Vista Ultimate x64 SP2
Avant Version: 11.7 build 43
IE Version: 8
Contact:

Post by abfan123 » Sat Dec 02, 2006 7:18 am

Hello,
Thanks,but your code will add http://www.website.com to bookmark.
The correct code is :

Code: Select all

javascript:window.external.addFavorite(location.href,''); 
But nice idea anyway. :-)

Scrabble
Semi-Fan
Semi-Fan
Posts: 68
Joined: Sat Nov 18, 2006 10:36 pm
Windows Version: Windows
Avant Version:

Re: Add To Bookmarks button

Post by Scrabble » Sat Dec 02, 2006 7:42 am

I did not get that - when I hit the icon to add to Bookmarks, it would come up with a blank line for me to give it a title. I updated my script to what you said and it did the same. Thanks for the correction.

bigC
AvantGuard
AvantGuard
Posts: 7244
Joined: Thu Jan 30, 2003 10:40 pm
Windows Version: 10
Avant Version: 2016 Build 1
Default engine: Firefox
IE Version: 11
Skin: Crystal
Location: New York

Post by bigC » Sat Dec 02, 2006 8:28 pm

Does this work for AB bookmarks or only IE favorites?

Scrabble
Semi-Fan
Semi-Fan
Posts: 68
Joined: Sat Nov 18, 2006 10:36 pm
Windows Version: Windows
Avant Version:

Re: Add To Bookmarks button

Post by Scrabble » Sat Dec 02, 2006 11:21 pm

Yes, it works for AB Bookmarks. I don't use IE Favorites.

User avatar
hornakapopolis
AvantGuard
AvantGuard
Posts: 11318
Joined: Thu Jul 31, 2003 2:09 pm
Windows Version: Windows 10 Pro 64
Avant Version: 2015
Default engine: Chrome
IE Version: 11
Skin: Stickers
Location: Ohio, USA
Contact:

Post by hornakapopolis » Sun Dec 03, 2006 10:37 pm

Is it not working for you, bigC? Not to hi-jack the thread, but when I tried it at my office, it brought up IE's favorites... but when I created the button, I used abfan's.

I just tried it at home with Scrabble's and it's using Avant's. So, I changed it to abfan's and it's still bringing up Avant's.

I don't have Avant renamed at either location.

I don't have time to test it, but it makes me wonder if the button isn't recognizing an edit to the code until you restart Avant or something. Either way, it's weird.

I logged in, though, to suggest to Scrabble that you export it on your system and upload this to our downloads area.

bigC
AvantGuard
AvantGuard
Posts: 7244
Joined: Thu Jan 30, 2003 10:40 pm
Windows Version: 10
Avant Version: 2016 Build 1
Default engine: Firefox
IE Version: 11
Skin: Crystal
Location: New York

Post by bigC » Mon Dec 04, 2006 8:05 pm

hornakapopolis wrote:Is it not working for you, bigC?
Nope, it works...

Scrabble
Semi-Fan
Semi-Fan
Posts: 68
Joined: Sat Nov 18, 2006 10:36 pm
Windows Version: Windows
Avant Version:

Re: Add To Bookmarks button

Post by Scrabble » Sat Jan 20, 2007 5:33 am

Just to clarify the previous posts and also to add a modification/alternative:


window.external.addFavorite(location.href,'');

The script above opens the 'New Bookmarks' window with nothing in the name field.



The script below opens the 'New Bookmarks' window with the page title in the name field.

window.external.AddFavorite(location.href, document.title);

Scrabble
Semi-Fan
Semi-Fan
Posts: 68
Joined: Sat Nov 18, 2006 10:36 pm
Windows Version: Windows
Avant Version:

Re: [Release] Add To Bookmarks button

Post by Scrabble » Wed Feb 21, 2007 7:54 pm

If you don't have any icons available to assign to this script, I suggest downloading EasyPicture2Icon to create them. It's free.

User avatar
Victor Delta
Fan
Fan
Posts: 179
Joined: Thu Sep 18, 2003 10:28 pm
Windows Version: Windows 10
Avant Version: Ultimate 2017 b10
Default engine: Firefox
IE Version: IE 11
Skin: Office XP
Location: Poole, UK

Re: Add To Bookmarks button

Post by Victor Delta » Wed Jun 24, 2009 1:30 pm

Scrabble wrote:Just to clarify the previous posts and also to add a modification/alternative:


window.external.addFavorite(location.href,'');

The script above opens the 'New Bookmarks' window with nothing in the name field.



The script below opens the 'New Bookmarks' window with the page title in the name field.

window.external.AddFavorite(location.href, document.title);
Help! I've followed this exactly (2nd option) but no button appears. Should this still work with the latest Avant ie 11.7 (35)? I even tried inserting the 'javascript:' mentioned in the original post but still nothing happened.

What am i doing wrong please?

V

PS Is there a reason why a 'New Bookmark' button isn't available as standard? I would have thought it would be very popular with users.

User avatar
kudos
Support Staff²
Support Staff²
Posts: 3384
Joined: Wed Mar 22, 2006 10:35 am
Avant Version:

Re: [Release] Add To Bookmarks button

Post by kudos » Wed Jun 24, 2009 4:16 pm

Yes, it works in the latest build of Avant (not working for Orca though).
Make sure that the addon is enabled - ie it has a tick in the box.
You also need to enable the addon buttons bar: View >> Toolbars >> Add-on Buttons

Here is the button code which you can just [url=aba://forum.avantbrowser.com/download/file.php?id=1891]import into Avant[/url].
Attachments
Bookmark.aba
(1.93 KiB) Downloaded 299 times
 
.:Volunteer support staff (regular user):.
Image
I am not a member of the Avant / Orca development team
Please search this forum / the Wiki before posting questions
Forum Rules | Frequently Asked Questions | Active Topics

User avatar
Victor Delta
Fan
Fan
Posts: 179
Joined: Thu Sep 18, 2003 10:28 pm
Windows Version: Windows 10
Avant Version: Ultimate 2017 b10
Default engine: Firefox
IE Version: IE 11
Skin: Office XP
Location: Poole, UK

Re: [Release] Add To Bookmarks button

Post by Victor Delta » Wed Jun 24, 2009 8:17 pm

kudos

Very many thanks for that. I had missed enabling the appropriate toolbar - Doh!

Presumably one can't move the button to any of the other toolbars?

Will it become standard one day?

V

User avatar
kudos
Support Staff²
Support Staff²
Posts: 3384
Joined: Wed Mar 22, 2006 10:35 am
Avant Version:

Re: [Release] Add To Bookmarks button

Post by kudos » Wed Jun 24, 2009 8:23 pm

Victor Delta wrote:Very many thanks for that. I had missed enabling the appropriate toolbar - Doh!
Don't you hate it when that happens?
Image
Victor Delta wrote:Presumably one can't move the button to any of the other toolbars?
Nope, sorry, not currently AFAIK.
Victor Delta wrote:Will it become standard one day?
Your guess is as good as anybody's - except Anderson's!
 
.:Volunteer support staff (regular user):.
Image
I am not a member of the Avant / Orca development team
Please search this forum / the Wiki before posting questions
Forum Rules | Frequently Asked Questions | Active Topics

Post Reply