Raised This Month: $12 Target: $400
 3% 

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: Chocolate Factory
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?
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 04:00.


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