Raised This Month: $255 Target: $400
 63% 

Notices

Alliedmodders night mode request?


Post New Thread Reply   
 
Thread Tools Display Modes
KliPPy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 12-13-2017 , 15:11   Re: Alliedmodders night mode request?
Reply With Quote #11

Updated!

- Form elements are now styled too.
- Adjusted colors for quote and code blocks for better visibility.
- Code refactored so it's much easier to add new styles to specific pages now.

You'll have to manually update the script this time but in the future it should auto-update. I made a little boo-boo, used the wrong URL to update. Use this one now: https://gist.github.com/rsKliPPy/4d4...58d2e6c4971c30. Just click on "Raw".

Forms look as such now:


Last edited by KliPPy; 12-13-2017 at 16:07.
KliPPy is offline
Depresie
Veteran Member
Join Date: Nov 2013
Old 12-13-2017 , 16:21   Re: Alliedmodders night mode request?
Reply With Quote #12

For google chrome users you can also use https://mybrowseraddon.com/dark-mode.html

It's not as tight as klippy's because it was made to work for all websites, but it's pretty good

Btw, Klippz, you really are a multi tool, is there something you cannot do ? lol
__________________

Last edited by Depresie; 12-13-2017 at 16:24.
Depresie is offline
KliPPy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 12-13-2017 , 16:32   Re: Alliedmodders night mode request?
Reply With Quote #13

Quote:
Originally Posted by Depresie View Post
Btw, Klippz, you really are a multi tool, is there something you cannot do ? lol
I can't lick my elbow.
KliPPy is offline
ddhoward
Veteran Member
Join Date: May 2012
Location: California
Old 12-14-2017 , 01:55   Re: Alliedmodders night mode request?
Reply With Quote #14

Quote:
Originally Posted by KliPPy View Post
I can't lick my elbow.
That's quitter's talk.
__________________
ddhoward is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 12-14-2017 , 06:05   Re: Alliedmodders night mode request?
Reply With Quote #15

It'll probably need some exclusions, and maybe some addition tweaks to de-saturate, but try this as a starting point:

HTML Code:
img[src^="images/"] {
    filter: invert();
}
__________________
asherkin is offline
KliPPy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 12-14-2017 , 06:33   Re: Alliedmodders night mode request?
Reply With Quote #16

Quote:
Originally Posted by asherkin View Post
It'll probably need some exclusions, and maybe some addition tweaks to de-saturate, but try this as a starting point:

HTML Code:
img[src^="images/"] {
    filter: invert();
}
Tried it and it's not worth it. It would require too many exclusions and even then may not look alright. Just when I got something looking kinda okay other stuff would look awful. Also the img[src^="images/"] selector can't match every image, looks like some have an absolute path (like Multi-Quote). You may want to look into that actually.

So my current approach is to transform most clickable images into buttons, at least until someone creates cool pictures. Probably better than those old images anyway. Does this look alright? I think buttons should pop more, maybe make their backgrounds or text closer to the primary (currently blue) color.

Last edited by KliPPy; 12-14-2017 at 06:36.
KliPPy is offline
KliPPy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 12-14-2017 , 07:34   Re: Alliedmodders night mode request?
Reply With Quote #17

Here's 1.2.0.

- VBulletin pop-up menus are now properly styled.
- "Reply With Quote", "Report Post" and other such buttons are now actual buttons and not images to match the theme.
- Online status icons (bottom left of every post) are now flat to match the theme.
- Adjusted regular text colors, less vibrant now.
- Made sure the code gets executed at proper time regardless of what @run-at is set to and whether a new tab loads in foreground or background.

Please make sure @run-at is set to document-start in script options for the best experience. Even though my script metadata says @run-at should be document-start, userscript addons sometimes set it to something else.

Last edited by KliPPy; 12-14-2017 at 07:36. Reason: fdfsfsfs
KliPPy is offline
cravenge
Veteran Member
Join Date: Nov 2015
Location: ♫ Harmony ♫
Old 12-14-2017 , 08:58   Re: Alliedmodders night mode request?
Reply With Quote #18

Quote:
Originally Posted by KliPPy View Post
[...]
Love the new look, KliPPy.
d(^_^)b

Is there, like a toggle or something so we can easily turn it off and on when necessary?
__________________

"Juunen go no watashi e, ima wa shiawase de shou ka?"
cravenge is offline
kot4404
Senior Member
Join Date: Mar 2013
Old 12-14-2017 , 09:01   Re: Alliedmodders night mode request?
Reply With Quote #19

Quote:
Originally Posted by cravenge View Post
Love the new look, KliPPy.
d(^_^)b

Is there, like a toggle or something so we can easily turn it off and on when necessary?
You can disable the script if you click on the tampermonkey icon then you have to f5
kot4404 is offline
KliPPy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 12-14-2017 , 09:03   Re: Alliedmodders night mode request?
Reply With Quote #20

Quote:
Originally Posted by cravenge View Post
Love the new look, KliPPy.
d(^_^)b


Quote:
Originally Posted by cravenge View Post
Is there, like a toggle or something so we can easily turn it off and on when necessary?
I'm sure all userscript add-ons have something like this:
KliPPy is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:42.


Powered by vBulletin®
Copyright ©2000 - 2018, vBulletin Solutions, Inc.
Theme made by Freecode