Can the new Safari App Extensions read browser history? If so, what are the API calls?
Asked
Active
Viewed 1,099 times
-1
-
3Read the [documentation](https://developer.apple.com/documentation/safariservices/safari_app_extensions) – Scriptable Apr 25 '19 at 12:26
-
2@Scriptable I know you're trying to make a point, but it's not a valid one. My question is fine for StackOverflow; asking for directions on how to implement a specific action using code. *All* questions at StackOverflow could be answered by some documentation - the reason people use SO is that they don't know where to search specifically. – LBogaardt Apr 25 '19 at 12:34
-
3I don't believe that your question is on-topic for StackOverflow... It asks two questions, is very broad, shows no research/attempt. But that is just my opinion.. I'll leave it to the rest of the community to decide – Scriptable Apr 25 '19 at 12:47
-
2It's one question and it's super precise. Only two possbile answers could be given: 1. No, and here's a reference to prove it's not possible. Or 2. Yes, and here's a reference to the API call to read Safari's browser history. – LBogaardt Apr 26 '19 at 17:29
-
It's getting downvoted, yet even with a bounty there is still no answer... seems like it's not a easy question to answer afterall... – LBogaardt Apr 28 '19 at 12:25
-
I looked into this a little this morning and I don't think it is possible, you only have access to the current page content – Scriptable Apr 28 '19 at 14:18
-
@Scriptable Thanks for looking into it. Kinda weird Apple doesn't offer such basic functionality... Chrome offers much more, with clear documentation (https://developers.chrome.com/extensions/history). – LBogaardt Apr 30 '19 at 11:07
-
yeah, it's Apple and privacy, they restrict us alot. :( – Scriptable Apr 30 '19 at 12:05
-
2A year later, and I still feel annoyed that this is getting downvotes. The question is purposefully succinct and to the point. It is clear what is being asked and it's a relevant problem (note that no one was able to answer it so far). This should be the hallmark of a _good_ question. – LBogaardt Mar 23 '20 at 10:52
1 Answers
2
After some searching, I could not find any mentions of a history API (such as in the case of Chrome, see https://developers.chrome.com/extensions/history). So the absence of evidence in this case is evidence of absence.

LBogaardt
- 402
- 1
- 4
- 25