Compare commits

..

No commits in common. "b3a0f14b2f78e63046b4777fdbfe1039b827ddbd" and "4da5aad23ea5e1699c0c2934b09b365f4e990682" have entirely different histories.

4 changed files with 5 additions and 27 deletions

View File

@ -34,8 +34,7 @@ int libre_redirect(const char* uri, char* output){
"https://translate.google.com", "https://translate.google.com",
"https://forum.effectivealtruism.org", "https://forum.effectivealtruism.org",
"https://www.bloomberg.com", "https://www.bloomberg.com",
"https://twitter.com", "https://twitter.com"
"https://wikipedia.org"
}; };
char* alternatives[] = { char* alternatives[] = {
"https://yt.artemislena.eu", "https://yt.artemislena.eu",
@ -44,8 +43,7 @@ int libre_redirect(const char* uri, char* output){
"https://simplytranslate.org/", "https://simplytranslate.org/",
"https://ea.greaterwrong.com", "https://ea.greaterwrong.com",
"https://archive.is/https://www.bloomberg.com", "https://archive.is/https://www.bloomberg.com",
"https://nitter.net", "https://nitter.net"
"https://wikiless.org"
}; };
int n = sizeof(annoying_sites)/sizeof(annoying_sites[0]); int n = sizeof(annoying_sites)/sizeof(annoying_sites[0]);
for(int i=0; i<n ; i++){ for(int i=0; i<n ; i++){

16
rose.c
View File

@ -115,21 +115,9 @@ void load_changed(WebKitWebView *self, WebKitLoadEvent load_event, GtkNotebook *
break; break;
case WEBKIT_LOAD_FINISHED: case WEBKIT_LOAD_FINISHED:
{ {
const char* webpage_title = webkit_web_view_get_title(self); const char* title = webkit_web_view_get_title(self);
const int max_length = 25;
char tab_title[max_length + 1];
if(webpage_title != NULL){
for(int i = 0; i<(max_length); i++){
tab_title[i] = webpage_title[i];
if(webpage_title[i] == '\0'){
break;
}
}
tab_title[max_length] = '\0';
}
gtk_notebook_set_tab_label_text(notebook, GTK_WIDGET(self), gtk_notebook_set_tab_label_text(notebook, GTK_WIDGET(self),
webpage_title == NULL ? "" : tab_title ); title == NULL ? "" : title );
// gtk_widget_hide(GTK_WIDGET(bar)); // gtk_widget_hide(GTK_WIDGET(bar));
break; break;
} }

View File

@ -3,7 +3,7 @@
Version=1.0 Version=1.0
Type=Application Type=Application
Terminal=false Terminal=false
Exec= /usr/bin/rose %u Exec= /usr/bin/rose
Name=Rose Name=Rose
Comment=Minimalistic browser Comment=Minimalistic browser
Icon=/home/loki/Documents/core/software/fresh/C/rose-browser/rose-bud-personal/user-scripts/ubuntu-20.04/rose-images/rose-desktop-icon.png Icon=/home/loki/Documents/core/software/fresh/C/rose-browser/rose-bud-personal/user-scripts/ubuntu-20.04/rose-images/rose-desktop-icon.png

View File

@ -1,8 +0,0 @@
# Requires:
# sudo cp rose.desktop /usr/share/applications
xdg-mime default rose.desktop x-scheme-handler/https
xdg-mime default rose.desktop x-scheme-handler/http
# This is useful e.g., for setting how to open
# links in vim when pressing gx.