tweak: more twitter tweaks
This commit is contained in:
parent
39bb8510c1
commit
6a3581b7e0
|
@ -5,5 +5,5 @@ sed_wrapper()
|
|||
} ## e.g., sedr "s/target/replacement/g"
|
||||
|
||||
STYLE_N=`wc -c style.js | cut -d " " -f 1`
|
||||
sed_wrapper "s/^#define STYLE_N .*/#define STYLE_N $STYLE_N + 100/g"
|
||||
sed_wrapper "s/^#define STYLE_N .*/#define STYLE_N $STYLE_N + 1000/g"
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#define STYLE_N 6657 + 100
|
||||
#define STYLE_N 6765 + 100
|
||||
|
||||
void read_style_js(char* string)
|
||||
{
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#ifndef STYLE
|
||||
#define STYLE
|
||||
|
||||
#define STYLE_N 6657 + 100
|
||||
#define STYLE_N 6765 + 100
|
||||
|
||||
void read_style_js(char* string);
|
||||
|
||||
|
|
|
@ -89,6 +89,13 @@ if (document.domain == "twitter.com") {
|
|||
min-width: 900px;
|
||||
max-width: 900px;
|
||||
}
|
||||
[data-testid^="cellInnerDiv"] {
|
||||
min-width: 700px;
|
||||
max-width: 700px;
|
||||
}
|
||||
[aria-label^="Timeline: Conversation"]{
|
||||
margin-left: 145px;
|
||||
}
|
||||
|
||||
/* Delete a few unused or annoying elements */
|
||||
[aria-label^="Verified Orgs"] {
|
||||
|
@ -110,19 +117,12 @@ if (document.domain == "twitter.com") {
|
|||
display: none;
|
||||
}
|
||||
|
||||
.r-ymttw5 {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* hide video */
|
||||
|
||||
[data-testid^="videoPlayer"] {
|
||||
display: none !important;
|
||||
}
|
||||
[data-testid^="videoPlayer"]:before {
|
||||
content: '<br>[twitter video]';
|
||||
margin: 5px;
|
||||
border: 10px;
|
||||
}
|
||||
`;
|
||||
|
||||
|
@ -134,7 +134,9 @@ if (document.domain == "twitter.com") {
|
|||
var grandparentElement = videoPlayer.parentElement.parentElement.parentElement.parentElement.parentElement.parentElement;
|
||||
var newTextElement = document.createElement('div');
|
||||
newTextElement.textContent = ' [ twitter video ] ';
|
||||
newTextElement.style["margin"] = "10px";
|
||||
newTextElement.style["margin-top"] = "10px";
|
||||
newTextElement.style["margin-left"] = "10px";
|
||||
newTextElement.style["margin-bottom"] = "10px";
|
||||
grandparentElement.replaceWith(newTextElement);
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user