Jump to content

Recommended Posts

Posted
21 hours ago, hidao said:

Chinese...

you can install some other fonts,maybe it could help you

Thank you for the advice, but no, I don't install custom fonts, otherwise the system would be compromised and prone to more extensive fingerprinting.

What I love in Chinese browsers (Cent, CatsXP), they try to already include most fonts and certificates within them, it's not the case with Supermium, unfortunately.

 


Posted
On 12/24/2024 at 2:44 AM, D.Draker said:

I have zero brightness troubles with Brave, CatsXP, Cent is a bit brighter, but it's tolerable.

I wanted to add my two cents, I also used @D.Draker ported Opera, then Blunovitch ported Opera (not sure if I spelt the surname correctly).

Both were on the normal level of brightness, the fonts were a bit blurry to my taste, but doable.

@D.Draker 's Opera had no memory leak, Blaunovitch's had, both are outdated now. So I tried Supermium.

Using Supermium on a 27inch monitor is a torture, I really wish the creator would intervene.

 

Posted
12 hours ago, Klemper said:

Using Supermium on a 27inch monitor is a torture, I really wish the creator would intervene.

I wish too, not happening, I just looked at his github, which I hadn't done in a year, it's simply too much to do on the first priority routine, and he's alone.

Get back to me in case you find a good replacement with the normal brightness. Thanks.

Posted
12 hours ago, Klemper said:

I wanted to add my two cents, I also used @D.Draker ported Opera, then Blunovitch ported Opera (not sure if I spelt the surname correctly).

Both were on the normal level of brightness, the fonts were a bit blurry to my taste, but doable.

@D.Draker 's Opera had no memory leak, Blaunovitch's had, both are outdated now.

I had dropped Opera porting, don't wait, so as Balunovich, as it seems. Why? Opera is simply way over-bloated now, too heavy, versions come out as hot pies.

Probably the reason Supermium will stay at this old version, and only later will skip to 13x.xx, during the next year, as win32 declared at github.

 

Posted
37 minutes ago, UCyborg said:

Chrome Font Super Enhancer makes fonts easier readable for me in typical Chromium. I don't know any other tricks for vanilla Chromium.

I wonder if this could be transplanted to Firefox.

Piece of cake!  You don't need the extension.  All it does is apply a .css text shadow to all text.  You can do that in any style editor such as Stylus/Stylish/Stylem or even via Tampermonkey/Greasemonkey or even via Firefox's own userChrome.css.

To me, the font enhancer extension is "redundant" if the browser profile is already utilizing something like Stylus/Tampermonkey/etc.

Posted (edited)

Or just turn that extension's content.js into a user script, that also works. I have no need for dark mode, so threw that part of logic out along with Chrome's extensions' storage logic. Text comes out a bit darker than on Pale Moon, but that's OK.

Edited by UCyborg
Posted (edited)
// ==UserScript==
// @name          Font Enhancer
// @namespace     https://github.com/UCyborg
// @description   Improves font contrast. Sourced from Chrome Font Super Enhancer.
// @version       1.0
// @author        UCyborg
// @match         *://*/*
// @grant         none
// ==/UserScript==

'use strict';

var isRunning;

function applyFilter() {
    var AllElem = document.querySelectorAll(':not(script):not(style):not(area):not(base):not(br):not(col):not(embed):not(hr):not(img):not(input):not(keygen):not(link):not(meta):not(param):not(source):not(track):not(wbr):not(table):not(tbody):not(tr):not(ul)');
    for (var i = 0; i < AllElem.length; i++) {
        for (var j = 0; j < AllElem[i].childNodes.length; j++) { // cycle through element nodes
            if (AllElem[i].childNodes[j].nodeType === 3 && AllElem[i].childNodes[j].textContent.trim().length > 0) { // is it a text node?
                if (window.getComputedStyle(AllElem[i]).getPropertyValue('text-shadow') == 'none') { // do not run if text-shadow is already present
                    var Col = window.getComputedStyle(AllElem[i]).getPropertyValue('color').replace(/[^\d,.]/g, '').split(','); // text color array (R/G/B/A)

                    if (typeof(Col[3]) == 'undefined' || Col[3].split('.')[0] == '1') { // run if element does not have an alpha channel  already applied
                        var Lum = Math.round(0.2126 * Col[0] + 0.7152 * Col[1] + 0.0722 * Col[2]); // luminosity
                        var Opa = parseFloat(255 * (255 - Lum) / 65025).toFixed(1); // opacity between 0 and 1
                        if (Lum < 128) {
                            Opa = 1;
                        }
                        AllElem[i].style.setProperty('text-shadow','0 0 0px rgba(' + Col[0] + ',' + Col[1] + ',' + Col[2] + ',' + Opa + ')', 'important'); // set text shadow with alpha
                    }
                }
            }
        }
    }
}

function waitAndApplyFilter() {
    if (typeof(isRunning) != 'undefined') {
        clearTimeout(isRunning);
    }
    isRunning = setTimeout(applyFilter, 100);
}

const callback = (mutationList, observer) => { // called every time BODY has changed
    for (const mutation of mutationList) {
        if (mutation.type === "childList") {
            waitAndApplyFilter();
        }
    }
};

applyFilter();

// Options for the observer (which mutations to observe)
const config = { attributes: false, childList: true, subtree: true };
// Create an observer instance linked to the callback function
const observer = new MutationObserver(callback);
// Start observing the target node for configured mutations
observer.observe(document.body, config);
Edited by UCyborg
Must have ;, formatting
Posted

Officially added to my arsenal.  :thumbup  This route works hand-in-hand with my other "stuff".

The as-an-extension route was not "playing well" with several userstyles where I intentionally use text shadows to hide input field "placeholders" (things like "Search" inside YouTube's search bar).

Why hide "placeholders"?  Because I employ a routine that automatically enters usernames/passwords but nobody looking over my shoulder (can't prevent at work) can actually "see" the entry.  :cool:

Posted

Is it possible to set videos to not  play automatically in Supermium like in New Moon? The CPU load of video playing (advertisements playing) makes the rest of the page load longer and unresponsive.

Posted

Is it possible?  YES.
Have I tried?  No (I don't "do" videos on computers that cannot handle them, lol).

Try these.  I'd be interested in your findings.
https://greasyfork.org/en/scripts/440872-disable-autoplay
https://greasyfork.org/en/scripts/8022-disable-audio-video-autoplay

I'm sure that there are others (MANY others), those are just the first two from a quick search.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...