diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..a4677a0 Binary files /dev/null and b/.DS_Store differ diff --git a/content.css b/content.css index 28af555..b2fe4a0 100644 --- a/content.css +++ b/content.css @@ -14,5 +14,6 @@ margin: 0; position: absolute; top: 50%; - transform: translateY(-50%); + left: 50%; + transform: translate(-50%, -50%); } \ No newline at end of file diff --git a/manifest.json b/manifest.json index 10c48e7..6de2337 100644 --- a/manifest.json +++ b/manifest.json @@ -2,7 +2,7 @@ "manifest_version": 3, "name": "Twitter Bird", "description": "Extension which returns the Twitter bird icon back", - "version": "1.1", + "version": "1.2", "action": { "default_icon": "images/icon_512.png" @@ -20,7 +20,8 @@ ], "matches": [ - "https://twitter.com/*" + "https://twitter.com/*", + "https://x.com/*" ] } ], @@ -33,7 +34,8 @@ ], "matches": [ - "https://twitter.com/*" + "https://twitter.com/*", + "https://x.com/*" ] } ], diff --git a/scripts/content.js b/scripts/content.js index 2c8627c..f33aee7 100644 --- a/scripts/content.js +++ b/scripts/content.js @@ -1,7 +1,7 @@ //const homeIcon = document.querySelector("div.css-901oao.r-1awozwy.r-18jsvk2.r-6koalj.r-18u37iz.r-16y2uox.r-37j5jr.r-a023e6.r-b88u0q.r-1777fci.r-rjixqe.r-bcqeeo.r-q4m81j.r-qvutc0"); console.log("twitter-bird " + document.readyState); -waitForElm("a[aria-label='X']").then((homeIconContainer) => { +waitForElm("a[aria-label=\"X\"]").then((homeIconContainer) => { console.log("twitter-bird element is ready"); removeAllChildNodes(homeIconContainer); @@ -14,8 +14,8 @@ waitForElm("a[aria-label='X']").then((homeIconContainer) => { console.log("twitter-bird " + birdIconLink); birdIcon.src = birdIconLink; - birdIcon.height = 50; - birdIcon.width = 50; + birdIcon.height = 32; + birdIcon.width = 32; birdIcon.classList.add('centered-element-a');; homeIconContainer.appendChild(birdContainer); diff --git a/twitter-bird.zip b/twitter-bird.zip index 670fe0c..9b36faf 100644 Binary files a/twitter-bird.zip and b/twitter-bird.zip differ