{"id":48,"date":"2005-06-22T08:36:37","date_gmt":"2005-06-22T15:36:37","guid":{"rendered":"http:\/\/www.corbinstreehouse.com\/blog\/?p=48"},"modified":"2005-10-04T08:39:56","modified_gmt":"2005-10-04T15:39:56","slug":"fixing-the-annoying-focus-stealing-habit-of-safari-rss-feeds","status":"publish","type":"post","link":"https:\/\/www.corbinstreehouse.com\/blog\/2005\/06\/fixing-the-annoying-focus-stealing-habit-of-safari-rss-feeds\/","title":{"rendered":"Fixing the annoying focus stealing habit of Safari RSS feeds"},"content":{"rendered":"<p id=\"top\" \/>\n<p>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&#8230;but how?<\/p>\n<p>Well, I browsed to an RSS feed and viewed the source in Safari. I noticed this line:<\/p>\n<p>    &lt;script language=JavaScript src=\u00e2\u20ac\u0153feed:\/\/\/__rsrc__\/Articles.js\u00e2\u20ac\u009d&gt;<\/p>\n<p>So, Safari uses some internal file called Articles.js. Now, where is it?<\/p>\n<p>Well, I dropped down to a command prompt in Console, logged in as root (su&#8217;d) and typed:<\/p>\n<p>nibroc:\/Users\/corbin\/Desktop root# fs_usage -w -f filesys Safari | grep Articles.js<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.corbinstreehouse.com\/blog\/ConsoleShotSafari.png\" height=\"38\" width=\"575\" border=\"1\" hspace=\"4\" vspace=\"4\" alt=\"console\" title=\"console\" \/><\/p>\n<p>Okay! It is in some framework directory, A\/Resources\/Articles.js. But which one? Again, a simple command can reveal the secrets:<\/p>\n<p>nibroc:\/Users\/corbin\/Desktop root# otool -L \/Applications\/Safari.app\/Contents\/MacOS\/Safari <\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.corbinstreehouse.com\/blog\/Picture%204.png\" height=\"112\" width=\"532\" border=\"1\" hspace=\"4\" vspace=\"4\" alt=\"Picture 4\" \/><\/p>\n<p>Okay, it probably is SyndicationUI.framework or WebKit.framework. Which one?<\/p>\n<p>nibroc:\/Users\/corbin\/Desktop root# ls \/System\/Library\/PrivateFrameworks\/SyndicationUI.framework\/Versions\/A\/Resources\/<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.corbinstreehouse.com\/blog\/ConsoleShot3.png\" height=\"30\" width=\"712\" border=\"1\" hspace=\"4\" vspace=\"4\" alt=\"Picture 6\" \/><\/p>\n<p>Gotcha!<br \/>\nvi that file, search for focus, and comment out the offending line:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"http:\/\/www.corbinstreehouse.com\/blog\/FocusStealingFix.png\" height=\"58\" width=\"371\" border=\"1\" hspace=\"4\" vspace=\"4\" alt=\"Picture 7\" \/><\/p>\n<p>And we are done! No more focus stealing&#8230;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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&#8230; <a class=\"read-more\" href=\"https:\/\/www.corbinstreehouse.com\/blog\/2005\/06\/fixing-the-annoying-focus-stealing-habit-of-safari-rss-feeds\/\">[read more]<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[4,1],"tags":[],"class_list":["post-48","post","type-post","status-publish","format-standard","hentry","category-apple","category-general"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.corbinstreehouse.com\/blog\/wp-json\/wp\/v2\/posts\/48","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.corbinstreehouse.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.corbinstreehouse.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.corbinstreehouse.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.corbinstreehouse.com\/blog\/wp-json\/wp\/v2\/comments?post=48"}],"version-history":[{"count":0,"href":"https:\/\/www.corbinstreehouse.com\/blog\/wp-json\/wp\/v2\/posts\/48\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.corbinstreehouse.com\/blog\/wp-json\/wp\/v2\/media?parent=48"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.corbinstreehouse.com\/blog\/wp-json\/wp\/v2\/categories?post=48"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.corbinstreehouse.com\/blog\/wp-json\/wp\/v2\/tags?post=48"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}