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

Benefits of Develop menu on Safari 5 Web Browsers
There are a few websites that look ugly in any browser (Lifehacker, Gizmodo, etc). But, they look better on iOS devices.

Safari 5 has the ability to pose as another browser. That way you can get the iOS view on Safari on your Mac.

First, open Safari and go to the Preferences, move to Advanced. At the bottom of the tab there is a check box for 'Show Develop menu in menu bar.'

Once that s activated you'll see the menu. Go there and move to User Agent and select any iOS device. Now you can browse to whichever website you know looks better on iOS format.

[crarko adds: We've talked about the Develop menu before, but it's an interesting tidbit to find site that look better in iOS. I'm guessing it's the lack of Flash.]
  Post a comment  •  Comments (5)  
  • Currently 3.57 / 5
  You rated: 2 / 5 (7 votes cast)
[5,918 views]  View Printable Version
Control the placement of new tabs when Command-clicking links in Safari Web Browsers
When you Command-click a link in Safari, the browser opens the link in a new tab at the end of the tab bar. (This is assuming you have Command-clicks set to open in tabs instead of windows.) If you would rather the new tab were placed next to the current tab, a free extension I wrote called LinkThing will be of use to you.

You can set up the extension to open new tabs from links either to the right or to the left of the current tab. The placement can be specified differently for foreground vs. background tabs.

LinkThing can also make it so links open in new tabs by default (that is, when you just plain click them). This can be configured globally and/or for specific sites, and the setting can be applied to offsite links and onsite ones independently.

