This Chrome extension allows you to clip Leetcode information to your Notion database with just one click.
Create a database in Notion with minimum fields of Name
, Link
, Date
, Difficulty
and Notes
to work with this extension.
I have extracted the following database template from one that I have previously used.
- add a
secret.ts
undersrc
with the following 3 lines
const NOTION_KEY = "" // your integration notion key started with "secret_"
const NOTION_DATABASE_ID = "" // your notion database id
export { NOTION_KEY, NOTION_DATABASE_ID }
npm i
to install dependanciesnpm start
to start running the fast development mode Webpack build process that bundle files into thedist
foldernpm i --save-dev <package_name>
to install new packages
- Open Chrome and navigate to
chrome://extensions/
- Toggle on
Developer mode
in the top right corner - Click
Load unpacked
- Select the entire
dist
folder
npm run build
to generate a minimized production build in thedist
folder- ZIP the entire
dist
folder (e.g.dist.zip
) - Publish the ZIP file on the Chrome Web Store Developer Dashboard!
- Folders get flattened, static references to images from HTML do not need to be relative (i.e.
icon.png
instead of../static/icon.png
) - Importing local ts/tsx/css files should be relative, since Webpack will build a dependancy graph using these paths
- Update the manifest file as per usual for chrome related permissions, references to files in here should also be flattened and not be relative