Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Any way to import from TGS, now that TGS is disabled? #3

Closed
q00u opened this issue Feb 4, 2021 · 16 comments
Closed

Any way to import from TGS, now that TGS is disabled? #3

q00u opened this issue Feb 4, 2021 · 16 comments
Labels

Comments

@q00u
Copy link

q00u commented Feb 4, 2021

Is there an upgrade path from The Great Suspender?

The Great Suspender was disabled by the Chrome store today for containing malware, so there's no access to export from the extension itself.

@anish749
Copy link

anish749 commented Feb 4, 2021

Press back on the tabs that was suspended by tgs, then wait for tms to suspend it back again.

@q00u
Copy link
Author

q00u commented Feb 4, 2021

I don't mean for individual tabs. I have 2000+ tabs. Is there a way to import the TGS session into TMS?

Also, pressing back does not always work. First of all, it does not appear to give you the suspended page, but the one prior to it in the history. And if there's NO prior page, you can't go back.

@ultrafez
Copy link

ultrafez commented Feb 4, 2021

It might be possible for the author of TMS to add a feature to the extension to find all open tabs that were suspended using TGS, extract the URL from the "suspended" URL, and then suspend them using TMS.

I've never written a Chrome extension, but from having a quick search online, it seems to be possible to get the URLs of all the open tabs.

If @gioxx implemented this fairly quickly, then it would provide a good migration experience for all of the users of TGS who now have loads of unsuspendable tabs.

@wchristian
Copy link

wchristian commented Feb 4, 2021

i've explained how to load the tabs again in this issue: #7

@Kyu
Copy link

Kyu commented Feb 4, 2021

I've never written a Chrome extension, but from having a quick search online, it seems to be possible to get the URLs of all the open tabs.

I tried to write such an extension, was blocked by this chrome feature

But this was my first attempt at writing a an extension, so maybe someone with more experience can do it

@alagos
Copy link

alagos commented Feb 4, 2021

FWIW, check this comment, it should work for a handful of pages to recover.
Not sure about +2000 tags, but with enough time and patience...

@basilisk487
Copy link

@q00u try restarting Chrome, and re-enabling TGS - there is about a minute or so window of time before it gets blocked again, but that should be enough to export your session. Disabling your internet connection before restarting Chrome should give you more than enough time to export.

@q00u
Copy link
Author

q00u commented Feb 4, 2021

Unfortunately, due to having 2000+ tabs, it takes far more than a minute before I'm able to use Chrome after restarting.

Exporting the session only gives you the current page, not the history. It's a solution, but not a perfect solution.

For some reason, my other computer hadn't disabled TGS yet, and I was able to install TMS, and right-click-TGS-Unsuspend-all-tabs-in-all-windows, and voila! TGS can go away and I don't lose anything because nothing was suspended. Of course, that computer didn't have nearly as many tabs.

And alas, the disconnect-from-Internet technique is not ideal either, since unsuspending tabs with no network connection just gives me a lot of dead pages.

@ossie-git
Copy link

@q00u You can try this. A little manual but it works:

  • extract Chrome's history (you can do this by running sqlite3 on the History file or you can use ChromeHistoryView if you are on Windows)
  • extract lines in your history file that have the string "klbibkeccnjlkjkiokjodocebajanakg"
  • extract the URL from these lines and save the list to a file
  • import the list using this extension Open Multiple URLs
  • remove the "Open Multiple URLs" extension

@gioxx
Copy link
Owner

gioxx commented Feb 5, 2021

If @gioxx implemented this fairly quickly, then it would provide a good migration experience for all of the users of TGS who now have loads of unsuspendable tabs.

Unfortunately I was unlucky like @Kyu because I'm a newbie with Chrome extensions development. At this time I can't write an importer from TGS but there are a lot of methods to migrate all tabs to TMS. Sorry and many thanks for all your suggestions and feedback!

Developers: feel free to make a pull request if you want to integrate an importer from TGS to TMS into the source code of this extension. All contributions are absolutely precious!

@gioxx gioxx added enhancement New feature or request help wanted Extra attention is needed labels Feb 5, 2021
@gioxx gioxx pinned this issue Feb 5, 2021
@AdrianKielbowicz
Copy link

You can get the URLs from:

C:\Users%Username%\AppData\Local\Google\Chrome\User Data\Default\IndexedDB\chrome-extension_klbibkeccnjlkjkiokjodocebajanakg_0.indexeddb.blob

(look at the most recent folder with a randomly named file in it)

Formatting is crap so it takes time to get the URLs out but it is certainly doable. Not sure about 2000+ tabs, just done about a hundred and want to kill myself now!

@ultrafez
Copy link

ultrafez commented Feb 5, 2021

Another method @q00u that might work for you, if the history methods discussed above don't work - from the "..." Chrome menu, you can choose Bookmarks -> "Bookmark All Tabs...", which saves them all into a folder, including the chrome-extension:// URLs. You can then export these bookmarks as an HTML page using the Bookmark Manager, at which point you could extract all of the URLs en masse with a text editor.

@Technetium1
Copy link

@q00u
Copy link
Author

q00u commented Feb 6, 2021

That pull request looks great! Any chance of getting it for Marvelous Suspender as well?

@Technetium1
Copy link

Another solution to be aware of greatsuspender#1263 (comment)

@JesusAtheist
Copy link

#42

@gioxx gioxx unpinned this issue Feb 14, 2021
@gioxx gioxx added fixed and removed enhancement New feature or request help wanted Extra attention is needed labels Feb 14, 2021
@sherkot sherkot closed this as completed May 28, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests