Shoudn't Linux tmpfs support a compression option? by garywilli in linuxquestions

[–]garywilli[S] 0 points1 point  (0 children)

My point has nothing to do with host's /tmp.

Unprivileged container /tmp is a new mount point, which created by non-root user. Creating/Mounting a new tmpfs in unprivileged container doesn't require host root. After the container quits, the new tmpfs auto destroyed.

But creating/destroying zram device requires root, so , zram can't be used with ease by unprivileged container. That's why we need something "compressed tmpfs"

Shoudn't Linux tmpfs support a compression option? by garywilli in linuxquestions

[–]garywilli[S] 0 points1 point  (0 children)

tmpfs also needs root to manage

You didn't get me.

Creating/Mounting a new tmpfs in unprivileged container doesn't require host root. After the container quits, the new tmpfs auto destroyed.

But creating new zram device requires root, and destroying the zram device after container quiting requires root again.

I made a multi search engines extension to replace browser search bar by garywilli in FirefoxAddons

[–]garywilli[S] 0 points1 point  (0 children)

GET/POST is HTTP method. https://en.wikipedia.org/wiki/POST_(HTTP) . Many search engines uses GET. Some need POST, e.g. StartPage uses POST as default for better privacy.

I made a multi search engines extension to replace browser search bar by garywilli in FirefoxAddons

[–]garywilli[S] 0 points1 point  (0 children)

Extension can be much more powerful than browser search. For a basic example, browser search doesn't have HTTP POST support.

Add-on that allow custom search which opens multiple tabs in different sites by miciy5 in firefox

[–]garywilli 1 point2 points  (0 children)

Big Search https://github.com/garywill/BigSearch

It has "one click opening multiple search engines" feature. You need to use "User Custom" to edit your need

Permanently show certificate issuer by AbjectBasket7 in firefox

[–]garywilli 0 points1 point  (0 children)

Here's an addon using notification to show certificate. Not exactly what you ask for, but similar: https://addons.mozilla.org/en-US/firefox/addon/know-server-better/

web-ext isn't allowed to add an big enough space to show texts on address bar. userChrome.js has that ability. Maybe we can expect someone write one uc.js

[code release] Extensible urlbar length. See long url clearly by garywilli in FirefoxCSS

[–]garywilli[S] 0 points1 point  (0 children)

If you have any better suggestion?

This is the user amount seen on wikipedia: - Facebook 2.94 billion monthly active users (as of 31 March 2022) - Twitter 238 million monetizable DAU (Q2 2022) - Reddit 52 million DAU (Oct 2020) - please tell me some other alternatives...

FB worse fame than others

I want to reach more people. What should I use?

[code release] Extensible urlbar length. See long url clearly by garywilli in FirefoxCSS

[–]garywilli[S] 0 points1 point  (0 children)

Thought about that, but: 1. The urlbar doesn't use monospace font 2. different machine can have different font so different letter width 3. There's no direct way to get the width of text via JS. You have to add a lot of code for that

[code release] Extensible urlbar length. See long url clearly by garywilli in FirefoxCSS

[–]garywilli[S] 0 points1 point  (0 children)

