forked from Sulagna-Dutta-Roy/GGExtensions
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request Sulagna-Dutta-Roy#209 from akshbansal61203/master
Celebrity Icon Extension
- Loading branch information
Showing
2 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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]; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] | ||
} | ||
] | ||
} |