lichess.org
Donate

# general v2

@LamLamer
"- put them as "sddons set"..."

sorry I don't understand, could you develop on that, we have room.

It sound like an interesting idea. But, what would be the advantage over Stylus. Would it be customized headers or something like that. Do you intend to compete with the Stylus script management and editing interface? Perhaps, "no phone home" security type (which Stylus seems to make a point about with its UserCSS syntax). Please share some of your knowledge.

@dboing "Stylus" too heavy-weight, slow... For Lichess only there better to use something tiny and simply to use :)
@LamLamer Could you give some teaching details about that project. I think it would be interesting to many members, and a more general extension project than the translation extension (i mean from coding perspective, not a user perspective), and it may be a simpler one. Since you intend something tiny, it could be a good "template" for more extensions. How good are you at commenting your own code, the lost art. If you have not yet finished it, perhaps making a discussion about how you proceed, could serve as documentation later.... i am willing to be the writer afterward, if that is not your cup of tea.

"- put them as "sddons set"..."
also, you forgot the first question, which was my main question actually. i tend to send packets of them, in rafales.
@LamLamer @berserkasifuweremad
I have a new question for both of you. The core of the question is:
- how to disable javascript updating of the live DOM tree per tab only (not site), without losing any user data already in it.
2 branches:
- 1) among existing chrome extensions. Do you know of one?
(for now, i can only find one xor the other, i.e. either data preserving or per tab, not both).
- 2) how big of a project as an extension would that be, if only restricted to lichess.

previous posts and recent lost of data gave me this idea of asking you two, or anyone reading this.

I need this because of parallel correspondance games (i use switching game within turns, as a fake sleep on it, letting one problem simmer while worrying consciously about another, and rotating that way, frustrating when discard or back-events or any ticking JS induced DOM tree refresh from the lichess JS interfere with this multi-tabbing ). But, it may be useful for deciding on how to approach feature tweaking CSS versus JS, e.g.; quicker than going through Devtools each time (at least in my usage).

Edit: my last candidate chrome extension, one of the rare per tab JS toggle:
github.com/dpacassi/disable-javascript
@LamLamer
" The task is not clear?" funny, i tried to be concise (damn if you do, damn if you don't, not your fault, my problem).
So, let me paraphrase myself, i don't mind, i usually go berserk in that direction.

But first, know that the task is feasible using Devtools (as it is tab-specific), if JS disabling allowed in settings. But my question is as a user, not a coder or a tweaker. So, my question makes sense but i have not been able to convey it. let's try with verbosity brakes off.

i am looking for chrome extensions that can pause execution of any loaded javascript code that could modify the live DOM tree
(e.g. current CSS code specifying the style, such as chess piece coordinates within their containers)
(also, forget discard from chrome, it may be taken care within chrome or other extension).

Clear, to this point?
i assume that yes, without any more specific context.

There are many extensions that claim to do that. I almost systematically tried them all as far as I could gather them all using the air-headed search engine on the web store (it behaves like a grocery/retail store shelf design).

More context specification on the JS pause/disable/kill extension:

PER TAB task:
of a specific tab where a website page has been rendered, but no other tabs, even if same site.
emphasis: pauses or disables JS on one tab only, even if URLs with similarity are being rendered on other tabs.

Is this what is not clear?
I suspect it is, because in the reviews and support panels on the extensions web store pages, only a few developers seem aware of the possibility or need for that feature, in spite of users voicing such feature request (not many, but not zero).
The linked extension above is one of the rare ones that does that. However, i just found out that it does not do the other task.

User Data Non-destructive task:
The mouse event that activates the JS pausing or disabling action defines a precise moment, t0, where one could snapshot the live DOM tree.

That t0 is clear, right? The snapshot data, also?
Keeping the rendered page closest to that snapshot is what i want. I don't just want the pixels, i want that at t1, when toggle back on JS to the tab, it behaves as if there had been no toggling (I care about past input mostly, not so much the cosmetic styles).

CSS styles, including pieces positions already mentioned, but also the many move line candidates under consideration at t0, and not necessarily stored into premoves. Those may be html live nodes, not part of the CSS properties, but is still part of what i mean by live DOM tree snapshot equivalent.

The last candidate that fits the per-tab only task, completely erases all the paused JS affected CSS data, as if its objective was more like an ad-blocker, stopping the JS, and blocking all previous JS dependent rendering resources (CSS). All that is left is the board background and the move list rectangle border, perhaps its title bar and background, in explorer type lichess pages.

Please, specify what is not clear, in the future, as i can saturate your text buffers (computer or in your brain, i'd bet). And, i would rather not do that.

please correct or ask me, if i used terminology that is not familiar, as I also tend to take some liberty replacing technical terms by word that i consider synonyms, but don't look like i know what i am talking about (i also like to make things simpler, but not simplerer). just write the word, and i will choose better synonyms, 1 line max.

Last possible area that was not clear: 1) versus 2)

1) i have probably missed one such extension in the web store, not enough deferred downward scrolls perhaps?, so if anybody came across one, please share.

2) was, about how big of commitment if going from scratch, and now, since the last failure extension is open source: how much tweaking of that one. Is this looking like your translation extension project, or more like the Stylus Lichess economical equivalent?

This topic has been archived and can no longer be replied to.