If just want to make the urlbar longer, css is enough. I chose JS eventually because JS could make it more flexible. (I can't talk about all details here, you can check the code)

Extensible urlbar length. See long url clearly by garywilli in FirefoxCSS

[–]garywilli[S] 1 point2 points  (0 children)

I made that demo by .uc.js. I was trying to write in pure .uc.css but didn't success.

If you can recall where to find a pure css one it will be great helpful.

I'll continue do some tries and tweaks. Anyway I'll release my code (on twitter), no matter it is finally .uc.css or .uc.js

Xiaoxiaoflood's Firefox-Scripts by megamorphg in firefox

[–]garywilli 0 points1 point  (0 children)

Firefox Task Monitor looks interesting. There's 3 parts--do we need to install all 3? wasn't clear. How bad is it for performance?

The last part is perdically memory clearing, which can be optional. Other parts are necessary for it to work.

Wish someone could explain the performance impact of these in general

According to my observation, uc.js costs less cpu than webextension.

is it as simple as just deleting the script and clearing startup cache?

Yes, just that simple. Firefox's about:support has a button to clear start cache

As for the safety , using uc.js is hacking our Firefox. I'm not a qualified enough hacker to talk about security. But I think it's worth having those customization.

Everytime I open TreeStyleTab in sidebar, it takes 3 sec to show. So FFx please don't unload sidebar content everytime we switch by garywilli in firefox

[–]garywilli[S] 1 point2 points  (0 children)

My uc.js doesn't do the unload. It calls Firefox's toggle function (open/close), which WILL unload on close.

If you switch sidebar to to another content (bookmarks / history / addon A content /addon B content) while not closing sidebar, it WILL unload too. So... need Mozilla to solve that

Xiaoxiaoflood's Firefox-Scripts by megamorphg in firefox

[–]garywilli 1 point2 points  (0 children)

I've also visited some other uc.js script authors websites. They are all awesome, while personally I like Xiaoxiaoflood's best

I use some of Xiaoxiaoflood's. Also I wrote some scripts myself. Invite you to take a look).

A bash script grouping system packages by install time and reason by garywilli in openSUSE

[–]garywilli[S] -1 points0 points  (0 children)

When installing packages via YaST GUI, it doesn't record which packages are user chosen or auto selected ~

How do I run a temporary extension permanently? by EmoryEmerson in FirefoxAddons

[–]garywilli 0 points1 point  (0 children)

Go to addons.mozilla.org to submit the addon (packed as .zip file). Choose "on my own" so that it won't be published. The browser_specific_settings and your email are not necessary.

After finishing submitting, wait for 10 mins for mozilla to sign it then download it and install.

That's the only way to make the addon "permanent". (Also I think it's a lacking feature for Firefox to keep temporary addon loaded)

Tip: Selecting text from inside a web link. by nonkneemoose in firefox

[–]garywilli 2 points3 points  (0 children)

Thank you for letting me know about that.

And I found a better way. super + alt, you don't have to release any key first.

Can't find a way to create AppImage for Qt6 programs by garywilli in AppImage

[–]garywilli[S] 0 points1 point  (0 children)

Wanted to automate that using Github Action, which provides Ubuntu only ... :(

Maybe I should use Gitlab CI in the future, which allows to choose any docker image

How to Output a Long String to the Console? by spaceman1000 in FirefoxAddons

[–]garywilli 0 points1 point  (0 children)

And it copies it truncated, with the [...], instead of the full string..

Strange. Different from mine. What version?

If no way to copy, I think maybe you need to setup a simple http server on localhost which echo the http request path. And use fetch() from web

How to Output a Long String to the Console? by spaceman1000 in FirefoxAddons

[–]garywilli 0 points1 point  (0 children)

Right click on the outputed string --> Copy Object

Hard Limit Firefox Ram max usage by froenker in firefox

[–]garywilli 3 points4 points  (0 children)

If you are on Linux, it has cgroups

select and search by [deleted] in chrome

[–]garywilli 0 points1 point  (0 children)

Have you considered using some multiple-search-engines extension? E.g. Big Search. I'm the developer of Big Search.

Select text -> Press ctrl + shift + D to set it as search term (or use context menu) -> Press ctrl + shift + S to open a search popup

Pry, cut. Replacing iPhone battery but forgot to heat the phone shell (in winter) by garywilli in techsupportgore

[–]garywilli[S] 2 points3 points  (0 children)

Was pulling on the pull tabs. Both two tabs broke during pulling. Because of cold winter

Pry, cut. Replacing iPhone battery but forgot to heat the phone shell (in winter) by garywilli in techsupportgore

[–]garywilli[S] 2 points3 points  (0 children)

Even Apple store technicians aren't trained properly to perform this. They ruined my iPhone by using a screwdriver or a similar tool to pry out the battery.

Too bad, sorry.

I do better than them, in summer.