Kerrick
Kerrick

Reputation: 7478

Is there a way to query or modify the history of a single tab with a Chrome Extension?

I'm looking through the Chrome Extension API documentation about chrome.history, and I can't seem to find a way to query or modify the history of a single tab. That is to say, the back/forward menu contents of a tab. Everything in the docs seems to treat Chrome's history as if it was one large amalgam.

So, is there a way to query or modify Chrome history on a tab-by-tab basis? If so, how?

Upvotes: 2

Views: 398

Answers (2)

userrandrand
userrandrand

Reputation: 171

I had this issue and decided to programmatically simulate using the right-click button on the back arrow. I just recently set up a keyboard shortcut for that.

The drawback of this method is that it only works for a fixed window size and maybe needs to be set up again every time we use a different computer.

Upvotes: 0

tomdemuyt
tomdemuyt

Reputation: 4592

There is not. Jasper's suggestion is valid though, injecting a content script would allow access to the history of the tab.

Upvotes: 2

Related Questions