tweaks: add code to block twitter ads
This commit is contained in:
parent
cd2b6a3257
commit
aec21c71a6
|
@ -1,7 +1,7 @@
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#define STYLE_N 4390 + 100
|
#define STYLE_N 4748 + 100
|
||||||
|
|
||||||
void read_style_js(char* string)
|
void read_style_js(char* string)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#ifndef STYLE
|
#ifndef STYLE
|
||||||
#define STYLE
|
#define STYLE
|
||||||
|
|
||||||
#define STYLE_N 4390 + 100
|
#define STYLE_N 4748 + 100
|
||||||
|
|
||||||
void read_style_js(char* string);
|
void read_style_js(char* string);
|
||||||
|
|
||||||
|
|
|
@ -61,9 +61,20 @@ if (document.domain == "search.nunosempere.com" ){
|
||||||
}
|
}
|
||||||
if (document.domain == "twitter.com" ){
|
if (document.domain == "twitter.com" ){
|
||||||
styles = `
|
styles = `
|
||||||
|
/* hide promoted tweets */
|
||||||
|
:has(meta[property="og:site_name"][content="Twitter"])
|
||||||
|
[data-testid="cellInnerDiv"]:has(svg + [dir="auto"]) {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
[data-testid^="placementTracking"] {
|
[data-testid^="placementTracking"] {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* hide what's happening section */
|
||||||
|
:has(meta[property="og:site_name"][content="Twitter"])
|
||||||
|
[aria-label="Timeline: Trending now"] {
|
||||||
|
display: none !important;
|
||||||
|
}
|
||||||
[data-testid^="sidebarColumn"] {
|
[data-testid^="sidebarColumn"] {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
@ -79,6 +90,7 @@ if (document.domain == "reddit.com" || document.domain == "old.reddit.com"){
|
||||||
.infobar-toaster-container,
|
.infobar-toaster-container,
|
||||||
#eu-cookie-policy,
|
#eu-cookie-policy,
|
||||||
.ad-container,
|
.ad-container,
|
||||||
|
.listingsignupbar,
|
||||||
a[href="/premium"],
|
a[href="/premium"],
|
||||||
[data-promoted^="true"],
|
[data-promoted^="true"],
|
||||||
a[href^="https://alb.reddit.com"]
|
a[href^="https://alb.reddit.com"]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user