Skip to content

Commit

Permalink
Merge pull request #1 from akshbansal61203/akshbansal61203-patch-1
Browse files Browse the repository at this point in the history
Fixes #174:Added a celebrity icon extension
  • Loading branch information
akshbansal61203 authored May 15, 2024
2 parents 4767418 + 70bae71 commit 347420f
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 347420f

Please sign in to comment.