fix: zoom + forum.nunosempere.com, Matt Levine's newsletter

This commit is contained in:
NunoSempere 2023-04-21 19:08:55 -04:00
parent a4f8ad8ae2
commit b32749aa6e
5 changed files with 11 additions and 4 deletions

View File

@ -17,7 +17,7 @@
#define HEIGHT 1080 #define HEIGHT 1080
#define SEARCH_BAR_SIZE 1200 #define SEARCH_BAR_SIZE 1200
#define KEY(x) GDK_KEY_##x #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 ZOOM_VAL .1 /* Zooming value in zoomin/zoomout functions */
#define BG_COLOR "#FEFEFE" /* "FEFEFE", "#1E1E2E" */ #define BG_COLOR "#FEFEFE" /* "FEFEFE", "#1E1E2E" */
#define DEBUG false #define DEBUG false

View File

@ -2394,7 +2394,7 @@ if (document.domain == "archive.is" ){
iframe { iframe {
display: none; display: none;
} }
#div[id^='stickyModal'] { #div[id^='stickypbModal'] {
display: none; display: none;
} }
` `

View File

@ -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 1393 + 1 #define STYLE_N 1505 + 1
void read_style_js(char* string) void read_style_js(char* string)
{ {

View File

@ -1,7 +1,7 @@
#ifndef STYLE #ifndef STYLE
#define STYLE #define STYLE
#define STYLE_N 1393 + 1 #define STYLE_N 1505 + 1
void read_style_js(char* string); void read_style_js(char* string);

View File

@ -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){ if(styles != null){
var styleSheet = document.createElement('style') var styleSheet = document.createElement('style')