Skip to content

Instantly share code, notes, and snippets.

@hradec
Created July 20, 2023 01:46
Show Gist options
  • Save hradec/ddb668fe4ff842794edbb95266345112 to your computer and use it in GitHub Desktop.
Save hradec/ddb668fe4ff842794edbb95266345112 to your computer and use it in GitHub Desktop.
A quick script to fix the broken tabs from TheGreatSuspender plugin that has been blocked by chrome.
!/bin/bash
# pull an export from FreshStart chrome plugin directly from the clipboard and fix the URLs
xclip -o | sed 's/,/,\n/g' | sed 's/chrome.extension.*uri.//g' | tr -d '\n' > /dev/shm/fixTheGreatSuspender
# just show the fixed version on the console
cat /dev/shm/fixTheGreatSuspender
# now copy it back to the clipboard, so we can import in FreshStart
xclip -selection c -i < /dev/shm/fixTheGreatSuspender
@hradec
Copy link
Author

hradec commented Jul 20, 2023

Install the FreshStart chrome extension so you can save all your broken tabs.
image

After saving all your windows and tabs, click on the session you just saved, and click on the export button:
image

it will show the session as TXT and you can copy using crtl+c:
image

After you copy it and it's on the clipbloard, run the fixTheGreatSuspenderTabs.sh script. It will fix the URL of all tabs in all windows and copy the fixed version to the clipboard.

After running the script, you can just import it in FreshStart, using the import button:
image

Click on the square box and hit crtl+p to paste the fixed TXT, and hit import session
image

You should end up with a new session on top of the one you previously saved. Just click on it and it should open the windows you saved, with all the tabs and they should load all correctly now.

If you still want to use TheGreatSuspender like me, you can follow these instructions from #1263:

If you enjoy using the extension, and wish to continue using it as it was, download the source code from the Github repository (version 7.1.6), enable developer mode, select "Load unpacked extension", and point it at the /src directory. Bam! You are now running The Great Suspender as @deanoemcke created it. @aciidic has gone further, creating a new repository not under the control of the old maintainer, and with all tracking code removed, here. The Marvellous Suspender is another fork currently on the Chrome Web Store, for those who would prefer not to finagle with developer mode settings.

Personally, I like the idea of running it "unpacked" from a folder on my computer, so it will never change and it will never be blocked again! Not to mention this old 7.1.6 version is waaaaay less memory hungry than the one from the chromestore! ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment