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

Speed up Safari page load times by disabling JavaScript Web Browsers
I noticed that if you disable Javascript in Safari (on the Security panel in the Preferences), it will load pages much faster. There is quite big difference even with my 512kbps cable connection. Of course, when pages contain some Javascript applications or links, they won`t work. Also, if you have saved some Javascript as a bookmark (mail URL or window rezise, for example), those won`t work. So for these kinds of pages, you need to enable Javascript again.

[robg adds: After this weekend's work on the G5 review, I'm all benchmarked out, so I haven't tested this one much -- I tried a couple of pages with it set both ways, and may have noticed a small speed increase, but I'm not sure ... so I thought I'd throw it out for general conversation.]
  Post a comment  •  Comments (17)  
  • Currently 1.67 / 5
  You rated: 3 / 5 (3 votes cast)
[29,488 views]  View Printable Version
Save non-streaming QuickTime movies from Safari Web Browsers
A friend asked me if she could save a QuickTime movie from the web to her desktop, even though the "Save As" option was greyed out.

I thought it would work if she found the movie's URL and opened it from within the QuickTime application itself. Finding the URL for a movie on a webpage is not too hard. Using Safari or IE, open the page that contains the movie and pull down the View menu, where you'll find "View Source." Search that page for ".mov". That text string will likely be at the end of a web address in quotes. Copy that entire address, minus the quote marks.

We then pasted that address into QuickTime's "Open URL" dialogue and opened the movie in its own window. But without QT Pro, you still don't get an option to save it.

Just for kicks, we tried opening the URL in a new Safari window. After the entire movie loaded, we could save it under Safari's File menu. I don't know if this works in IE, but it's a great workaround for downloading movies that are meant to be streamed.

[robg's update: I changed the title, as it originally referred to streaming. As the comments clearly note, I screwed up in not changing this when I posted the original article.]
  Post a comment  •  Comments (32)  
  • Currently 3.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (2 votes cast)
[35,377 views]  View Printable Version
Recall old eBay searches with Safari's autofill Web Browsers
I'm not claiming this as the greatest thing since sliced bread but it is quite a nice side-effect of Safari's autofill function.

The annoying thing about sites like eBay is that you don't get an instant list of previous searches (I pick eBay because I first found this there, but it is of course generic). But if you have Safari's autofill switched on, then if you return to a page where you've already done a search, typing the first few letters of that search makes the whole text reappear.

And because Safari ties all this to the particular web page, the autofill doesn't turn up anywhere else.

Like I said, not earth shattering but it makes my life just that little bit easier. I'm running OS 10.2.6 and Safari 1.0.85...
  Post a comment  •  Comments (5)  
  • Currently 1.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (1 vote cast)
[3,686 views]  View Printable Version
Fix funky default window position in Safari Web Browsers

There's a well-known and very annoying bug in Safari 1.0 (I don't know if it's been fixed in the 10.2.8 update) that results in new windows being opened offset slightly down and to the right. The only fix I've seen advertised so far involves installing the Application Enhancer panel, something I'm not overly keen to do.

On further investigation, it appears that windows are correctly positioned if they are smaller than the screen width (i.e. don't have a width greater than 1024 on a 1024x768 monitor like mine) but get confused if they are set to be any larger, or are positioned outside the screen boundaries (if they are dragged to the right, for example - something I often do by accident.)

My solution is to set Safari's prefs to always start more or less fullscreen (leaving room for the dock) by issuing the following command:

defaults write "NSWindow Frame BrowserWindowFrame" \
  '0 0 1024 685 0 0 1024 746'

The first two zeroes tell Safari to open the window at zero pixels from the top and right (so no offset, as it should be) and the next two values tell it that windows should be 1024 pixels wide and 685 pixels long. Your usage will vary here depending on your display - the important point to note is that the Safari window size should not be greater than your screen resolution.

You can fiddle around with this command until you find a setting that you like, and then save it as an executable .command file to make a quick shortcut, as a command line alias in your .tcshrc or (as I do), include it in your .login script.

[robg adds: I don't think the window offset is a bug, I believe it's a feature -- when you open a new window, you can see both the old and new windows at the same time. However, if it annoys you and you don't mind using full-screen windows, this should fix the problem (though I didn't experiment with it extensively).]
  Post a comment  •  Comments (35)  
  • Currently 1.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (1 vote cast)
[11,386 views]  View Printable Version
Reduce CPU usage in Camino during page loads Web Browsers
There is an issue with Camino that also is present in other web browsers, such as Internet Explorer and Mozilla: when requesting a page, the browser will take all available CPU time it can. This can be quite annoying for individuals like myself that do a lot of CGI scripting work (Lasso in my case), where developing a page requires constant reloading of a web page, only to have things slow down to a crawl because the web browser and web server on the same machine fighting for dominance.

The reason for the CPU usage is due to the status "barber pole" animating. Since it seems that this animation routine is built into OS X, the issue is not really an issue with Camino, but more with Mac OS X itself (you can see similar behavior in other applications which also use the barber pole animation).

To resolve the issue of CPU usage, all you have to do is remove the status bar from the BrowserWindow.nib file. This file is inside the bundle (control-click on the app for the Show Package Contents pop-up), on the path Contents -> Resources -> English.lproj -> BrowserWindow.nib.

To edit this file, you will need to have the Developer Tools installed (or XCode if you are fortunate enough to have it). Once open, simply double click on the "Browser" icon in the BrowserWindow.nib window, and then select and delete the status barber pole widget.

Save, and restart Camino, and you should find it to be much quicker during page loads. This might also affect other areas of performance, such as browsing pages that contain Flash content.
  Post a comment  •  Comments (12)  
  • Currently 2.60 / 5
  You rated: 4 / 5 (5 votes cast)
[11,917 views]  View Printable Version
Saving and restoring tabs in Safari Web Browsers

So, one day I needed to quit Safari for some reason. The problem was that I had a window with something like 10 tabs open and I needed those pages still. I really find it a pain that I have to bookmark each tab separately, otherwise I would just bookmark all the tabs at once and load them back up when I restarted Safari, but Safari doesn't do this.

I did a little searching and found some scripts on John Gruber's site that saved and restored windows in Safari. This looked good, but it didn't save/restore tabs in those windows. So starting with John's scripts, I added support for tabs to the save script. After learning about GUI Scripting I came up with the following -- read the rest of the hint for the scripts.

read more (677 words)   Post a comment  •  Comments (52)  
  • Currently 2.80 / 5
  You rated: 1 / 5 (5 votes cast)
[79,621 views]  View Printable Version
Stop all advertising banners in web browsers Web Browsers
I've made a summary with all information about CSS and ADS blocking. The result is an CSS file which, used as default style sheet, can hide all advertising banners in images, texts or animations format even embeded into javascript! This works of course with all browsers ...except Internet Explorer! But who cares?

You can find the stopADVbanners.css file on my website. Just save this file on your hard drive then open the preferences panel of your favorite browser (Mozilla, Netscape, Apple Safari, Opera, etc) and choose this file as "preferred style sheet".

Some very easy CSS tricks I used:
/* disable ad image linking to advertising script */ 
A:link[HREF*="doubleclick"] IMG,

/* disable ad texts linking to advertising script */ 

/* disable Flash banner ads */ 

/* disable ad iframes */ 

/* disable ADV images as specified by */ 
*[width="468"][height="60"], *[width="468px"][height="60px"]

{ display: none !important; visibility: hidden !important; }
[robg adds: Here's my obligatory webmaster comment ... if you block all ads all the time, those sites that rely on ad revenue may eventually start charging for access (see recent warnings on Macintouch, MacSurfer, etc.). I leave most ads enabled, only blocking pop-ups and highly annoying Flash ads, and occasionally buy stuff via click-throughs just to support my favorite sites ... one could argue the merits of the advertising-supported web model forever, though, and this hint does provide some good solutions to blocking highly annoying ads.]
  Post a comment  •  Comments (32)  
  • Currently 3.13 / 5
  You rated: 2 / 5 (8 votes cast)
[40,663 views]  View Printable Version
An overview of Mozilla preference files Web Browsers

You can pre-configure Mozilla so that all users get the same preferences when they create a new profile. For example, you might want to define a preference for /tmp, or /Users/Shared as the cache directory, so that users with network home directories will use the local drive for cache.  These prefs are stored in a javascript file called user.js which needs to be saved to /Applications -> (control-click and select "Show Package Contents") -> Contents -> MacOS -> defaults -> profile -> US -> user.js. In your user.js file, lines which begin // are comments, so you could enter, for example:

// user.js: Personal prefs which mozilla shouldn't overwrite.
user_pref("browser.startup.homepage", "");
user_pref("intl.accept_languages", "en-au, en, en-us, zh, zh-cn, zh-hk, zh-sg, zh-tw, fr, de, de-de, de-at, it, ja, pl, ru, es, sv, fi, sr, hr, da, nl, fr-ca, fr-fr, id, in");
user_pref("intl.charset.default", "UTF-7");

Note that user.js has unix line endings, so use a command line text editor, like vi or pico for editing ... or use BBEdit with the appropriate setting.
read more (270 words)   Post a comment  •  Comments (2)  
  • Currently 3.50 / 5
  You rated: 5 / 5 (4 votes cast)
[5,071 views]  View Printable Version
macosxhints and versiontracker searches for Mozilla Firebird Web Browsers
I have made some search plugins for the MacOS X Hints and Versiontracker lovers who use Mozilla Firebird as their default browser. The search plugins enable you to search within Mozilla Firebird by using the search box -- each site appears as a new option in the drop-down menu under the magnifying glass in the search box.

You can download the plugins from the macosxhints' download collection -- Search Plugins (4KB). After downloading and expanding the archive, you can install the extensions by control-clicking on Mozilla Firebird. Select Show Package Contents from the pop-up menu, and then navigate to Contents -> MacOS -> searchplugins in the new window. Copy the contents of the downloaded SearchPlugins -> Plugins folder into the searchplugins folder, and launch Mozilla Firebird. You should now have two new search engines in the drop-down menu in the search box.

[robg adds: I tested these, and they work as described, allowing easy searches of both macosxhints and versiontracker.]
  Post a comment  •  Comments (4)  
  • Currently 1.00 / 5
  • 1
  • 2
  • 3
  • 4
  • 5
  (1 vote cast)
[4,213 views]  View Printable Version
Safari and Javascript debugging Web Browsers
Want an easy way to debug Javascript?
  1. Activate the debug menu in Safari, either by using the excellent Safari Enhancer or by shell command defaults write IncludeDebugMenu 1
  2. Check the option "Log JavaSript Exceptions" in the Debug menu
  3. Check your and there is your output!
[robg adds: Mozilla also has access to a Javascript debugger in the Tools -> Web Development menu.]
  Post a comment  •  Comments (4)  
  • Currently 2.75 / 5
  You rated: 4 / 5 (8 votes cast)
[47,521 views]  View Printable Version