Note that there are some explanatory texts on larger screens.

plurals
  1. POIs it possible to monitor all network traffic in a Safari Extension?
    primarykey
    data
    text
    <p>Since the newer versions of Safari (I'm running version 5.2) seem to have removed the "Activity" viewer from the "Window" menu, I would like to write an extension to have this feature back. However, in order to do that I think that I will need to be able to see what URLs are being requested in that window/tab. For Chrome, there is a <a href="http://code.google.com/chrome/extensions/trunk/webRequest.html" rel="noreferrer">"webRequest" API</a> that does this, but I can't seem to find what I'm looking for to do this in Safari. Would someone please tell me if this is possible, and if so, where should I look next? Thanks in advance. </p> <p>So far, the most I've been able to get is using an injected start script like the one below: </p> <pre><code>function trackRequests() { console.log(event.timeStamp + ": " + event.type, event.url, event); } document.addEventListener("beforeload", trackRequests, true); </code></pre> <p>However, this does not provide enough for the features I'll need for this. For example, if a URL is specified without a protocol e.g. "//example.com/file.txt" that is all this handlers sees; it doesn't know what actual protocol was used or if the request was allowed.</p> <p>It appears that <a href="https://discussions.apple.com/thread/4138462?start=0&amp;tstart=0" rel="noreferrer">some people on the Apple discussion forums</a>, <a href="http://macdailynews.com/2012/08/10/the-top-10-most-missed-features-apple-removed-from-os-x-mountain-lion/" rel="noreferrer">MacDailyNews</a>, and <a href="http://arstechnica.com/apple/2012/08/the-10-features-removed-from-mountain-lion-that-we-miss-the-most/" rel="noreferrer">ArsTechnica</a> have expressed a desire to have this feature back in Safari as well. <a href="http://forums.macrumors.com/showthread.php?t=1411248" rel="noreferrer">Here's a link to another discussion on MacRumors.com</a> and <a href="http://forums.macrumors.com/showthread.php?p=15330042#post15330042" rel="noreferrer">another</a>.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload