Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Create a Safari dictionary button Web Browsers

Apple's Sherlock buttons didn't offer the functionality I missed most, from MerriamWebster.com's old javascript dictionary button. Written for older versions of Netscape or MSIE, the freely available button doesn't work with Safari. The nice thing about the button was that you could either highlight a word in a page and punch the button for lookup OR just punch the button and enter a word into a dialog box.

Some slight tinkering with that javascript produced the following -- enter it as one long line with no added spaces (just remove the line breaks):

javascript:x=escape(getSelection());if(!x)%7Bvoid(x=prompt
('Word?',''))%7D;window.location='http://dictionary.reference.com/
search?q='+x

Of course, you can replace the URL with your preferred dictionary site--but you may have to change the syntax a bit.

  Post a comment  •  Comments (26)  
  • Currently 2.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (2 votes cast)
 
[19,563 views] Email Article To a Friend View Printable Version
Get rid of annoying 'missing image' icons in Safari 1.0 Web Browsers
Ever since upgrading to Safari 1.0 I have noticed more and more "missing images" icons showing up on web pages displayed in Safari. This may be because I am also running PithHelmet - but it never occurred with the Safari betas. It occurs many times on items I am not even filtering and should not be missing the images. Anyway - I got sick and tired of pages peppered with the little blue icon indicating a missing image. So I looked around and found the icon and just replaced the image file with a one-pixel blank image. Worked perfectly - no more blue "missing image" icons!

The image you need to replace is located at /System -> Library -> Frameworks -> WebKit.framework -> Versions -> A -> Resources -> missing_image.tiff.

Read the rest of the article for the how-to on replacing the image (the process in short)...

