11 favorites     28 comments    391 visits

1/100 f/2.0 4.2 mm ISO 1250

Sony F5321

EXIF - See more details

See also...


Authorizations, license

Visible by: Everyone
Free use

391 visits


DARK SKIN FOR IPERNITY

DARK SKIN FOR IPERNITY
Pushing up an old post of mine. Options to change the page colors on client side have been possible for years. One only have to know how. Some of them are easy, some requires little effort.

Stylish

Various dark skins for ipernity available here: userstyles.org/styles/browse?search_terms=ipernity&type=false

You need to install Stylish extension to use it: userstyles.org/help/stylish

My version of these provides also an option to get rid of the z.gif: www.ipernity.com/blog/serola/4716848

And if you know how, you can make a skin of your own, even a pink one if you like. But I warn you that it is extremely complicated. Most of the current dark skins are based on the hard ground work done by Spotomy: www.ipernity.com/blog/spo/4655884

Dark Reader

Available here: darkreader.org

I have not yet tested this, and therefore I really can't guarantee how reliable it is.

I am using Dark Reader now on Chrome, and already default settings, are treat for my eyes! Just the right contrast =)

Please notice you can set web site specific exceptions on Dark Reader.

Moreover, Isabel (Xata) has reported that Dark Reader works even on iPhone and iPad (Safari).

Although, it is advised to disable all other similar tools on Dark Reader pages, it still may work for example together with Stylish. So, if you wish to use Stylish instead on some web site, then add that web site as and exception on Dark Reader, and use the Stylish style instead.

Tampermonkey

Get Tampermonkey: www.tampermonkey.net

See the comment by Marta.

raingirl, Erhard Bernstein, Leon_Vienna, Berny and 7 other people have particularly liked this photo


28 comments - The latest ones
 Bergfex
