Google Extension: Social Club to BBcode, Youtube and Text
Jul 20, 2023 22:39:29 GMT
stone_xo, meatcoffee, and 2 more like this
Post by agrajag on Jul 20, 2023 22:39:29 GMT
Google extension: Social Club Jobs to...
This is a Google Extension to quickly create job lists from currently opened tabs in Google Chrome. This allows users to export lists of jobs to BBcode (for these forums in particular), a template for YouTube chapters (so the job name, creator and links are all filled in, just fill in the timestamps yourself), CSV (for spreadsheets) and Text (e.g. for PSN Chats). This works for PC users only (not mobile) but should work with all Chromium based browsers. This is intended as a time saver in particular for event hosts but also to help add to YouTube streams with timestamps for jobs, share playlists to PSN chats in a more readable format and to catalogue jobs in spreadsheets.
Download Link (Version 0.7) - .crx file
Download Link (Version 0.7) - .zip file
Download Link (Version 0.7) - Unpacked
How To Install
1. Open the Extensions Page:
Type "chrome://extensions/" into your Chrome address bar, or go to the menu (three vertical dots in the top-right corner) > More tools > Extensions.
2. Enable Developer Mode:
At the top right corner of the Extensions page, there should be a toggle switch for "Developer mode." Enable this mode to enable manual installation.
3. Install the Extension:
Now that Developer mode is enabled, you can install the downloaded extension in two different ways:
Method 1: Drag and Drop:
Drag the downloaded ".crx" file from your file explorer and drop it onto the Extensions page.
Method 2: Load the Unpacked folder
Extract the zipped to a folder. Within Chrome navigate to the extension page then "Load Unpacked" then select the folder
4. Confirmation:
Chrome will display a pop-up asking for confirmation to install the extension. Click "Add extension" to proceed. Note that this warning indicates that you are installing an extension that is not from the Chrome Web Store.
5. Extension Installed:
Once the process is complete, the extension should appear in the list of installed extensions on the Extensions page.
6. Verify the Extension:
After installation, it's a good idea to verify that the extension works as intended and is not causing any issues with your browsing experience.
How To Use
1. Open the Job Lins
In Chrome open the jobs in individual tabs, wait for them to fully load and re-order as necessary (the extension will read the jobs from left to right). This does not work with playlists (sorry, you'll have to open a tab for each job)
2. Click the extension
This will either be the "SC" logo or from the Jigsaw image > Social Club Jobs to.... The job information should then be displayed in the extension.
3. Set your options
a. For BBCode
When creating BBcode you can then choose what gets displayed when you click the "Generate BBcode" option. This is pretty customisable allowing you to decide what options you wish to be generated. You can also add custom BBcode (or plain text) that will be added to the generated BBcode after the creator info.
Once you're happy with the configuration simply click "Generate BBCode" and then "Copy BBcode". The configuration and custom BBcode will save for the next time you use the extension!
(Note if you want GTALens links to be generated you'll need to install from the Chrome Store).
b. For YouTube and Text
Click the appropriate checkboxes you wish to be included (note, some are only usable while generating BBcode) and the text will be generated.
For YouTube this will generate a template with each line beginning with 00:00. You'll need to paste the generated text into your YouTube video description (or as a comment) then manually change each 00:00 to appropriate timestamps (format should be HH:MM:SS)
If you wish to copy the text to mobiles then this is relatively easy with any Windows based system and the Microsoft Swiftkey keyboard (and I'm sure there's other alternatives, Google it). See this guide for Swiftkey
c. For CSV (Comma Separated Values)
Again select the appropriate checkboxes (noting not all are usable with the CSV option). Clicking generating CSV will generate text usable with all major spreadsheet applications (eg Excel, Google Sheets).
Simply paste the text into your spreadsheet then separate into columns, usually by going to Data > Split Text Into Columns (or similar).
Known Issues
- When Generating Job Icons and Job Types the extension will attempt to automatically correct both from the Social Club supplied types to something more useful (for example to Limited Life DeathMatches, Banger Races and "actual" Stunt Races) and it does this by searching for keywords in the job description or title (e.g. "Bang" or "Crash", "F2F or "Face to Face" for Bangers). This may lead to results that don't quite make sense and certainly won't work perfectly.
- When Job's are clicked on via your activity feed the Job Creator field will be incorrect...and I don't know why. Even refreshing the page doesn't help. Instead search for the job manually on social club and everything should then work as intended on that tab instead.
- The order is generated in a pre-defined fixed format. It felt beyond the scope of the extension to allow fuller customisation as the code should be appropriate (or at least a appropriate starting point) in most cases.
FAQ
1. How as the Extension created?
Essentially this is a ChatGPT created extension with lots of inputs, corrections and time spent by me to get it to a working state. I didn't write a single line of code (and even this seemingly simple extension literally takes 100s) primarily for personal use for creating forum threads for Got Talent and Verified jobs, as well as satisfying a AI curiosity. However if people get use out of it then great!
2. I'm uncomfortable not downloading from the Google Store. Why not just put it on there?
Google extensions are built using essentially different sets of rules (Manifest v2 and v3) which dictate how the extension can interact with webpages. At ChapGPT's cut-off in September 2021 Manifest v2 was the most common however, at the end of this year (2023), is due to have it's support cut. As such Google no longer accept anything using this old version Manfiest v2, which is the only version I can do this in due to ChatGPTs limitations. In fact the extension, as is, can't work quite the same in Manfiest v3 (as far as I understand) and will need almost a complete rewrite at some point.
3. Will this be kept up-to-date?
Yes, however as the extensions not from the Google Store you'll need to check here for updates. I do not intend adding any more features and will likely only attempt to fix when Rockstar alter some part of the code breaking the extension. After the end of this year, at some point, the extension will probably stop working due to the nerdy stuff above. However Google are somewhat sketchy on the details thus far.
4. I see an error message in the extension page
This is because the extension is written using Manifest v2 and not the newer Manfiest v3 (explained above).
5. I've found a bug or have an idea!
Bugs and ideas are welcome below. I'm unlikely to add any major functionality though as long the extension works as I intended and I've spent a silly amount of hours on it so far (however if the idea's good and easy to implement meh).
This is a Google Extension to quickly create job lists from currently opened tabs in Google Chrome. This allows users to export lists of jobs to BBcode (for these forums in particular), a template for YouTube chapters (so the job name, creator and links are all filled in, just fill in the timestamps yourself), CSV (for spreadsheets) and Text (e.g. for PSN Chats). This works for PC users only (not mobile) but should work with all Chromium based browsers. This is intended as a time saver in particular for event hosts but also to help add to YouTube streams with timestamps for jobs, share playlists to PSN chats in a more readable format and to catalogue jobs in spreadsheets.
Download Link (Version 0.7) - .crx file
Download Link (Version 0.7) - .zip file
Download Link (Version 0.7) - Unpacked
How To Install
1. Open the Extensions Page:
Type "chrome://extensions/" into your Chrome address bar, or go to the menu (three vertical dots in the top-right corner) > More tools > Extensions.
2. Enable Developer Mode:
At the top right corner of the Extensions page, there should be a toggle switch for "Developer mode." Enable this mode to enable manual installation.
3. Install the Extension:
Now that Developer mode is enabled, you can install the downloaded extension in two different ways:
Method 1: Drag and Drop:
Drag the downloaded ".crx" file from your file explorer and drop it onto the Extensions page.
Method 2: Load the Unpacked folder
Extract the zipped to a folder. Within Chrome navigate to the extension page then "Load Unpacked" then select the folder
4. Confirmation:
Chrome will display a pop-up asking for confirmation to install the extension. Click "Add extension" to proceed. Note that this warning indicates that you are installing an extension that is not from the Chrome Web Store.
5. Extension Installed:
Once the process is complete, the extension should appear in the list of installed extensions on the Extensions page.
6. Verify the Extension:
After installation, it's a good idea to verify that the extension works as intended and is not causing any issues with your browsing experience.
How To Use
1. Open the Job Lins
In Chrome open the jobs in individual tabs, wait for them to fully load and re-order as necessary (the extension will read the jobs from left to right). This does not work with playlists (sorry, you'll have to open a tab for each job)
2. Click the extension
This will either be the "SC" logo or from the Jigsaw image > Social Club Jobs to.... The job information should then be displayed in the extension.
3. Set your options
a. For BBCode
When creating BBcode you can then choose what gets displayed when you click the "Generate BBcode" option. This is pretty customisable allowing you to decide what options you wish to be generated. You can also add custom BBcode (or plain text) that will be added to the generated BBcode after the creator info.
Once you're happy with the configuration simply click "Generate BBCode" and then "Copy BBcode". The configuration and custom BBcode will save for the next time you use the extension!
(Note if you want GTALens links to be generated you'll need to install from the Chrome Store).
b. For YouTube and Text
Click the appropriate checkboxes you wish to be included (note, some are only usable while generating BBcode) and the text will be generated.
For YouTube this will generate a template with each line beginning with 00:00. You'll need to paste the generated text into your YouTube video description (or as a comment) then manually change each 00:00 to appropriate timestamps (format should be HH:MM:SS)
If you wish to copy the text to mobiles then this is relatively easy with any Windows based system and the Microsoft Swiftkey keyboard (and I'm sure there's other alternatives, Google it). See this guide for Swiftkey
c. For CSV (Comma Separated Values)
Again select the appropriate checkboxes (noting not all are usable with the CSV option). Clicking generating CSV will generate text usable with all major spreadsheet applications (eg Excel, Google Sheets).
Simply paste the text into your spreadsheet then separate into columns, usually by going to Data > Split Text Into Columns (or similar).
Known Issues
- When Generating Job Icons and Job Types the extension will attempt to automatically correct both from the Social Club supplied types to something more useful (for example to Limited Life DeathMatches, Banger Races and "actual" Stunt Races) and it does this by searching for keywords in the job description or title (e.g. "Bang" or "Crash", "F2F or "Face to Face" for Bangers). This may lead to results that don't quite make sense and certainly won't work perfectly.
- When Job's are clicked on via your activity feed the Job Creator field will be incorrect...and I don't know why. Even refreshing the page doesn't help. Instead search for the job manually on social club and everything should then work as intended on that tab instead.
- The order is generated in a pre-defined fixed format. It felt beyond the scope of the extension to allow fuller customisation as the code should be appropriate (or at least a appropriate starting point) in most cases.
FAQ
1. How as the Extension created?
Essentially this is a ChatGPT created extension with lots of inputs, corrections and time spent by me to get it to a working state. I didn't write a single line of code (and even this seemingly simple extension literally takes 100s) primarily for personal use for creating forum threads for Got Talent and Verified jobs, as well as satisfying a AI curiosity. However if people get use out of it then great!
2. I'm uncomfortable not downloading from the Google Store. Why not just put it on there?
Google extensions are built using essentially different sets of rules (Manifest v2 and v3) which dictate how the extension can interact with webpages. At ChapGPT's cut-off in September 2021 Manifest v2 was the most common however, at the end of this year (2023), is due to have it's support cut. As such Google no longer accept anything using this old version Manfiest v2, which is the only version I can do this in due to ChatGPTs limitations. In fact the extension, as is, can't work quite the same in Manfiest v3 (as far as I understand) and will need almost a complete rewrite at some point.
3. Will this be kept up-to-date?
Yes, however as the extensions not from the Google Store you'll need to check here for updates. I do not intend adding any more features and will likely only attempt to fix when Rockstar alter some part of the code breaking the extension. After the end of this year, at some point, the extension will probably stop working due to the nerdy stuff above. However Google are somewhat sketchy on the details thus far.
4. I see an error message in the extension page
This is because the extension is written using Manifest v2 and not the newer Manfiest v3 (explained above).
5. I've found a bug or have an idea!
Bugs and ideas are welcome below. I'm unlikely to add any major functionality though as long the extension works as I intended and I've spent a silly amount of hours on it so far (however if the idea's good and easy to implement meh).
Links