Pepe image terror

단단한어린이·2022년 7월 19일
0

Javascript

목록 보기
15/17
post-thumbnail

Create two files in the Operation folder.

manifest.json

{
    "manifest_version" : 3,
    "name" : "Pepe Bomb",
    "version" : "0.1",
    "content_scripts" : [
        {
            "matches" : ["<all_urls>"],
            "js" : ["index.js"]
        }
    ]
}

urls can be changed to any site.

index.js

document.body.style.backgroundImage = "url('image link')";

setInterval(()=>{

let imgs = document.querySelectorAll('img');
imgs.forEach((a,i)=>{
    a.src = 'image link'
})

},500)

Error Occurred

Invalid value for 'content_scripts[0].matches[0]': Missing scheme separator.
매니페스트를 로드할 수 없습니다.

I changed "naver.com" into "https://*.naver.com/*"
Now, Error was fixed.

profile
Footprints in Coding

0개의 댓글