Skip to content

Commit

Permalink
Use *= instead of ^= for reliability
Browse files Browse the repository at this point in the history
  • Loading branch information
MaciekBaron committed Jan 21, 2022
1 parent 68b63a6 commit 52b9655
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,7 @@ The code is licensed under GPL v3. The [source clown image](https://commons.wiki
All clowns are randomly generated. Any resemblance or offensive connotation is purely coincidental.

## Changelog
### 0.0.2
* Changing selector to a slightly slower but more reliable one
### 0.0.1
* Initial release
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bird-site-clown",
"version": "0.2.1",
"version": "0.0.2",
"description": "Clownifies NFT bird site",
"main": "content.js",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion src/content.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import makeClown from './clown';

const MUTATION_CONFIG = { childList: true, subtree: true };
const DEBOUNCE_TIME = 100;
const ELEMENT_SELECTOR = 'a>[style^=\'clip-path: url("#hex-hw-shapeclip\']:first-child';
const ELEMENT_SELECTOR = 'a>[style*=\'clip-path: url("#hex-hw-shapeclip\']:first-child';

window.addEventListener('load', () => {
let debounceTimeout: number;
Expand Down

0 comments on commit 52b9655

Please sign in to comment.