tweak: replace search engine + avoid twitter videos

This commit is contained in:
NunoSempere 2023-11-08 23:00:31 +00:00
parent 4d94d2d2e6
commit 09c9c50406
3 changed files with 11 additions and 2 deletions

View File

@ -12,7 +12,7 @@
#define GTK "gtk-application-prefer-dark-theme", false, "gtk-enable-animations", false #define GTK "gtk-application-prefer-dark-theme", false, "gtk-enable-animations", false
#define ROSE_HOMEPAGE false #define ROSE_HOMEPAGE false
#define SEARCH "https://search.nunosempere.com/search?q=%s" // "https://lite.duckduckgo.com/html/?q=%s" #define SEARCH "https://lite.duckduckgo.com/html/?q=%s" // "https://search.nunosempere.com/search?q=%s"
#define HOME ROSE_HOMEPAGE ? "file:///home/loki/Documents/core/software/fresh/C/rose-browser/rosenrot/user-scripts/ubuntu-20.04/rose-images/rose-homepage.png" : "https://search.nunosempere.com/" #define HOME ROSE_HOMEPAGE ? "file:///home/loki/Documents/core/software/fresh/C/rose-browser/rosenrot/user-scripts/ubuntu-20.04/rose-images/rose-homepage.png" : "https://search.nunosempere.com/"
// #define HOME ROSE_HOMEPAGE ? "file:///home/loki/Documents/core/software/fresh/C/rose-browser/rosenrot/user-scripts/ubuntu-20.04/rose-images/rose-homepage.png" : "https://search.nunosempere.com/" // #define HOME ROSE_HOMEPAGE ? "file:///home/loki/Documents/core/software/fresh/C/rose-browser/rosenrot/user-scripts/ubuntu-20.04/rose-images/rose-homepage.png" : "https://search.nunosempere.com/"
#define CACHE_DIR "/home/loki/.cache/rose" #define CACHE_DIR "/home/loki/.cache/rose"

View File

@ -78,6 +78,15 @@ if (document.domain == "twitter.com") {
[data-testid^="sidebarColumn"] { [data-testid^="sidebarColumn"] {
display: none; display: none;
} }
/* hide video */
[data-testid^="videoPlayer"] {
display: none;
}
[data-testid^="videoPlayer"]:before {
content: '[twitter video]';
}
`; `;
} }

BIN
rose

Binary file not shown.