Bergfex club
Thank you Sami!
And many thanks to Spotomy, who created it!
6 years ago. Edited 6 years ago.
Sami Serola (inactiv… club has replied to Bergfex club
This Dark Skin may work again also on Firefox.
4 years ago.
 Heidiho
Heidiho club
Thanks to Spotomy too !
It only works in Firefox ?
6 years ago.
Sami Serola (inactiv… club has replied to Heidiho club
Spotomy told me that other browsers have stopped supporting client side style sheets.
6 years ago.
Sami Serola (inactiv… club has replied to Heidiho club
It may work on Firefox again. Haven't tested it myself yet.
4 years ago.
 Marta Wojtkowska
Marta Wojtkowska club
FYI Newest Firefox and newest Opera both support userscripts managed by Tampermonkey.
4 years ago. Edited 4 years ago.
Sami Serola (inactiv… club has replied to Marta Wojtkowska club
Please refresh my memory, Marta. Do the Stylish require also Tampermonkey? I seem to have both installed, and recall there is some dependency. But it is already so long time ago when I installed them, that I am not sure, and not interested to test it right now.

However, I just tested Dark Reader, and I must say it is much easier solution! =O
4 years ago.
Marta Wojtkowska club has replied to Sami Serola (inactiv… club
DarkReader is awesome!
But is there something similar but doing just the opposite?
There are two websites that I visit every day (have to to stay in tune with my business environment) and they are dark (dark background, light print). My eyes are aching because of it.
You may call it anomaly, but that's what my eyes need: black ink on paper, not the other way around.
4 years ago.
Sami Serola (inactiv… club has replied to Marta Wojtkowska club
On Dark Reader there seem to be a lot of customizing settings. And an option to disable/enable it for each web site is included. Just open the Dark Reader menu from browser toolbar icon, and click on the field showing the web site url that you are viewing.

Moreover, you can use the sliders to adjust the features for your taste.
4 years ago.
Marta Wojtkowska club has replied to Sami Serola (inactiv… club
I am trying... sliders make some corrections but not the way I am looking for.
Can you try this page for me
zaufanatrzeciastrona.pl
and tell me what can be done there?
It's in Polish but it does not matter ;)
4 years ago.
Sami Serola (inactiv… club has replied to Marta Wojtkowska club
Strange... For me that web site opens dark, even if I do not make it as an exception:

Screenshot 2019-12-29 14.16.14

Do you have some other extension running that does the same? Dark Reader may conflict with that.
4 years ago.
Marta Wojtkowska club has replied to Sami Serola (inactiv… club
That's what is my problem: a site is dark by itself and I am looking for something to make it light.
No, I do not have any other extensions running at the moment.
4 years ago.
Sami Serola (inactiv… club has replied to Marta Wojtkowska club
Doh! Sorry, I totally misunderstood what you wanted to achieve. Then you are right, it does not seem to work that way at all. So, one can not turn an already dark web site to light with that =(

However, I discovered that Dark Reader may work with Stylish after all. So, first disable zaufanatrzeciastrona.pl on Dark Reader, and then try this: userstyles.org/styles/148520/zaufana3strona-kmdark

I do remember you said that you ain't have Stylish at the moment. But that is one option...
4 years ago.
Marta Wojtkowska club has replied to Sami Serola (inactiv… club
zaufana3strona-kmdark only removes the top- and sidebar boxes for me.
But I found another one:
userstyles.org/styles/105437/zaufana-trzecia-strona-czarno-na-bia-ym
and it works for me! Hooray!
It works with Tampermonkey too :) Hooray, hooray!!!
Thank you so much for putting me on the right track :)
4 years ago.
Sami Serola (inactiv… club has replied to Marta Wojtkowska club
Glad to hear you got it solved =)
4 years ago.
Marta Wojtkowska club has replied to Sami Serola (inactiv… club
Now I have to make your script for Ipernity to work with Tampermonkey (without Stylish)...
There is something in its syntax that Tampermonkey doesn't like...

[Update]
I've included four headers in your script
// @include ipernity.com/*
// @include ipernity.com/*
// @include *.ipernity.com/*
// @include *.ipernity.com/*

and now it works with Tampermonkey like charm :)

I've also added a '{' at the end of line No 21 and a '}' after the second 'join' to get rid of the warning given me by Tampermonkey (but it worked without the brackets too).
4 years ago. Edited 4 years ago.
Sami Serola (inactiv… club has replied to Marta Wojtkowska club
Now I slowly start to understand =D

I barely manage to get those styles of mine, based on Spotomy's work, to function with Stylish. I had no idea how to make them work with Tampermonkey.

And thanks for noticing that error on line 21. I have a look if it requires fixing in general.
4 years ago. Edited 4 years ago.
Sami Serola (inactiv… club has added
Hmmm.... I could not find the error. What is on that line 21?
4 years ago.
Marta Wojtkowska club has replied to Sami Serola (inactiv… club
I am so sorry... your lines have been renumbered after I added four headers and a comment line with a note that it was my addition. My bad...

Your line No 16 starts an if.
Like in
if (a_condition)
a_very_long_statement


Classic javascript needed curly brackets (braces) even if a_very_long_statement was a single one (yours is).
Like in
if (a_condition) {
a_very_long_statement
}


Maybe the syntax does not need it, but Mozilla says that it is a good practice to always use block statements.
See developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/if...else#Syntax

So in this particular case omitting the braces is not an error per se because the script is parsed and processed correctly. Tampermonkey gives a warning to make a developer aware of a potential issue. And I am so old-school that I can't help removing all warnings that I can remove. Oh... forget it, please.

Once again, I am sorry for the confusion...
4 years ago. Edited 4 years ago.
Sami Serola (inactiv… club has replied to Marta Wojtkowska club
Now I am even more confused! =,D

I thought you were talking about one of these CSS files:
userstyles.org/styles/browse?search_terms=ipernity&type=false

Which should not contain any javascript. So, is there some error on one of the ipernity javascripts?

But no worries. If it works, then that is good enough =)
4 years ago.
Marta Wojtkowska club has replied to Sami Serola (inactiv… club
Maybe I wandered around the main subject a bit too much :) Adding to the confusion :)

From that moment
www.ipernity.com/doc/serola/45923990/comment/59312136#comment59312136
I was talking about one of these CSS files:
userstyles.org/styles/browse?search_terms=ipernity&type=false
namely this one
userstyles.org/styles/154372/ipernity-dark-style-2018-v1-0

But instead of installing it with Stylish I grabbed the link to the userscript file:
userstyles.org/styles/userjs/154372/ipernity-dark-style-2018-v1-0.user.js
and 'installed' it with my Tampermonkey.
First it appeared in the Tampermonkey's dashboard but didn't work.
Tampermonkey didn't know how to activate / trigger it for Ipernity until I added those four headers. Than the site went dark, as intended (and I could switch the dark skin off and on again).
While doing it I inspected the code in Tampermonkey's internal editor (and Notepad++ as I like to use it for such tasks).
The Tampermonkey's editor warned me about if missing a curly bracket. So I added it and the closing one after the (very long single) statement. That's it.

Now about javascripts... My understanding it that userscripts are actually little (or not so little) snippets of javascript handled by browser extensions like Stylish or Tampermonkey (and some less popular others). The extension (when active itself) looks at the page to be displayed, detects a matching userscript (if there is one and is not switched-off) and forces the browser to run the script accordingly to the instructions inside (like // @run-at document-start). Of course the most common usage is to change default css definitions (like in GM_addStyle(css)). And it is what your script does.

But there is much more to explore (and use):
www.tampermonkey.net/documentation.php

[EDIT] one hour later:
I think that I can see a possible source of confusion.
Stylish is not a general userscript manager. It deals with styles and injects them into appropriate pages. I think that Stylish (internally) uses javascripts to do it, but I am not sure. One day I'll investigate it but not today :)
4 years ago. Edited 4 years ago.
Sami Serola (inactiv… club has replied to Marta Wojtkowska club
Yes to your edit, I think so too. And that is why I like it. Less hassle when one does need to learn Javascript as well.
4 years ago.
 Sylvain Wiart
Sylvain Wiart
intéressant !
4 years ago.
 Marta Wojtkowska
Marta Wojtkowska club
As good as I get it Stylish and Tampermonkey are equivalents. One does not need another. But you may both of them installed because they are not fully compatible (that's my take, maybe I am wrong).
I think that I have to correct my previous statement:
I do not use Stylish since last August. I use Tampermonkey only. Last August I upgraded my computer and installed all my operating systems and other software from scratch. That's when I realized that Tampermonkey was available for all my primary browsers (Firefox, Opera and Chrome). So I discarded Stylish (but I still love it!) and went for a uniform solution. Same extension(s), same scripts everywhere.
4 years ago. Edited 4 years ago.
Sami Serola (inactiv… club has replied to Marta Wojtkowska club
Oh, I did not know that, or have forgotten, if I knew earlier! =,D

I will just try to disable Tampermonkey and see if Stylish works without it. I like Stylish because it comes with option to list all available styles for each web site.
4 years ago.
Marta Wojtkowska club has replied to Sami Serola (inactiv… club
Tampermonkey is obviously less sophisticated :)
4 years ago.
 Leon_Vienna
Leon_Vienna club
On suggestion of Bergfex, somewhere in ipernity's depth, I am using Dark Reader for FF - and it is absolutely great. Glad to have it now.
4 years ago.
Sami Serola (inactiv… club has replied to Leon_Vienna club
Yes, just saw it mentioned on Bernhard's post as well =)
www.ipernity.com/doc/bergfex/49578466

And as I have updated on my post here, Dark Reader actually do work with some other extensions. So, on some web sites one can use for example Stylish or Tampermonkey scripts instead. Then just disable Dark Reader on those web sites, and use another extension.

See also the discussion with me and Marta above.
4 years ago.

Sign-in to write a comment.