Skip to content

Commit

Permalink
feat: gets initial POC working with submit buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
schne324 committed Jan 7, 2018
0 parents commit a857a60
Show file tree
Hide file tree
Showing 13 changed files with 5,682 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"presets": ["env"]
}
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
dist
node_modules
22 changes: 22 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"extends": ["eslint:recommended"],
"parser": "babel-eslint",
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 8
},
"rules": {
"eqeqeq": 0,
"curly": 2,
"quotes": [1, "single"],
"semi": ["error", "always"]
},
"env": {
"es6": true,
"node": true,
"browser": true
},
"globals": {
"chrome": true
}
}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
node_modules/
dist/
35 changes: 35 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Cogsistency

Creating consistent (appearing) UI for common element types

## Installation / Setup

### Build extension

```sh
$ npm install && npm run build
```

### Load extension

- Go to `chrome://extensions`
- Check developer mode
- Click "Load unpacked extension..."
- Select the `dist/` directory of this project

### Debugging in the browser

Open up the devtools console and set the desired debug flag(s):

```js
localStorage.debug = 'cogsistency:*';
```

## See it in action

For proof of concept purposes, I've added a simple overlay for all submit buttons. Go to any page with a submit button.

## TODO

- write tests
- create a popup with UI to easily add new overlay types (utilize persistent background script to "permanently" store overlay data)
Loading

0 comments on commit a857a60

Please sign in to comment.