[crarko adds: I haven't tested this one.]
  Post a comment  •  Comments (3)  
  • Currently 3.33 / 5
  You rated: 4 / 5 (6 votes cast)
[4,588 views]  View Printable Version
AppleScript to open a collection of Safari tabs Web Browsers
Here's a simple AppleScript that replaces the current Safari window with a collection of tabs, each open to a different URL. I've seen several scripts that attempt to do something similar, but this one improves on them in a couple of ways:
  • It closes all of the old tabs, rather than just adding new ones.
  • It opens the new tabs directly in AppleScript, which is much faster than using system events.
The URLs in the script are just an example; obviously you'll want to replace them with others.
tell application "Safari"
  -- close all but one tab of the front window
      close tab 2 of window 1
    end repeat
  end try
  -- open the URLs in separate tabs
  tell window 1
    set URL of tab 1 to ""
    make new tab with properties {URL:""}
    make new tab with properties {URL:""}
    make new tab with properties {URL:""}
    make new tab with properties {URL:""}
  end tell
end tell

[crarko adds: I tested this, and it works as described.]
  Post a comment  •  Comments (8)  
  • Currently 3.50 / 5
  You rated: 5 / 5 (6 votes cast)
[9,583 views]  View Printable Version
Another no-save PDF save option Web Browsers
Another way to save PDFs that don't allow saving from Safari or Preview (perhaps they require a password to save):

Open the document in Preview and select File » Mail Selected PDF Document and then drag the file from the opened Mail window to the Desktop.

[crarko adds: I tested this, and it works as described.]
  Post a comment  •  Comments (4)  
  • Currently 3.60 / 5
  You rated: 1 / 5 (10 votes cast)
[13,968 views]  View Printable Version
Reveal the password in a password field on a web page Web Browsers
If you're ever in the situation where you have forgotten the password for some web site, but it is right there in the password field of the login form -- only in the form of asterisks or bullets -- and you would like to copy it from the password field, if only it were not asterisks...well, you can.

You can convert the password field to a plain text field, which will reveal the password behind the asterisks. To do so, you will need to use your browser's web inspector. The following is the procedure for Safari; the steps are similar in Google Chrome.
  • Right-click the password field and select 'Inspect Element' in the context menu. This will open the web inspector and highlight the HTML tag for the password field.
  • The highlighted line should contain something like this:

    <input type="password" name="something">

    (Don't worry if it doesn't look exactly like that. As long as the HTML tag contains the type="password" part, you can proceed.)
  • Double-click the word "password" following "type=". This will let you edit the text.
  • Replace the word "password" with the word "text", and press Enter. Now the tag should like this:

    <input type="text" name="something">
You should now be able to see the password in the password field. You can close the web inspector if you wish.

If this seems like a lot of work, an altenative is to install and use a browser extension that will reveal passwords when you do something like move the mouse over them or click inside them. For Safari, one such extension is ShowPass; similar extensions exist for Firefox and Google Chrome.

[crarko adds: I tested this, and it works as described. I used Safari 5.0.4.]
  Post a comment  •  Comments (13)  
  • Currently 4.10 / 5
  You rated: 1 / 5 (10 votes cast)
[52,874 views]  View Printable Version
Pseudo-sync Safari Bookmarks on your own server Web Browsers
There are tons of methods to sync your Safari bookmarks: free apps/plugins like xMarks, and paid services like MobileMe. Unfortunately, none of them met my needs/criteria, which are: free, private, and secure. This hint is a combination of information gleaned from many locations, and is not actually a sync. Instead, you will have one single set of bookmarks that you use on all computers. Oftentimes, I learn as much from the comments as I do from the hints -- so if you have a better way, please feel free to post a constructive comment.

I use three Macs: one at work, and two more at home. Having access to the same bookmarks on all machines is really useful to me. I considered MobileMe, but it was not free. I considered xMarks, which seems to work well, but I'm concerned about the privacy of my bookmarks / passwords (read their privacy policy). I have my own server, so this solution is available to me. If you do not have your own server, then you will probably want to consider xMarks or MobileMe for keeping your bookmarks in sync. Also, if you don't have your own server, it is likely that you can more easily justify the expense of the MobileMe account (and therefore, this hint does not apply to you).
read more (312 words)   Post a comment  •  Comments (9)  
  • Currently 3.13 / 5
  You rated: 2 / 5 (8 votes cast)
[6,291 views]  View Printable Version
Make any web page temporarily editable Web Browsers
This hint is similar to the hint Change text on web pages in Safari but is somewhat easier to use.

You can make all the text on any web page temporarily editable right in the browser. All you need is a browser that has a JavaScript console, which is pretty much all of them nowadays. In Safari, the JavaScript console is accessed with the Show Error Console command in the Develop menu. If you don't see the Develop menu, you have to enable it in the Advanced tab of Safari's preferences.

To make a web page editable, open the console and enter the following statement:

document.body.contentEditable = true

Now, when you click on a text element on the page, you will see a standard text cursor. You can add and delete text to your heart's content.

To make the page uneditable again, enter this in the console:

document.body.contentEditable = false

Note that any edits you perform with this trick are strictly temporary; if you reload the page, your edits will vanish. However, you can save the page locally after editing it, if you need to preserve a copy of your edits. Be sure to save it as a 'web archive,' not as 'page source.'

[crarko adds: I tested this, and it works as described.]
  Post a comment  •  Comments (5)  
  • Currently 4.00 / 5
  You rated: 5 / 5 (12 votes cast)
[10,366 views]  View Printable Version
Change text on web pages in Safari Web Browsers
This is a trick I've used for a while now, but I don't know if it's so obvious to others.

First what you need to do is enable the Safari Develop menu, simply done in Preferences » Advanced or via the command line, whichever you prefer.

Then, click Show Web Inspector, and it'll pop up a web inspector pane below your content.

Then, you can go through the HTML (when you mouse over a section the portion on the page will highlight so you know you're in the right place) and find the text you want to edit (you may have to go pretty deep). You can then double click on the area you want to change, replace the text with your own, and hit enter.

Great trick for sending funny screenshots to friends.

[crarko adds: I tested this, and it works as described.]
  Post a comment  •  Comments (15)  
  • Currently 4.67 / 5
  You rated: 5 / 5 (9 votes cast)
[17,459 views]  View Printable Version
Resize specific text elements on a page in Safari Web Browsers
Safari lets you zoom the contents of a web page in two ways: you can zoom everything on the page uniformly, or you can zoom just the text. Neither option is ideal, for a number of reasons. I wrote an extension called Rightsizer provides a third way that you may find better.

The problem with full page zooming is that when you zoom in, pretty soon the page is going to be too wide to fit in the browser window without resizing (which may be undesirable or impossible on smaller screens). It also makes graphics blurry.

The problem with Safari's text zooming is that it zooms all the text indiscriminately, so text in narrow, fixed-width containers (such as sidebars) can break in ugly ways or even overflow the containers.

And another problem with both types of zooming is that Safari only preserves your zoom level for the life of the current tab. When you open a new tab, your zoom level is forgotten.

Rightsizer helps in two ways. First, it lets you resize text in specific parts of a page, such as the main article body on a news site, without affecting other parts.

Second, the extension will remember your preferred sizes for each site and reapply them automatically when you revisit them.

To use Rightsizer, you click a representative sample of the text you want to resize and, without releasing the mouse button, press A to enlarge the text, Z to reduce it, or Q to reset it. You can also set text in your favorite font and size with the F key. The change will affect all similar text elements on the site.

To specify a parent container for resizing, select (highlight) some text across multiple child elements before clicking.

To apply changes to just the clicked element without affecting similar ones, press X before any other key.

Normally, the extension will save your changes automatically. This can be disabled in the preferences. To prevent autosaving for a single change, press T before any other key.

[crarko adds: I tested this, and it works as described. I do like this one. This previous hint refers to some other useful Safari Extensions from this author.]
  Post a comment  •  Comments (16)  
  • Currently 4.13 / 5
  You rated: 1 / 5 (8 votes cast)
[4,911 views]  View Printable Version
Enable Pinch/Zoom on Firefox 4 Web Browsers
Firefox 4 disables two finger pinch/zoom gestures on a Mac. Here is how to make pinch/zoom work again.

To enable pinch/zoom in Firefox:
  • Open a new tab.
  • Type in about:config and press Enter.
  • In the search pane, type pinch and press Enter.
  • Enter these values for the and pinch.out prefs:         cmd_fullZoomReduce   cmd_fullZoomReset
  browser.gesture.pinch.out        cmd_fullZoomEnlarge
  browser.gesture.pinch.out.shift  cmd_fullZoomReset

[crarko adds: I haven't tested this one.]
  Post a comment  •  Comments (7)  
  • Currently 4.50 / 5
  You rated: 5 / 5 (8 votes cast)
[38,683 views]  View Printable Version