Skip to content

Commit

Permalink
Merge pull request Sulagna-Dutta-Roy#209 from akshbansal61203/master
Browse files Browse the repository at this point in the history
Celebrity Icon Extension
  • Loading branch information
Sulagna-Dutta-Roy authored May 16, 2024
2 parents 7a3b974 + 347420f commit c645782
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Celebrity/Content.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
let JimCarryImages=[
"https://wallpapers.com/images/high/jim-carrey-funny-expression-a9mv7pm39mr6oi70.webp",
"https://cdn.mos.cms.futurecdn.net/xMKqQKvNAXqDcmD7HFcPjG-1200-80.jpg.webp",
"https://wallpapers.com/images/high/jim-carrey-funny-expression-a9mv7pm39mr6oi70.webp",
"https://en.wikipedia.org/wiki/File:Jim_Carrey_2008.jpg",
"https://www.hola.com/us/images/0257-0e19a95a8fd9-f1eeab240137-1000/vertical-1150/jim-carrey-divertidas-caras03.jpg",
"https://www.hola.com/us/images/0257-0e19a95a8fdb-275908c9437b-1000/vertical-1150/jim-carrey-divertidas-caras07.jpg",
"https://www.hola.com/us/images/0257-0e19a95a8fdc-b66e2bcb03ab-1000/vertical-1150/jim-carrey-divertidas-caras08.jpg",
"https://www.onthisday.com/images/people/jim-carrey.jpg?w=360"


];
//to replace web images with JimCarry images
const imgs=document.getElementsByTagName("img");
for(let i=0;i<imgs.length;i++){
const randomImg=Math.floor(Math.random()*JimCarryImages.length);
imgs[i].src=JimCarryImages[randomImg];
}
11 changes: 11 additions & 0 deletions Celebrity/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"manifest_version":3,
"name":"JimCarry_The_funniest",
"version":"1.0.0",
"content_scripts":[
{
"matches":["<all_urls>"],
"js":["Content.js"]
}
]
}

0 comments on commit c645782

Please sign in to comment.