This is a Chrome extension intended to interface with clubwpt.com. It offers the ability to modify timezone for tournaments viewed on lobby.clubwpt.com site. And save specified tournaments to a users Google Calendar for easy reminders.
Unofficial helper tool for ClubWPT's website. Not affiliated with WPT in any way. This Chrome extension scrapes tournament information from the ClubWPT lobby website modifies live tournament times for user specified timezone and allows the ability to add tournaments to a specified Google Calendar. No longer will you miss the large daily tournaments.
- Open Google Chrome and navigate to
chrome://extensions/. - Enable "Developer mode".
- Clone or download this repository.
- Build package from source code. This allows for code to run within google chrome.
$ npm run build - Click "Load unpacked" and select the directory containing this project.
- Navigate to the ClubWPT lobby website.
- Click on the extension icon to open the popup.
- Click the "Scrape Tournaments" button.
- The tournament information will be scraped and added to your Google Calendar.
- Auto fix linting errors and improve code quality.
$ npm run lint-fix - Auto fix code formatting to improve readability and my sanity.
$ npm run pretty Documentation is able to be update automatically via typedoc and scripts/inject-front-matter.js.
- Run the following command to update documentation.
$ npm run docs - Next Move to the
./docsdirectory - First, run the clean command.
$ bundle exec jekyll clean - Second, run the build command.
$ bundle exec jekyll build - Finally, run the serve command and preview docs locally on
http://127.0.0.1:4000/
$ bundle exec jekyll serve Note: Update documentation after updating excludes within on of the following index. files:
- [api, services, types]
- or create a new index.ts file and update the following files:
- typedoc.json -> Entry points for typedoc
- tsconfig.json -> Allows includes with '@' for example '@types'
- webpack.config.js -> Allows includes with '@' to work in ClubPoker Extension.
Documentation is built from index.ts files at head of the following folders: [api, services, types]
- Build package components for use in storybook.
$ npm run build-storybook - Host storybook webpage
$ npm run storybook identity: Required for OAuth2 authentication with Google Calendar.activeTab: Required to execute the content script on the active tab.scripting: Required to inject the content script.
manifest.json: Configures the extension.content/: Contains the content script for scraping data.background/: Contains the background script for API interactions.popup/: Contains the popup UI files.icons/: Contains the extension icons.