Fixing the annoying focus stealing habit of Safari RSS feeds

Apple, General

Safari RSS support is way cool. Except for the fact that after a page has loaded, the search field receives focus, causing the space bar to not scroll down a page at a time. I wanted to fix this…but how?

Well, I browsed to an RSS feed and viewed the source in Safari. I noticed this line:

<script language=JavaScript src=“feed:///__rsrc__/Articles.js”>

So, Safari uses some internal file called Articles.js. Now, where is it?

Well, I dropped down to a command prompt in Console, logged in as root (su’d) and typed:

nibroc:/Users/corbin/Desktop root# fs_usage -w -f filesys Safari | grep Articles.js

console

Okay! It is in some framework directory, A/Resources/Articles.js. But which one? Again, a simple command can reveal the secrets:

nibroc:/Users/corbin/Desktop root# otool -L /Applications/Safari.app/Contents/MacOS/Safari

Picture 4

Okay, it probably is SyndicationUI.framework or WebKit.framework. Which one?

nibroc:/Users/corbin/Desktop root# ls /System/Library/PrivateFrameworks/SyndicationUI.framework/Versions/A/Resources/

Picture 6

Gotcha!
vi that file, search for focus, and comment out the offending line:

Picture 7

And we are done! No more focus stealing…

Tags:


Subscribe
Notify of
guest

0 Comments
Inline Feedbacks
View all comments

Subscribe to new posts:

You'll get an email whenever a I publish a new post to my blog and nothing more. -- Corbin

As an Amazon Associate I earn from qualifying purchases.

(c) 2008-2024 Corbin Dunn

Privacy Policy

Subscribe to RSS feeds for entries.

63 queries. 0.455 seconds.

Log in