1 Webiste Name: Dev To
Target the Top description div and change the DEV Community to <Your_Name> and description to your passion
2. Website Name: Apple
Fetch all the product name and store in an array
let productName = document.querySelectorAll(".as-imagegrid-item-title")
let x = [];
for(let i=0; i < productName.length; i++){
x.push(productName[i].textContent)
}
7
console.log(x)
VM9063:1 (7) ['iPhone Support', 'Mac Support', 'iPad Support', 'Watch Support', 'AirPods Support', 'Music Support', 'TV Support']
3. Webiste Name: Youtube Support
Add another FAQ 'My New FAQ' to the list
const faq = document.querySelector(".accordion-homepage");
const section = document.createElement("section");
section.className = "parent";
const faw = document.createElement("h3");
let txtNode = document.createTextNode("MY New FAQ");
faw.appendChild(txtNode);
section.appendChild(faw);
faq.appendChild(section);
4. Webiste Name: OnePlus
Change the contact number
4. document.querySelector(".customer-support a").innerText = "+91 1919191919";
contact no. changw to 1919191919
5. Webiste Name: Samsung
Target the main div of card and change the Button text to Check out
document.querySelector(".mytabs .diwali-deals-product-sale-pro .diwali-deals-product-sale-btn").innerText = "Check out".
6. Webiste Name: Adidas
Target the search box and on hover change the background color to red.
const input = document.querySelector(".searchinput-wrapper___3YrvF form .searchinput___19uW0")
input.addEventListener("mouseenter", () => {input.style.backgroundColor = "Red"})
7. Webiste Name: MDN Web Docs
To Search a topic in the MDN Search bar.
First add a text to search in the search bar and then hit the submit search button to search the docs using DOM
document.querySelector(".search-input-field").value = "Flexbox";
document.querySelector("form").submit();
8. Webiste Name: Google
Remove alternate languages from the home page languages listed
const ele = document.querySelector("#SIvCob");
const language = document.querySelectorAll("#SIvCob a");
for(let i = 0; i < language.length ; i++)
{
if(i % 2 === 0) {
ele.removeChild(language[i])
}
};
9. Webiste Name: Code Wars
Change the font family of the text to monospace and text color to the logo’s background color.
const head = document.querySelector(".content-width-extra-large .display-heading-1");
head.style.fontFamily = "monospace";
head.style.color = "#b1361e";
10. Webiste Name: Freecodecamp
Target the button and change background colour on mouseover
10. const changeColor = document.querySelector(".row a");
changeColor.addEventListener("click/mouseover", (event) => {event.target.style.backgroundColor = "Red"});
11. Webiste Name: realme
change the realme logo to ineuron logo
document.querySelector(".wrapper .logo .icon-logo").style.backgroundImage = "url('https://learn.ineuron.ai/_next/image?url=%2Fimages%2Fineuron-
12. Webiste Name: Github
change the background colour of the button to blue.
document.querySelector(".js-braintree-encrypt .btn").style.backgroundColor = "Blue"
13. Webiste Name: Hackerrank
Target the top description and change “Matching developers with great companies” to ‘JSBOOTCAMP“.
document.querySelector(".fl-module-heading h1 span").innerHTML = "JSBOOTCAMP"
14. Webiste Name: Asus
change the fontsize of “Hot Deals” to 80px
document.querySelector(".HotDealsAll__HotCampaignsEventsContainer__FK0V2 .HotDealsAll__Heading__2fIbe").style.fontSize = "80px";
15. Webiste Name: Dell
Convert the text “G15 Gaming Laptop” from left to right
document.querySelector("#d560823win9b .ps-top .ps-title").style.textAlign = "Right";
16. Webiste Name: Vercel
change the heading “Start with the developer” to “Start with Scratch”
document.querySelector(".jsx-499702677 h4").innerHTML = "Start with Scratch";
- Webiste Name: Sony
change the button text To current Date.
document.querySelector(".btn-container a").innerHTML = date.toString();
18. Webiste Name: Philips
change the background colour blue to orange
document.querySelector(".p-f03-footer-container ").style.background= "Orange";
- Webiste Name: Canon
extract the canon logo
const src = document.querySelector(".logo").src;
'https://in.canon/assets/brand/logo-300-002e45a4aec98fd92899838da9d5560f.png'
- Webiste Name: Oppo
Change the description colour black to orange
document.querySelector(".wide .desc").style.color = "orange";