tweetcounter.mp4
This is a Chrome extension that counts the number of tweets on the Twitter page. It uses MutationObserver to observe changes in the DOM and count the tweets. It also has a popup to reset the count and adjust the target count, and a graph to show the count over time.
- Clone this repository
- Open Chrome and go to
chrome://extensions
- Enable Developer mode by ticking the checkbox in the upper-right corner
- Click on the "Load unpacked extension..." button
- Select the directory containing your unpacked extension
- Visit Twitter
- The extension will automatically start counting the tweets
- Click on the extension icon to see the current count and adjust the target count
- Click on the "View Daily Usage Graph" link to see the count over time
content.js
: Observes changes in the DOM and counts the tweetsgraph.html
: Displays the graph of the count over timegraph.js
: Generates the graph using Chart.jsmanifest.json
: Defines the extension's settings and permissionspopup.html
: The HTML for the popuppopup.js
: Handles the popup's interactionsbackground.js
: Maintains the count and handles messages from the content script and the popup
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
created by AIRobin twitter: AIRobin_net