formatting pass
This commit is contained in:
parent
fb340ed3fa
commit
32a23e9a17
4
config.h
4
config.h
|
@ -3,8 +3,8 @@
|
||||||
|
|
||||||
/* See more:
|
/* See more:
|
||||||
* https://webkitgtk.org/reference/webkit2gtk/stable/class.Settings.html */
|
* https://webkitgtk.org/reference/webkit2gtk/stable/class.Settings.html */
|
||||||
#define WEBKIT \
|
#define WEBKIT \
|
||||||
"enable-back-forward-navigation-gestures", true, "enable-developer-extras", true, \
|
"enable-back-forward-navigation-gestures", true, "enable-developer-extras", true, \
|
||||||
"enable-smooth-scrolling", false, \
|
"enable-smooth-scrolling", false, \
|
||||||
"default-charset", "utf-8"
|
"default-charset", "utf-8"
|
||||||
|
|
||||||
|
|
|
@ -37,8 +37,8 @@ int libre_redirect(const char* uri, char* output)
|
||||||
"https://translate.google.com",
|
"https://translate.google.com",
|
||||||
"https://www.bloomberg.com",
|
"https://www.bloomberg.com",
|
||||||
"https://www.royalroad.com",
|
"https://www.royalroad.com",
|
||||||
"https://genius.com",
|
"https://genius.com",
|
||||||
// "https://archive.org",
|
// "https://archive.org",
|
||||||
// "https://twitter.com"
|
// "https://twitter.com"
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -50,8 +50,8 @@ int libre_redirect(const char* uri, char* output)
|
||||||
"https://translate.riverside.rocks/",
|
"https://translate.riverside.rocks/",
|
||||||
"https://archive.today/https://www.bloomberg.com",
|
"https://archive.today/https://www.bloomberg.com",
|
||||||
"https://royalread.nunosempere.com",
|
"https://royalread.nunosempere.com",
|
||||||
"https://dumb.vern.cc",
|
"https://dumb.vern.cc",
|
||||||
// "https://wayback.nunosempere.com",
|
// "https://wayback.nunosempere.com",
|
||||||
// "https://nitter.net"
|
// "https://nitter.net"
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
2
rose.c
2
rose.c
|
@ -204,7 +204,7 @@ GtkWidget* handle_create_new_tab(WebKitWebView* self,
|
||||||
} else {
|
} else {
|
||||||
webkit_web_view_run_javascript(notebook_get_webview(notebook),
|
webkit_web_view_run_javascript(notebook_get_webview(notebook),
|
||||||
"alert('Too many tabs, not opening a new one')", NULL, NULL, NULL);
|
"alert('Too many tabs, not opening a new one')", NULL, NULL, NULL);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
/* WebKitGTK documentation recommends returning the new webview.
|
/* WebKitGTK documentation recommends returning the new webview.
|
||||||
* I imagine that this might allow e.g., to go back in a new tab
|
* I imagine that this might allow e.g., to go back in a new tab
|
||||||
|
|
Loading…
Reference in New Issue
Block a user