Compare commits
5 Commits
cb9ec6141c
...
2af3abcf8c
Author | SHA1 | Date | |
---|---|---|---|
2af3abcf8c | |||
9dda522a26 | |||
9b1b8ca1ed | |||
c2a08ece47 | |||
d1b2259d81 |
10
config.h
10
config.h
|
@ -2,13 +2,13 @@
|
|||
#include <gtk/gtk.h>
|
||||
|
||||
/* Key user config */
|
||||
#define HEIGHT 1080
|
||||
#define FULL_WIDTH 1920
|
||||
#define HEIGHT 1504
|
||||
#define FULL_WIDTH 2256
|
||||
#define WIDTH FULL_WIDTH
|
||||
#define BAR_WIDTH FULL_WIDTH/2
|
||||
|
||||
/* More user config */
|
||||
#define ZOOM_START_LEVEL 1.8
|
||||
#define ZOOM_START_LEVEL 1.5
|
||||
#define ZOOM_STEPSIZE .1
|
||||
#define MAX_NUM_TABS 8 // 0 or false for unlimited tabs
|
||||
#define SEARCH "https://search.brave.com/search?q=%s"
|
||||
|
@ -125,8 +125,10 @@ static struct {
|
|||
{ CTRL | SFT, KEY(KP_Page_Up), prev_tab }, // use SFT just to show one can
|
||||
{ CTRL | SFT, KEY(KP_Page_Down), next_tab },
|
||||
{ CTRL | SFT, KEY(Page_Up), prev_tab },
|
||||
// working hypothesis: Page_UP vs KP_Page_Up might depend on whether the user has a numpad
|
||||
{ CTRL | SFT, KEY(Page_Down), next_tab },
|
||||
// working hypothesis: Page_UP vs KP_Page_Up might depend on whether the user has a numpad
|
||||
{ CTRL, KEY(Tab), next_tab },
|
||||
{ CTRL, KEY(b), prev_tab },
|
||||
{ CTRL, KEY(t), new_tab },
|
||||
{ CTRL, KEY(w), close_tab },
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@ int libre_redirect(const char* uri, char* output)
|
|||
char* annoying_sites[] = {
|
||||
"https://www.reddit.com",
|
||||
"https://vitalik.ca",
|
||||
"https://www.youtube.com",
|
||||
// "https://www.youtube.com",
|
||||
// "https://google.com",
|
||||
"https://medium.com",
|
||||
"https://translate.google.com",
|
||||
|
@ -35,7 +35,7 @@ int libre_redirect(const char* uri, char* output)
|
|||
// previously: "https://old.reddit.com", "https://teddit.nunosempere.com",
|
||||
// https://github.com/redlib-org/redlib-instances/blob/main/instances.md
|
||||
"https://vitalik.eth.limo",
|
||||
"https://invidious.private.coffee",
|
||||
// "https://invidious.private.coffee",
|
||||
// "https://search.nunosempere.com",
|
||||
"https://scribe.rip",
|
||||
"https://translate.riverside.rocks",
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#define READABILITY_N 88097 + 1000
|
||||
#define READABILITY_N 88212 + 1000
|
||||
|
||||
void read_readability_js(char* string)
|
||||
{
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#pragma once
|
||||
|
||||
#define READABILITY_N 88097 + 1000
|
||||
#define READABILITY_N 88212 + 1000
|
||||
|
||||
void read_readability_js(char* string);
|
||||
|
|
|
@ -2613,11 +2613,13 @@ if (typeof module === "object") {
|
|||
|
||||
var style_sheet_simple = `
|
||||
<style type="text/css">
|
||||
/* @import url("https://fonts.googleapis.com/css2?family=Inconsolata"); */
|
||||
|
||||
body {
|
||||
padding: 40px 200px 40px 200px !important;
|
||||
padding: 30px 150px 30px 150px !important;
|
||||
font-size: 18px;
|
||||
font: 18px/1.5 Roboto;
|
||||
// font: 18px/1.5 Roboto;
|
||||
// font-family: "Inconsolata";
|
||||
line-height: 1.6;
|
||||
background-color: #FEFEFE !important;
|
||||
color: #444 !important;
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
#define STYLE_N 9379 + 1000
|
||||
#define STYLE_N 9404 + 1000
|
||||
|
||||
void read_style_js(char* string)
|
||||
{
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#pragma once
|
||||
|
||||
#define STYLE_N 9379 + 1000
|
||||
#define STYLE_N 9404 + 1000
|
||||
|
||||
void read_style_js(char* string);
|
||||
|
|
|
@ -59,7 +59,8 @@ switch (document.domain) {
|
|||
case "search.brave.com":
|
||||
styles = `
|
||||
.download-button,
|
||||
a[href^="https://brave.com/download/"], .download-cta
|
||||
a[href^="https://brave.com/download/"], .download-cta,
|
||||
.example-searches
|
||||
{
|
||||
display: none !important;
|
||||
}
|
||||
|
|
|
@ -487,8 +487,8 @@ int main(int argc, char** argv)
|
|||
|
||||
// Show to user
|
||||
// The first two commands are redundant with notebook_create_new_tab
|
||||
gtk_window_present(window);
|
||||
gtk_widget_set_visible(GTK_WIDGET(window), 1);
|
||||
// gtk_window_present(window);
|
||||
// gtk_widget_set_visible(GTK_WIDGET(window), 1);
|
||||
if (argc != 0) gtk_widget_set_visible(GTK_WIDGET(bar.widget), 0);
|
||||
|
||||
// Deal with more tabs, if any
|
||||
|
|
41
styles-gtk/style-gtk4-large.css
Normal file
41
styles-gtk/style-gtk4-large.css
Normal file
|
@ -0,0 +1,41 @@
|
|||
* {
|
||||
font-size: 35px;
|
||||
color: #333;
|
||||
}
|
||||
|
||||
/* Make titlebar pretty gigantic. I'm pretty myopic. */
|
||||
.titlebar {
|
||||
padding: 5px;
|
||||
font-size: 45px;
|
||||
}
|
||||
|
||||
|
||||
.titlebar * {
|
||||
padding: 5px;
|
||||
font-size: 45px;
|
||||
}
|
||||
|
||||
header * {
|
||||
font-size: 40px;
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
tabs {
|
||||
padding: 7px;
|
||||
}
|
||||
|
||||
tab {
|
||||
margin: 5px 8px 5px 0px; /* top right bottom left */
|
||||
padding: 10px;
|
||||
border-style: solid;
|
||||
font-size: 40px;
|
||||
}
|
||||
|
||||
entry {
|
||||
padding-left: 10px;
|
||||
}
|
||||
|
||||
entry:focus {
|
||||
padding-left: 10px;
|
||||
|
||||
}
|
|
@ -5,19 +5,19 @@
|
|||
|
||||
/* Make titlebar pretty gigantic. I'm pretty myopic. */
|
||||
.titlebar {
|
||||
padding: 5px;
|
||||
padding: 3px;
|
||||
font-size: 30px;
|
||||
}
|
||||
|
||||
|
||||
.titlebar * {
|
||||
padding: 5px;
|
||||
font-size: 27px;
|
||||
padding: 3px;
|
||||
font-size: 30px;
|
||||
}
|
||||
|
||||
header * {
|
||||
font-size: 20px;
|
||||
padding: 5px;
|
||||
font-size: 30px;
|
||||
padding: 3px;
|
||||
}
|
||||
|
||||
tabs {
|
||||
|
@ -25,10 +25,10 @@ tabs {
|
|||
}
|
||||
|
||||
tab {
|
||||
margin: 2px 5px 4px 0px; /* top right bottom left */
|
||||
padding: 5px;
|
||||
margin: 3px 5px 3px 0px; /* top right bottom left */
|
||||
padding: 10px;
|
||||
border-style: solid;
|
||||
font-size: 27px;
|
||||
font-size: 30px;
|
||||
}
|
||||
|
||||
entry {
|
||||
|
|
Loading…
Reference in New Issue
Block a user