Chrome Extension
Budget: $10 – $30 USD
Hi, my name is Johan and I am from South Afica. If you can help me I will use you again because I have lot of ideas for chrome extensions
I need a chrome extension but the files that chatgpt code cannot help me.
I need the following extension, will you be able to assist me?
code a complete html script that gives the word count of the existing page and also the option to read the content loud. The script must be available on chrome with the "Add to Chrome" in chrome web store and it must sell for $1 before the user can use the extenson.
Here is the code I have
<!DOCTYPE html>
<html>
<head>
<title>Word Count and Read Out Loud</title>
</head>
<body>
<h1>Word Count and Read Out Loud</h1>
<p>This page contains <span id="word-count">0</span> </span> words.</p>
<button onclick="readOutLoud()">Read Out Loud</button>
<script>
// Function to count the number of words on the page
function countWords() {
var text = document.body.innerText;
var words = text.split(/\s+/);
return words.length;
}
// Function to read the content of the page out loud
function readOutLoud() {
var text = document.body.innerText;
var msg = new SpeechSynthesisUtterance(text);
window.speechSynthesis.speak(msg);
}
// Update the word count on the page
document.getElementById("word-count").innerHTML = countWords();
</script>
</body>
</html>
AND
<!DOCTYPE html>
<html>
<head>
<title>Word Count</title>
</head>
<body>
<p id="word-count">Word count: <span>0</span></p>
<button id="read-aloud-btn">Read Aloud</button>
<script>
// Get the number of words on the page
var words = document.body.innerText.split(' ').length;
document.querySelector('#word-count span').innerText = words;
// Set up click event for the "Read Aloud" button
var readAloudBtn = document.querySelector('#read-aloud-btn');
readAloudBtn.addEventListener('click', function() {
// Get all the text on the page
var text = document.body.innerText;
// Use the SpeechSynthesis API to read the text aloud
var msg = new SpeechSynthesisUtterance(text);
window.speechSynthesis.speak(msg);
});
</script>
</body>
</html>
I need a chrome extension but the files that chatgpt code cannot help me.
I need the following extension, will you be able to assist me?
code a complete html script that gives the word count of the existing page and also the option to read the content loud. The script must be available on chrome with the "Add to Chrome" in chrome web store and it must sell for $1 before the user can use the extenson.
Here is the code I have
<!DOCTYPE html>
<html>
<head>
<title>Word Count and Read Out Loud</title>
</head>
<body>
<h1>Word Count and Read Out Loud</h1>
<p>This page contains <span id="word-count">0</span> </span> words.</p>
<button onclick="readOutLoud()">Read Out Loud</button>
<script>
// Function to count the number of words on the page
function countWords() {
var text = document.body.innerText;
var words = text.split(/\s+/);
return words.length;
}
// Function to read the content of the page out loud
function readOutLoud() {
var text = document.body.innerText;
var msg = new SpeechSynthesisUtterance(text);
window.speechSynthesis.speak(msg);
}
// Update the word count on the page
document.getElementById("word-count").innerHTML = countWords();
</script>
</body>
</html>
AND
<!DOCTYPE html>
<html>
<head>
<title>Word Count</title>
</head>
<body>
<p id="word-count">Word count: <span>0</span></p>
<button id="read-aloud-btn">Read Aloud</button>
<script>
// Get the number of words on the page
var words = document.body.innerText.split(' ').length;
document.querySelector('#word-count span').innerText = words;
// Set up click event for the "Read Aloud" button
var readAloudBtn = document.querySelector('#read-aloud-btn');
readAloudBtn.addEventListener('click', function() {
// Get all the text on the page
var text = document.body.innerText;
// Use the SpeechSynthesis API to read the text aloud
var msg = new SpeechSynthesisUtterance(text);
window.speechSynthesis.speak(msg);
});
</script>
</body>
</html>