Skip to content

Latest commit

 

History

History
58 lines (40 loc) · 1.8 KB

CONTRIBUTING.md

File metadata and controls

58 lines (40 loc) · 1.8 KB

How to develop

Setup

  1. Install Nix package manager
  2. Run nix develop or nix develop --command 'zsh'
  3. You can use development tools
> nix develop
(prepared bash)

> deno task
Available tasks:
- build
- check
...

Usage

> deno task build
...
Built to out/depop-0.0.0.13.zip:
...

How to struggle with CSS selector?

In the Chrome Developer Tools, type the following in the console.

document.querySelectorAll("div:has(> h2 a[href$='?tab=achievements'])");

Then expand the NodeList(2), and hover to them, chrome tells us where the element is.

Carefully handle adjusted JSON schema

src/manifestSchemaAdjusted.json

The filled enum is not perfect. It should contain URIs. But you can update as following steps

  1. Download the base schema from https://github.com/SchemaStore/schemastore/blob/fd34ef2aa89e5007ed67d6844f1519cfec75678c/src/schemas/json/chrome-manifest.json
  2. Download and extract and formats the https://developer.chrome.com/docs/extensions/mv3/permission_warnings/ as tmp/scrape.html
  3. rg '<tr id="([^"]+)">' -or '"$1",' tmp/scrape.html will show the most definitions, but not correct, and it includes non enum like URL patterns

Which timing is the best to execute?

This article may help you.

Release

  1. Bump version in manifest file
  2. Add git tag and push.
  3. Download released assets and upload the depop-VERSION.zip into Developer Dashboard