0.8.1 • Published 13 days ago

twi-ext v0.8.1

Weekly downloads
-
License
MIT
Repository
github
Last release
13 days ago

twi-ext

Unofficial utility to develop browser extensions for Twitter / X.

!IMPORTANT This utility works only within page scripts. Running it within a content script may result in an error.

Installation

npm install twi-ext

Usage

import { Timeline, Tweet } from "twi-ext";

const onNewTweet = (tweet: Tweet): void => {
    // Get the tweet element.
    const tweetElement = tweet.element;
    // Get the React props of the tweet.
    const props = tweet.props;
};

const timeline = new Timeline();
timeline.onNewTweet((tweet) => {
    // Do something when a new tweet is added to the timeline.
    onNewTweet(tweet);
});

See the documentation for more information.

License

This project is licensed under the MIT License - see the LICENSE file for details.

Development

npm install

Build

To build the project and generate the documentation:

npm run build

Format

To format the code:

npm run format

Lint

To lint the code:

npm run lint

Pull Requests

This repository uses Changesets to manage versioning and releases. When creating a pull request, please run the Changesets CLI and commit the changeset file.

npx changeset
0.8.1

13 days ago

0.7.2

15 days ago

0.8.0

15 days ago

0.7.1

15 days ago

0.7.4

15 days ago

0.7.3

15 days ago

0.7.0

17 days ago

0.5.2

18 days ago

0.6.0

17 days ago

0.5.1

18 days ago

0.5.0

22 days ago

0.4.1

23 days ago

0.4.0

23 days ago

0.3.1

23 days ago

0.3.0

24 days ago

0.2.0

24 days ago

0.1.2

24 days ago

0.1.1

24 days ago

0.1.0

24 days ago