aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNunoSempere <nuno.sempere@protonmail.com>2023-04-21 19:08:55 -0400
committerNunoSempere <nuno.sempere@protonmail.com>2023-04-21 19:08:55 -0400
commitb32749aa6e495aedc286e9537a4ee664c467919c (patch)
treecac9e26cb472588de4b4917146de127183db13aa
parenta4f8ad8ae2ac60b53c39feea90305d2f277eb319 (diff)
fix: zoom + forum.nunosempere.com, Matt Levine's newsletter
-rw-r--r--config.h2
-rw-r--r--plugins/readability/readability.js2
-rw-r--r--plugins/style/style.c2
-rw-r--r--plugins/style/style.h2
-rw-r--r--plugins/style/style.js7
5 files changed, 11 insertions, 4 deletions
diff --git a/config.h b/config.h
index cd7b4c2..df22aec 100644
--- a/config.h
+++ b/config.h
@@ -17,7 +17,7 @@
#define HEIGHT 1080
#define SEARCH_BAR_SIZE 1200
#define KEY(x) GDK_KEY_##x
-#define ZOOM 1 /* 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/readability/readability.js b/plugins/readability/readability.js
index 78a398d..9310961 100644
--- a/plugins/readability/readability.js
+++ b/plugins/readability/readability.js
@@ -2394,7 +2394,7 @@ if (document.domain == "archive.is" ){
iframe {
display: none;
}
- #div[id^='stickyModal'] {
+ #div[id^='stickypbModal'] {
display: none;
}
`
diff --git a/plugins/style/style.c b/plugins/style/style.c
index 1010506..347ee3f 100644
--- a/plugins/style/style.c
+++ b/plugins/style/style.c
@@ -1,7 +1,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#define STYLE_N 1393 + 1
+#define STYLE_N 1505 + 1
void read_style_js(char* string)
{
diff --git a/plugins/style/style.h b/plugins/style/style.h
index 5e5d76b..ab69b64 100644
--- a/plugins/style/style.h
+++ b/plugins/style/style.h
@@ -1,7 +1,7 @@
#ifndef STYLE
#define STYLE
-#define STYLE_N 1393 + 1
+#define STYLE_N 1505 + 1
void read_style_js(char* string);
diff --git a/plugins/style/style.js b/plugins/style/style.js
index bc0540e..23f68a6 100644
--- a/plugins/style/style.js
+++ b/plugins/style/style.js
@@ -38,6 +38,13 @@ if (document.domain == "mail.proton.me" ){
}
`
}
+if (document.domain == "forum.nunosempere.com" ){
+ styles = `
+ body {
+ zoom: 0.625 !important;
+ }
+ `
+}
if(styles != null){
var styleSheet = document.createElement('style')