[robg adds: There's a script in the remainder of the article with some wide lines, so consider yourself warned about the width of this hint...]

read more (189 words)   Post a comment  •  Comments (5)  
  • Currently 2.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (2 votes cast)
 
[8,193 views] Email Article To a Friend View Printable Version
Create a location entry dialogue pop-up for Safari Web Browsers
This is an offshoot from the Safari JavaScript Bookmarklets hint. If you like to hide the Address Bar in Safari, you can create a bookmarklet that will allow you to enter a web address into dialogue box (shown on two lines; enter as one without a space between the quote and the comma):
  javascript:location.href='http://'+(q=prompt('Open%20Location:'
  ,%20self.location))
Here's a bonus tip - if from the above code you remove the 'http://'+, you can enter any protocol and hostname that you want into the dialogue box. For instance, you could then use any of http:// ssh:// https:// ftp:// telnet:// itms:// sherlock:// afp:// nfs:// smb:// mailto:// aim://, and cool stuff will happen. Of course, you can use all of those protocols directly in the Address Bar, if you use the Address Bar.
  Post a comment  •  Comments (2)  
  • Currently 1.50 / 5
  You rated: 2 / 5 (2 votes cast)
 
[6,130 views] Email Article To a Friend View Printable Version
A solution for Safari crashes on pages using Flash Web Browsers
I had a problem where Safari 1.0 v85 was crashing every time I visited a page with Flash graphics on it. For some strange reason, deleting the com.apple.quicktime.plugin.preferences.plist file from my user's Library -> Preferences folder fixed the problem.
  Post a comment  •  Comments (7)  
  • Currently 3.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (3 votes cast)
 
[28,719 views] Email Article To a Friend View Printable Version
View Photoshop .PSD files in Safari Web Browsers
A friend and I were surprised to discover that Safari knows how to display Photoshop .PSD files! It opens both local and remotely served .PSD files as easily as a .JPG or other supported image file formats. In retrospect, this ability may be due to a shared system-wide library in OSX rather than Safari itself, as the Finder image preview (in column mode) and Preview.app also have this ability (similar to how Safari will also open and display .rtf files).

Related hints:

Print Photoshop files through Preview
Use Preview on Photoshop files
  Post a comment  •  Comments (4)  
  • Currently 1.50 / 5
  You rated: 3 / 5 (4 votes cast)
 
[15,426 views] Email Article To a Friend View Printable Version
A page of useful Safari JavaScript bookmarks Web Browsers
I found an interesting Safari bookmarks page on Apple's site. On this page, they provide some useful JavaScript bookmarks that can communicate with additional applications such as Sherloc.

Here's an alternative version to search webster for a word definition. Enter the following bookmark defintion as one line with no spaces at all between characters:

javascript:x=escape(getSelection());window.location=
  'http://www.webster.com/cgi-bin/dictionary?book=dictionary&va='+x;
[robg adds: The submitted hint also included a JavaScript to search Google for the selected text, but it's somewhat redundant -- you can just control-click on any selected text and choose Google search. However, for completeness sake, here's the Google JavaScript:
javascript:x=escape(getSelection());window.location=
  'http://www.google.com/search?q='+x;
Again, enter it as one line without any spaces at all.]
  Post a comment  •  Comments (10)  
  • Currently 2.60 / 5
  You rated: 4 / 5 (5 votes cast)
 
[34,131 views] Email Article To a Friend View Printable Version
Save embedded objects easily in Safari Web Browsers
Mozilla is nice because if you want to save an embedded movie or flash file from a website, it had a Site Info viewer to you could see all of the files associated with a website.

Though Safari lacks an exact duplicate for this feature, if you open the Activity Window in Safari, you can just double click any part of it and it will open in a Safari window. You can then do a 'Save As' and you get the flash movie (or whatever) saved locally.

You may have known this already, but it's new to me and sure beats 'View Source' and copying information.

[robg adds: If you haven't used the Activity window in Safari, you're missing out on one of its nicer features, in my opinion. You can easily see the various bits that are used to create each page, and as noted here, open any one of them easily with a double-click. I use this window all the time to load CSS and JavaScript source files.]
  Post a comment  •  Comments (11)  
  • Currently 3.33 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (3 votes cast)
 
[10,125 views] Email Article To a Friend View Printable Version
View URL for files downloaded with Safari Web Browsers
Since the release of Safari I've been waiting for a way to go back into my download history and find the URL from my downloads and to my surprise I've found that Safari does store that info but doesn't give you a way to view it through the GUI!

Open this file:
~/Library/Safari/Downloads.plist
in any text editor (or I perfer Apple's Plist Editor from the Developer Tools), and you will see a list of each download along with the URL it came from and its size (in bytes).
  Post a comment  •  Comments (3)  
  • Currently 3.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (2 votes cast)
 
[6,299 views] Email Article To a Friend View Printable Version
Prevent Safari from permanently retaining site icons Web Browsers
One thing that annoys me about Safari is that it stores internet site's favicons. These files quickly add up to MBs of space. That's bad if you use Apple's Backup software to up backup Safari to your iDisk. But there's a quick-fix. Go to Users -> username -> Library -> Safari.

Go into the Icons folder and delete everything in there. Once you have deleted everything, return to the Safari folder and click on (highlighting) the Icons folder. Get Info and click the triangle next to Ownership & Permissions. Change the Owner to you (your short Unix name) and set the access to "Read only" then set the rest of the access lines to "No access"

Now when you surf the net, you'll find that Safari displays the icons, but when you quit and restart Safari all of those icons are gone. Your iDisk will love you in the morning!
  Post a comment  •  Comments (14)  
  • Currently 1.75 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (4 votes cast)
 
[17,406 views] Email Article To a Friend View Printable Version
Change default Mozilla/Netscape email client Web Browsers
If you want to change the email client that Mozilla launches when an email link ("mailto" link) is clicked then:
  1. Launch Mozilla and enter the URL about:config and hit Enter.
  2. Control-click (or right-click) on any list entry and choose the New pop-up menu, and then the String sub-menu. In the first pop-up that appears, put applications.mailto. In the second, put (for example), the path to the OS X Mail application:
    file:///Applications/Mail.app/Contents/MacOS/Mail
  3. Control-click on any entry, and again select New and String. Put applications.mailto.parameters in the first pop-up, then put "%url%" in the second pop-up.
  4. Control-click on any entry, but this time select New and then Boolean. Enter network.protocol-handler.external.mailto in the first pop-up, and then put true in the second.
Restart Mozilla and send Steve Jobs an email to test it out!

[robg adds: A previous hint covered this in a slightly different manner; I think this new hint is a bit clearer on the whole process.]
  Post a comment  •  Comments (8)  
  • Currently 3.33 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (3 votes cast)
 
[11,028 views] Email Article To a Friend View Printable Version