diff options
author | NunoSempere <nuno.sempere@protonmail.com> | 2023-11-08 23:00:31 +0000 |
---|---|---|
committer | NunoSempere <nuno.sempere@protonmail.com> | 2023-11-08 23:00:31 +0000 |
commit | 09c9c50406cf53a1fe500d2ed59e9e0c20e06012 (patch) | |
tree | 9963237b4e807c192856d06f13480fed58ae31b9 | |
parent | 4d94d2d2e6aa43cb478748aa093c9054de67914a (diff) |
tweak: replace search engine + avoid twitter videos
-rw-r--r-- | config.h | 4 | ||||
-rw-r--r-- | plugins/style/style.js | 9 | ||||
-rwxr-xr-x | rose | bin | 43280 -> 43280 bytes |
3 files changed, 11 insertions, 2 deletions
@@ -12,7 +12,7 @@ #define GTK "gtk-application-prefer-dark-theme", false, "gtk-enable-animations", 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 CACHE_DIR "/home/loki/.cache/rose" @@ -21,7 +21,7 @@ #define HEIGHT 1080 #define SEARCH_BAR_SIZE 1200 #define KEY(x) GDK_KEY_##x -#define ZOOM 1.6 /* Starting zoom level.*/ +#define ZOOM 1.6 /* Starting zoom level.*/ #define ZOOM_VAL .1 /* Zooming value in zoomin/zoomout functions */ #define BG_COLOR "#FEFEFE" /* "FEFEFE", "#1E1E2E" */ #define DEBUG false diff --git a/plugins/style/style.js b/plugins/style/style.js index 68bea3d..6af94ed 100644 --- a/plugins/style/style.js +++ b/plugins/style/style.js @@ -78,6 +78,15 @@ if (document.domain == "twitter.com") { [data-testid^="sidebarColumn"] { display: none; } + + /* hide video */ + + [data-testid^="videoPlayer"] { + display: none; + } + [data-testid^="videoPlayer"]:before { + content: '[twitter video]'; + } `; } |