Take Twitter Link Preview Back

Take the link preview of Twitter back

< Feedback on Take Twitter Link Preview Back

Review: Good - script works

§
Posted: 27-10-2023

its good. please fix it to work in "Grey mode" too.

§
Posted: 09-11-2023

(。・∀・)ノノ゙ᄄFriend, I am trying to modify the part and the effect of the model modification has arrived since then. 👇:

(function() {
'use strict';
var node = document.createElement("style");
node.type = "text/css";
node.appendChild(document.createTextNode(`
body[style*='background-color: rgb(255, 255, 255)'],
body[style*='background-color: rgb(226, 226, 226)'],
body[style*='background-color: #fff'] {
--link-preview-text-color: #000;
}
body[style*='background-color: rgb(0, 0, 0)'],
body[style*='background-color: #000'],
body[style*='background-color: rgb(34, 34, 34)'] {
--link-preview-text-color: #fff;
}
body[style*='background-color: rgb(21, 32, 43)'] {
--link-preview-text-color: #f7f9f9;
}
div[data-testid='card.layoutLarge.media'] > a::after {
content: attr(aria-label);
font-family: sans-serif;
display: block;
padding: 8px 10px;
line-height: 1.3;
color: var(--link-preview-text-color, #000);
}
div[data-testid='card.layoutLarge.media'] > a > div:last-child {
bottom: unset;
left: unset;
top: 10px;
right: 10px;
}
`));
var heads = document.getElementsByTagName("head");
if (heads.length > 0) {
heads[0].appendChild(node);
} else {
document.documentElement.appendChild(node);
}
})();

Post reply

Sign in to post a reply.