Welcome to the CricInfo Chrome Extension! This extension allows you to view live cricket scores and completed match details directly from your Chrome browser. You can filter and search for specific matches, view both live and completed matches, and stay up-to-date with your favorite teams and tournaments.
- Live Matches: Get real-time scores of ongoing cricket matches.
- Completed Matches: View the details and scores of recently completed matches.
- Search Functionality: Easily find matches by team names, tournament, or match type.
- Filter Options: Filter matches based on status (live or completed).
Before you can start using the extension, you need to have the following:
- A Chrome browser installed on your computer.
- An API key from CricketData.
-
Clone the repository:
git clone https://github.com/replyre/CricInfo.git
-
Navigate to the directory:
cd CricInfo
-
Open Chrome and go to the Extensions page:
- Navigate to
chrome://extensions/
- Enable "Developer mode" by clicking the toggle switch in the top right corner.
- Navigate to
-
Load the extension:
- Click the "Load unpacked" button and select the directory where you cloned the repository.
-
Obtain an API key:
- Sign up or log in to CricketData to obtain your API key.
-
Enter your API key:
- Open the
config.js
file in the extension directory. - Replace the placeholder with your actual API key:
export const API_KEY = "your api key";
- Open the
Once the extension is installed and configured, you can start using it right away:
-
Open the extension:
- Click on the CricInfo icon in the Chrome toolbar.
-
View matches:
- The extension will display a list of all current live matches by default.
-
Search for matches:
- Use the search bar to find specific matches by team name or tournament.
-
Filter matches:
- Use the filter options to switch between different matches formats. You can also switch between live and complete matches.
index.html
: The main HTML file for the extension's popup interface.script.css
: The CSS file for styling the extension's popup interface.script.js
: The JavaScript file containing the logic for fetching and displaying match data.config.js
: Configuration file to store your API key.
The HTML file (index.html
) contains the structure of the extension's user interface. It includes elements such as the search bar, filter buttons, and the match list container.
The CSS file (script.css
) is used to style the extension's user interface, ensuring a clean and user-friendly design.
The JavaScript file (script.js
) handles the core functionality of the extension, including:
- Fetching match data from the CricketData API.
- Displaying live and completed matches.
- Implementing search and filter features.
The config.js
file stores your CricAPI key. Ensure this file is updated with your personal API key to allow the extension to fetch match data.
We welcome contributions to improve this extension. If you have any suggestions or improvements, please feel free to submit a pull request or open an issue on the repository.
Thank you for using the CricInfo Chrome Extension! Enjoy staying up-to-date with all the cricket action right from your browser.