Compare commits

...

3 Commits

6 changed files with 28 additions and 14 deletions

View File

@ -15,7 +15,8 @@
#define BG_COLOR "#FEFEFE" /* "FEFEFE", "#1E1E2E" */ #define BG_COLOR "#FEFEFE" /* "FEFEFE", "#1E1E2E" */
#define DEBUG false #define DEBUG false
#define MAX_NUM_TABS 8 // set to 0 or false if you want unlimited tabs, or look at the relevant rose.c code. #define MAX_NUM_TABS 8 // set to 0 or false if you want unlimited tabs, or look at the relevant rose.c code.
#define SEARCH "https://search.nunosempere.com/search?q=%s" #define SEARCH "https://search.brave.com/search?q=%s"
// #define SEARCH "https://search.nunosempere.com/search?q=%s"
// #define SEARCH "https://lite.duckduckgo.com/html/?q=%s" // #define SEARCH "https://lite.duckduckgo.com/html/?q=%s"
#define HOME "" #define HOME ""
// ^ Could also be a website ("https://search.nunosempere.com"), or a file ("file:///opt/rose/homepage.png") // ^ Could also be a website ("https://search.nunosempere.com"), or a file ("file:///opt/rose/homepage.png")

View File

@ -48,7 +48,7 @@ int libre_redirect(const char* uri, char* output)
"https://search.nunosempere.com", "https://search.nunosempere.com",
"https://scribe.rip", "https://scribe.rip",
"https://translate.riverside.rocks/", "https://translate.riverside.rocks/",
"https://archive.today/https://www.bloomberg.com", "https://archive.is/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",

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 7275 + 1000 #define STYLE_N 7274 + 1000
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 7275 + 1000 #define STYLE_N 7274 + 1000
void read_style_js(char* string); void read_style_js(char* string);

View File

@ -1,10 +1,17 @@
// Replicates the Stylus app: <https://addons.mozilla.org/en-GB/firefox/addon/styl-us/> // Inspired by the Stylus app: <https://addons.mozilla.org/en-GB/firefox/addon/styl-us/>
var styles = null; var styles = null;
/*
.class
#id
*/
if (document.domain == "forum.effectivealtruism.org") { if (document.domain == "forum.effectivealtruism.org") {
/*
styles = ` styles = `
/*
.Layout-main { .Layout-main {
margin-left: 100px; margin-left: 100px;
} }
@ -19,12 +26,16 @@ if (document.domain == "forum.effectivealtruism.org") {
.intercom-lightweight-app{ .intercom-lightweight-app{
display: none; display: none;
} }
`;
var styleSheet = document.createElement("style");
styleSheet.innerText = styles;
document.head.appendChild(styleSheet);
console.log("Style changed");
*/ */
`;
}
if (document.domain == "nationstates.net") {
styles = `
.adidentifier {
display: none;
}
`;
} }
if (document.domain == "mail.proton.me") { if (document.domain == "mail.proton.me") {
@ -152,9 +163,11 @@ if (document.domain == "twitter.com") {
document document
.querySelectorAll('[data-testid="videoPlayer"]') .querySelectorAll('[data-testid="videoPlayer"]')
.forEach(function (videoPlayer) { .forEach(function (videoPlayer) {
var grandparentElement = videoPlayer.parentElement.parentElement.parentElement.parentElement.parentElement.parentElement; var grandparentElement =
var newTextElement = document.createElement('div'); videoPlayer.parentElement.parentElement.parentElement.parentElement
newTextElement.textContent = ' [ twitter video ] '; .parentElement.parentElement;
var newTextElement = document.createElement("div");
newTextElement.textContent = " [ twitter video ] ";
newTextElement.style["margin-top"] = "10px"; newTextElement.style["margin-top"] = "10px";
newTextElement.style["margin-left"] = "10px"; newTextElement.style["margin-left"] = "10px";
newTextElement.style["margin-bottom"] = "10px"; newTextElement.style["margin-bottom"] = "10px";

BIN
rosenrot

Binary file not shown.