« first day (374 days earlier)      last day (1082 days later) » 

4:31 AM
@cigien could be that the script was updated on Firefox but on Chrome? Xnero reported this some time ago. Update here
 
4:53 AM
@double-beep I've been using the one here. At least that's the one I just installed on Chrome. Is that a different repo?
 
 
1 hour later…
6:03 AM
I should've looked at the commit history first - I assume you fixed it on May 26th?
I knew it doesn't make sense that the most recent version of the source to cause the error
@Scratte hm... looks promising - can you change the green and yellow to something more soothing first, though? I.e. darken the green and brighten the yellow (and reduce the amount of green in it)
@KevinM.Mansour yeah, no need to, I do read the transcript :) Although I do not have a problem with being pinged either - so do whatever
@Scratte how can you make a joke about var/let/const and not make the outer function an arrow function? :)
@cigien yes, that' a different repo - we are kind of moving towards the SOBotics / SOCVR model of having an organization on GitHub with member repositories sharing common utilities, templates, etc
 
6:35 AM
  function removeLineThrough() {
    if (userConfig.options.removeLineThrough !== "Yes")
      return;

    const style = document.createElement("style");
    // style.type = "text/css"; - deprecated
    document.head.appendChild(style);

    const { sheet } = style;
    //possibly null @OW
    if (!sheet) return;

    //no need for an interim variable here @OW
    sheet.insertRule(`
    ${config.lineThrough} {
      text-decoration: initial !important;
    }`);
  }
@Scratte ^ I still remember :)
as for the logo - it really looks promising - I put it on the org already - let's test the color adjustments and settle for it, at least for the time being
 
7:27 AM
@OlegValter But those are the colour that I see all the time when I do a user script :)
@OlegValter That looks nice :) It's clear and one can see it says user user user user user scripters :)
 
argh, my ears! I enabled audio when mentioned and am using my headphones right now
give me a moment to adjust the freaking "100% set by default on <audio> elements" with no controls
 
Sorry about that.. You can adjust the volume.. or set it to none on chat :)
The only reason why I didn't make a joke about the "function" was because I wanted the blue :)
 
@Scratte yeah, give me a sec - I do not want to adjust it OS-wide or browser-wide
^ I think I will write a mini-userscript replacing the damn awful notification sound + give the user an ability to choose a sample file + enable sound level control
@Scratte - ping please :)
 
@OlegValter That user script has already been made :)
 
@Scratte better
@Scratte really? I thought something like this must exist
^ in any case, I'd like to fiddle with it myself because I never get to work with HTMLAudioElement interface (well, more like HTMLMediaElement)
 
7:36 AM
I think it's on Stack Apps too. Funny I didn't keep a link to that :(
Hmm.. SE Chat custom notification sound doesn't seem to link to the same repository
I think it is.. it's in the second Answer :)
 
@Scratte you initially sent a link to the fork from source repository
> This is my historical profile, kept around for a few automatically updated repos. See github.com/muru for current activity.
^ it seems like this is a kind of an archive account
 
@OlegValter I always keep a link in the scripts that I find to where I found it :)
It makes it really easy to find when someone says "I with there was a user script for ..." ;)
I think the logo looks nice on white too :)
 
@Scratte after I, or @double-beep, or somebody else from the org gets to it, we are going to spread the wisdom of it with automation :)
 
7:52 AM
@OlegValter Why are you testing to see if a variable that has just been created is null?
@OlegValter We're going to link to other user's scripts? :)
 
@Scratte I think why not :) Under an "other scripts" section or something - just as a list
 
Are you/we creating the user script repository/index of the world?
 
@Scratte - in a way how SOCVR links to endorsed scripts
@Scratte I like your thinking :)
@Scratte well, because sheet can be null at any point in time (it is partially mitigated by appending the style element first, but I don't know if this workaround is to stay). It is a reasonable assumption that it is not null here, but, for example, strict TS yells at you
^ it's not like you absolutely must do this check, but I don't think it hurts
 
@OlegValter I think that those scripts were made by users in the room :)
@OlegValter OK. I'll look at it later. I've been writing on a different file for the modal. I'm sure it'll irk you in all the wrong ways :)
 
@Scratte ok, who's TinyGiant, Makyen, or Benjol in disguise? Speak up! :)
@Scratte don't assume that :)
 
8:05 AM
@OlegValter Makyen is not in disguise. TinyGiant was a regular in SOCVR from early on, if my understanding is correct. They deleted their profile. Not sure about Benjol.
If you search for "TinyGiant" in the room transcript, you'll see that other users reply to them a lot.
 
@Scratte wait, you meant members of the SOCVR room by "the room"?
 
@OlegValter Yes :) But I think that's probably not the only room they visited :)
 
@Scratte ah, I misread you then :) I thought you were talking about this room because you used a definitive article (not incorrectly, my reference point got scrambled)
 
No. I mentioned that they were a regular in SOCVR.. and that you can search "the room" for their activity, where I meant the SOCVR room :) This was all before this room (this one here.. with us in it) ever started :)
I think they were one of the users that started the Request Generator.
Yes // @author @TinyGiant @Makyen
And I'm happy to see that it's at 5000 lines of code. So I think I can go to 2000 lines without being cast in the gallows :)
 
8:23 AM
@Scratte don't be so sure about it :) This was before ESM was a thing, we now have capital punishment for long files :)
@Scratte yeah, as I mentioned, my reference point got screwed up :) It's not like there was anything incorrect in your usage of the definitive article
@Scratte hm, I know that TG deleted their account, but never checked why (unless it is related to the user exodus of 2019) - do you have Meta points of reference as to why?
 
@OlegValter Heh.. and yet no one knows I'm a dog ;)
@OlegValter No. I don't. I assumed they got fed up with something..
The issue if you want to know is that 1. Someone doesn't always say and 2. It's hard to search for their posts.
 
@Scratte given the timing, I probably know what's the reason, but it was a bit abrupt - I first learnt that they existed from comment @-mentions all over MSO
 
@OlegValter So.. it's the usual Monica kerfuffle?
 
@Scratte yeah, I could've looked in the room: chat.stackoverflow.com/transcript/message/48371211#48371211
 
@OlegValter That's two TinyGiant's in one? :O
 
8:53 AM
@Scratte - ah, and I finally remember the reason (I saw the post before, but already forgot about it): This answer is a stub. A partial solution for partial answers on Meta
 
@OlegValter I've never seen that before :O
 
@Scratte I had to do a freaking SEDE query to fin it again: data.stackexchange.com/meta.stackoverflow/query/edit/1415457
^ sorry for the semi-bare links again, I found an annoying bug in my script that I need to fix first
 
9:08 AM
It does help when you have the userid of the deleted user, but it's still a pain :(
Are you saying they deleted their profile due to that meta post?
 
9:33 AM
@Scratte no, from what I've learnt, the Meta post started it, there was an extremely harsh response, things got hated, apparently they were also suspended after it which likely lead to the "I am done with this BS" reaction
 
I've got this tab kind of done for the user options. Any thoughts?
@OlegValter I've been there many times already..
I'm not on the bandwagon of "Let's punish users to submission"
There was a time when I was very obsessive about my declined flag rate. Some users (obviously not the silent ones that were equally as obsessive as I was) kept telling me that I was doing it wrong and it was bad for the site and blah blah blah.. that I shouldn't not flag just out of fear of a declined flag. I was being selfish. So, I just stopped flagging posts altogether. Now, no one is giving me grief over it. It's so ironic in a way. Before I was at least flagging those really bad posts.
 
9:57 AM
@Scratte yes, some: first, please, change to conventional shape of toggles (squares or circles, but not ellipses). Second, you probably want to switch the position of colour selects and labels - this will give the modal a more polished look because they will all be on the same vertical line
^ other than that, I do not have any problems with it
 
@OlegValter I changed them to ellipses especially :D
I thought of having them all on a vertical line, and I tried it, but it just came off more messy :(
 
@Scratte I understand that it is not accidental, but that's just not good UX. Making normal elements look unusual is not a good idea as users expect them to be of a certain shape everywhere. Besides, you use Stacks default shapes everywhere else, so they look even more out of place. Of course, it's your UI, but I am somewhat of an SME, and, to be frank, it looks daunting to me
 
@OlegValter It is the Stack toggle.. I just squished it. Because it's too big. And if I resize the length, it's too small :(
 
@Scratte I know :) I am talking about shapes, not the markup
@Scratte mm, it can be done, but probably requires more than just left-aligning them. For example, you could make them look like other stacks components (rounded angles, no borders). This should make them "fit in". Next, you can play with margins
@Scratte there are a lot of ways to resize if you need them to fit - once you are ready, you can show me the source code, and I can take a shot at showing a couple of options you could take
right now they just look like the perspective is skewed
a good idea is also to have all actionable elements of the same type have the same height (i.e. dropdown in closed state and text input, toggles and color pickers, etc)
^ that's also why those toggles feel "off"
btw, what happens when you toggle one off? Judging from the layout I, as a user, assume the whole group gets disabled - am I correct?
 
10:13 AM
@OlegValter Not the group, just the elements in it.
 
@Scratte well, I meant the elements, sorry :) Great then - was just checking, hard to tell from the static image
 
@OlegValter Less ellipses.. but I'm not sure I like this.
 
@Scratte now you can unify the action elements width as well :)
 
@OlegValter Huh?
 
@Scratte the toggles seem longer than color pickers, at least to me, and I don't think this is an optical illusion
 
10:24 AM
Another small adjustment - and without my personal CSS
I'm not changing the blue button shape. That's just standard Stack.
 
@Scratte I know :)
 
I'm not sure if I should add a preview. I'll not apply the changes to the page. Just to the config object. Then users will have to refresh their page. One of the reasons is that I don't want to have to revert changes to the title bar "on the fly"
 
@Scratte hm, a preview might be too much work for little benefit, I agree
 
@OlegValter A preview would make it easy to see what they're applying though, since I'll not apply it to the actual page.
I also want to add a "restore default", but that would need to go through all the elements in the modal and reset them too. Else the user may not think anything happened.
I could add a button to every option to only restore that one element.
 
@Scratte - why I am so hell-bent on asking you to rethink the egg-shapes is that they come in sharp contrast to everything else - they are not supported by other elements in the design.
Stacks components follow similar principles as Material UI does and thus avoids elliptic shapes - when nesting elements inside each other, the inner element is either a circle or a rectangle. For, example, take a look at the shape section of the material UI: https://material.io/design/shape/about-shape.html#shaping-material
@Scratte if you can do it and have time - go for it :) I just agree with your initial hunch - it may take a lot of effort
 
10:32 AM
@OlegValter I think.. there's no ETA on this project ;)
@OlegValter All the buttons are elliptical though. None are perfect squares :)
 
@Scratte :) I would love to see a live preview, but I also know how much effort it can take to properly create something like that
@Scratte I do not see any elliptical button in your (or Stacks) layout - they are all rectangles with rounded corners
 
@OlegValter The code as it as feels very messy.. it's self-contained and at present unrelated to the other script.
@OlegValter A rectangle is a square ellipses :)
A square is a square circle :)
But I didn't want to try to waste my time with a long rectangle and a round inner button for the toggle, because that seemed to be.. too much work.
 
@Scratte well, you can always ask me to take a shot :)
 
@OlegValter Wouldn't that be redesigning the entire toggle? I mean then the actual inner part of the toggle wouldn't be touching the middle of the "button".
A normal toggle goes from one end to the middle (O ), not like this (O )
I'll upload the code to a pastebin, if you want to check out my messy stuff :)
 
10:52 AM
@Scratte I don't mind me some messy code :) I just finished organizing my version into modules from a big IIFE
@Scratte that's why you normally don't screw with toggle's width :) Inner circle can be changed to a block - I can show, but I need a modal to work on, I am not particularly thrilled about setting up a full example from scratch :)
 
@OlegValter Funny you mention that.. I have one here. It expires tomorrow
First.. I think I should let you in on the general idea.
So the userConfig from the Suggested Edits Rework script is be renamed to defaultUserConfig (as here). Then when the script is loaded it will either fetch what's in localStorage or it will save the default and then fetch it. I planned to keep two separate userconfig objects (three with default). One that the script uses when reviewing, which is the actual configuration. Another one called tempUserConfig that is only used by the modal. When user presses "Save" that is saved into localStorage.
I'm finding the "modalHighlight()" function to be a little messy. But I'm not sure I can do anything about it. I find it messy because it keeps repeating stuff. But I don't think I can not repeat stuff there, since I can't destructure the tempUserConfig elements in there for the saving of the new value.
Don't go destructuring everything, because I keep changing my mind about variables and classes, and it just makes my life easier to have the names right where I'm working on them :) I only do that when I'm pretty sure that's how I want things.
You can only access the modal from inside a suggested edit review from the top right corner
 
11:45 AM
@Scratte why do you set expiration lower than never, btw? :)
@Scratte don't worry, I'll make my way through :)
 
@OlegValter I don't want this messy code to sit there forever.
@OlegValter Note, that I'm still in the discovery phase of all kinds of stuff, so I'm probably not going to apply a lot of optimizations at this point :)
 
const waitForSelector = <T extends Element>(
    selector: string
): Promise<T> => {
    const initial = document.querySelector<T>(selector);

    if (initial) return Promise.resolve(initial);

    return new Promise((resolve) => {
        const observer = new MutationObserver(() => {
            const target = document.querySelector<T>(selector);

            if (!target) return;

            observer.disconnect();

            resolve(target);
        });

        observer.observe(document, { subtree: true, childList: true });
^ btw, mini-utility (needs expanding) for waiting until an element appears in the DOM, Puppeteer-style, in case somebody finds it useful
 
Instead of waiting for ajax? :)
 
12:22 PM
export const waitForSelector = <T extends Element>(
    selector: string
): Promise<NodeListOf<T>> => {
    const initial = document.querySelectorAll<T>(selector);
    if (initial.length) return Promise.resolve(initial);

    return new Promise((resolve) => {
        const observer = new MutationObserver(() => {
            const target = document.querySelectorAll<T>(selector);
            if (!target.length) return;

            observer.disconnect();
            resolve(target);
        });

        observer.observe(document, {
^ sorry, here's an improved version
@Scratte well, I didn't have anything specific in mind, but yes, that should enable you to simply wait for the selector to appear :)
 
@OlegValter We're going to need that :)
I'm going to put a line here saying "No ajax. Just wait for selector" :)
 
@Scratte isn't it obvious from the name? :)
 
@OlegValter Yes, but I'm going to remember "No ajax" :D
I have another small issue now. This is my entire window. I can't make it higher, since my screen isn't higher.. Do I make more tabs, or is a scrollbar OK?
@OlegValter Do you want my preview messy stuff too?
 
12:45 PM
What to do when an OP just can't take a hint?
[localStorage error - localStorage.getItem() has arguments of type 'string | null'](https://stackoverflow.com/q/67098035/11407695)
 
Multi-line? :D
 
@Scratte scrollbars can be styled (although not very easily), so you should be in the clear
@Scratte d'oh!
I found my true nemesis - multiline chat messages :)
 
@OlegValter Am I not doing the same thing? :D
    function getUserConfig() {
        let config = JSON.parse(localStorage.getItem(PREFIX));
        // console.log("getUserConfig - config", config);
        if (config === null) {
            console.log("userConfig was null");
            updateLocalStorage(defaultUserConfig);
            config = JSON.parse(localStorage.getItem(PREFIX));
        }
        return config;
    }
 
@Scratte not yet, I am currently a bit busy with making my version rerun on each task change
 
@OlegValter Have you considered installing ViolentMonkey and just put the script in there? :)
 
12:50 PM
^ Yay :) Note the last comment :)
@Scratte nope, not my way :) But I am talking about the stuff that you had to deal with ajaxComplete
 
@OlegValter When I give you a user script that runs, you should really just put it into a manager :) Don't waste your time trying to make it work with your strange setup :) You can just delete it again :)
 
@Scratte is the above a joke?
 
@OlegValter Well.. not really :) Will it not make it easier for you to see how it works if you don't have to do all kinds of stuff to it first?
@Scratte I'm not getting any errors from this even if there's no such key in localStorage.
I get a lot of these in the console though "userConfig was null"
 
@Scratte I don't understand what you mean, sorry :( I have my script for improving the reviewer experience. I am continuing the project I started a while ago - initially, it only ran once, now I've added a MutationObserver to run it on every change + modularized it + nearly ready to add a linear graph component.
 
I'm talking about the code I put in a pastebin today, that you wanted to look at.
It runs as is in a manager.
 
1:01 PM
@cigien I rewrote the script in TS in order to make it more maintainable and just put the new code in that GH repo. I don't think I'll update the gist again. You should better use the JS file in dist/
 
@Scratte and I am talking about mine :) I am busy with my project :)
> When I give you a user script that runs, you should really just put it into a manager :) Don't waste your time trying to make it work with your strange setup :) You can just delete it again :)
^ now imagine how this sounded :)
 
Heh.. I see :) Well, I didn't mean for you to put your own stuff in a manager :)
 
^ this is what you get for not relying on textContent with username that SO renders :)
^ and instead parsing the href without decoding it first
 
@OlegValter Nice name.. I wonder if I should try my luck with Scr$#061tte :)
No idea how that $ same in there :)
 
1:16 PM
@Scratte I suggest going for Scr%C3%A4tte"
 
Won't that just render to Scratte? :) The internet says "Scrätte"
 
@Scratte decodeURIComponent("Scr%C3%A4tte") :)
 
ä isn't an a :) That's an a with two dots on it :)
Skråtte is also not a good idea, unless.. I'm an old car or something.
 
@Scratte I know :) I think it might suite you
@Scratte it seems to translate as "slanted" from Norvegian :)
god damn it, I was wrong - I reread my code - it's the freaking API
 
"Solgt til skråt" means "Sold to scrap" :)
 
1:23 PM
should've used an "unsafe" filter
shout out goes to Adrià Vilanova for having a non-US-ASCII char in their name :)
 
@OlegValter I think I'm spared, since I just make a user card :)
 
^ finally!
 
Looks nice.. except for those 8 words per line :D
I'm pretty happy with my reintroduction of buttons :)
 
@Scratte I did not address this in my version :)
 
1:38 PM
@double-beep Ok, thanks for letting me know. I'll do that.
 
@Scratte Yup.. I'm spared this issue :)
 
2:08 PM
^ this is how I see it, @Scratte - a quick mockup, not a definitive version
 
You made the toggle and colour boxes so... high :)
 
@Scratte I see - isn't it easier to delete the things after you are done messing with them, though?
 
@OlegValter I'm uploading as anonymous, so I have no control once I push enter.
 
@Scratte btw, I suggest using a material icon gear for that (consistency with other icons): icon
 
@OlegValter I have no idea how svg works.. So I just used whatever. Did you strip the comments? :)
 
2:22 PM
@Scratte if you do not intend to build it manually, you can append the markup just as any other element :)
 
I might have mentioned it around the close button.. "// FIXME! How does the @_s("Close") and @Svg.ClearSm from...."
 
I spent around an hour or so and I gave up on it.
@OlegValter Maybe.. some day when I can figure out how that works.
 
@Scratte it's not that different from HTML elements :)
 
[Stacks-Icons/build/lib/Icon/Alert.svg](Stacks-Icons/build/lib/Icon/Alert.svg) .."Sorry, something went wrong. Reload?"
 
2:25 PM
for now you can simply use innerHTML / outerHTML, depending on the situation to set the SVG content (that's not ideal, but can do for now until you understand how SVG works)
 
@Scratte see the full list here. You can get the SVG as a jQuery element using Svg.svgName();
 
Trying to not use jQuery though :)
 
@Scratte what are you trying to do?
 
But seriously. I spend a while trying to work out how to get that "@Svg.ClearSm" and it kept erroring on me.
 
@Scratte you can convert it to an Element then: Svg.svgName()[0]
 
2:28 PM
I think I just fail to understand how to access them.
 
> If you’re in Stack Overflow’s production environment, we have a helper that can be called with @Svg. and the icon name, eg. @Svg.Alert
 
I see the icons, but I don't understand where they are. If they're part of the page, or do I need to fetch them and in either case, I don't understand the filetype.
 
That's where the @Svg comes from
 
@Scratte - if you need ready-made SVG markup, you can get it from the repo
Alternatively, you can use Stacks JavaScript library described in the prototypes section
 
@OlegValter That's where I went, no? And got a "Sorry, something went wrong. Reload?"
 
2:33 PM
@Scratte dunno what's wrong - that's normal GitHub. Do you mean the error happened when you opened an icon? Switch to raw view (<> icon), GitHub can't pretender SVG but tries to do that in the blob preview mode (default)
 
I'm really trying to understand what you're saying here. But this is the conversation we're having: "If you want to eat a steak, it's easier if you use a fork and a knife". "What's a fork? And what's a knife? I tried to find one in my basement, but it's all empty"
 
@Scratte you keep jumping to action too much :)
regarding your error when you open an icon in the repo
 
From the modals there's a aria-label="@_s("Close")" and a @Svg.ClearSm. I tried to put them exactly as it in the example, but that did not work. I can't remember the error, so I just put an X instead.
 
nothing is wrong, the default view is "display the rendered blob"
^ and you want that
 
@OlegValter OK. I also tried to add the svg tag with a path inside.. and that just gave me nothing :(
 
2:38 PM
:5231568 describe exactly how you tried to do that :)
 
@OlegValter I think I just added the elements creating them.. and appending the item.
I put in the path exactly as it is on another modal.
But.. isn't this kind of sidetracking? :)
I'll put a note in my script to check out this conversation later on :)
 
there are at least 3 ways you can do that (add an icon)
^ @double-beep gave you one with jQuery
 
Then I can do what I did before.. and if that still doesn't work. I have something concrete that doesn't work.
 
I described one with raw markup
there is also a third one, but you need a crash course on SVG for it
 
I don't know how to use the one double-beep gave me :)
I'm having a complete basic knowledge problem with this. I'm not joking. I have no idea how svg's work..
 
2:41 PM
but you keep trying the method that only works if you are StackExchange :)
 
I see :) And they do not work on Stack Overflow?
 
@Svg.some_svg is a helper that is used in the server-side code. Svg.some_svg() is a JavaScript helper
SE uses jQuery, so it's more convenient that the latter returns a jQuery object
but you can convert it to an Element (and get outerHTML if you want to)
 
^ what double-beep means is there is a globally exposed Svg variable that hosts the methods for getting the SVG elements as jQuery wrapper objects
 
another way would be to fetch https://cdn.sstatic.net/Img/stacks-icons/svg_name.svg
(essentially what that helper does)
 
you can do: Svg.AlertCircle().get(0)​, and it will net you the SVG element
 
2:45 PM
OK. I'll try that :)
I'll need to finish up some syntax errors first though.
 
you can also build the icon manually via vanilla DOM API, take a look at my mini-script for replacing votes cast icon:
(() => {
    const SVG_NS = 'http://www.w3.org/2000/svg';
    const ICON_SEL = "div[title*='votes cast'] svg";

    const svg = document.createElementNS(SVG_NS, 'svg');
    svg.classList.add('svg-icon', 'iconArrowUpDown');
    svg.setAttribute('width', '18');
    svg.setAttribute('height', '18');
    svg.setAttribute('viewBox', '0 0 18 18');
    svg.setAttribute('aria-hidden', 'true');

    const path = document.createElementNS(SVG_NS, 'path');
    path.setAttribute('d', 'm9 1 7 7H2l7-7zm0 16 7-7H2l7 7z');
^ the main difference between HTML elements and SVG created via the DOM API is that they need a namespace and most of the attributes need to be set via the setAttribute method
 
@OlegValter in which case you'd have to hardcode the path
 
I guess my emoji-gear is out ;)
 
@double-beep yup, I just made an example of manually creating it if you can't or don't want to rely on any library (and I was lazy enough to allow myself to directly set the d attribute on the path)
 
I think we can safely say that I did it all wrong :)
I'm sort of reconsidering the preview now.. most of what I'll do it just redoing what I did for the review.. and I don't want the same kind of code in multiple places.
 
3:04 PM
@Scratte don't worry, just don't be too eager to jump to action :) You know what you think (hopefully), but I, for example, don't, so, for example, this one "OK. I also tried to add the svg tag with a path inside.. and that just gave me nothing" does not tell me much without the context of where you tried it, how and such :) Especailly after me only linking to the repo for reference :)
@Scratte hm, you could clone a big chunk of the review DOM, apply the changes to it, and then remove it once the preview is closed, how about it?
 
@OlegValter I think I deleted what I tried :) So I'm a little fuzzy on exactly what I did :(
@OlegValter I wanted to toggle it in the preview. And I don't want to make any changes to the actual document :)
 
@Scratte is the preview content fixed?
 
@OlegValter Yes, I'm just picking out some stuff that makes sense. Then I'm applying the change and un-applying it depending on the values given.
But I can't just close part of the review that I'm on, since some of the things aren't there. Like a message that "You're not able to review this item" isn't there unless some circumstances are met.
 
@Scratte I see, I assume the preview is not in the pastebin, right?
 
@OlegValter No.. I only finished the line-through. Then I started on the message and I realized that I'd be copying code I already did, and I'm kind of stuck on that now.
 
3:16 PM
^ because something tells me that "and I don't want the same kind of code in multiple places" means that you just need to rewrite the utilities changing styles to be less tightly-coupled and be more generic
 
@OlegValter Yes.. :) I just made me very tired because I already rewrote that code 5 times :D
Adding the options in a modal was suppose to be a nice to have quick thing :)
 
@Scratte I know the feeling, don't worry :)
consider forgoing the feature for a while but do not delete it - come to think of it, it's nice to have
 
I know that as soon as I tough that other code.. it's going to break something. Then I'll spent all evening working out to make it fine again :D
@OlegValter It's in a completely separate script at the moment. Which I did on purpose because I don't want to break the other one.
Not that my plan worked out so well :D
The thing is that it's not really going to be more generic. It'll still highly depends on the exact DOM. It'll just be lots of functions on the global scope :(
 
@Scratte that's our life, so 🤷‍♂️ I guess :)
@Scratte ahem ... VCS ... ahem ... IDE ... ahem ... branches ... ahem
 
khm?
I thought I couldn't put my code on GitHub, because it's not going to pass the linter test :)
 
3:28 PM
@Scratte sorry, joke fixed :)
 
@OlegValter I'm not sure I understand what you're trying to say here :P
 
@double-beep literally or jokingly? :)
 
Oleg is telling me to stop making the user script and start cleaning up my system, so I can install stuff on it and possibly make use of the linter and GitHub :)
 
@OlegValter jokingly
 
@double-beep thanks, just checking my sanity :)
 
3:31 PM
You don't have a self-diagnostic program?
Have any of you been effected by your system (monitor) not going to sleep while logged into Stack?
 
@Scratte that was it in action :)
@Scratte nope, 24/7 logged in, first time I hear about it
maybe the reason is something else?
 
@OlegValter It's bugging me.. for a month or so my system doesn't sleep the monitor.
I removed the user script that checks for deleted messages which sends a output to the console every 10 minutes, but that's not it.
It does if I do not start any programs at all though. On a fresh boot..
The thing is that I'm only logged into Stack. Not GitHub or email or anything else.
And I'm pretty sure it's not my IDE (notepad++) that is doing it.
^ did you notice how notepad++ is mentioned in the developer survey? :)
 
@Scratte hm, remind me, are you on windows?
@Scratte do you mean you made a comparison of logged-in / logged-out experience?
@Scratte it's still popular. And I use it for quick prototyping and launching in a browser of choice. But it's not an integrated developer environment :)
 
4:01 PM
@OlegValter Yes, I am. I might log out this evening, just to see if that makes a difference.
 
@Scratte have you tried powercfg energy command?
 
No. I didn't spend any time on it at all. I just noticed it and put off since I had a lot of other projects.
 
@Scratte try it - the generated report should show if any process is preventing the system from going to sleep
 
And if I need to actually try things, I'll have to spend time on it :) And it's not that I don't want to. It's just that it'll take time off something else.
 
powercfg sleepstudy should also have a lot of interesting info :)
 
4:04 PM
@OlegValter I'll do some studying on what it does then
 
@Scratte simply generates a power report - very human-readable (HTML)
 
But.. I think I need to finish this script first. Because I have a feeling that if I take a break off it, I'll never finish it.. and it'll always remain only on my system.
Every time I try to do something on this script, I need to work out how to do it first. It's become this huge project :( And I'm not even suppose to be working on it.. hmm..
 
4:16 PM
@Scratte it'll get better :)
@Scratte no rush - I suppose it only mildly bothers you?
 
4:34 PM
@OlegValter Not sure. It's starting to bug me now.. I'm always a mile away from finishing.
The thing is that I spent a lot of time on it already. If it only stays on my system, the time I spent is wasted, no?
 
5:18 PM
@Scratte you gained experience, though :)
I can't count how many projects that just hang out there and will probably never see the light of day
or that do and are just useless :) For example, I still have eyes set on redoing the editor toolkit from the ground up
 
@OlegValter Yes, but it's hobby experience :) Not something I'll need for the stuff I'm suppose to be doing :)
@OlegValter So.. you're just as crazy as I am? :P
But funny thing about the code I uploaded. I wanted to know if I could do the modalHighlight() in a smarter way :) Not I've added a different todo item instead :)
I noticed this oddity on Stack Design Colors "Our colors are each available in a number of stops from dark to light—900 being the darkest, and 025 or 050 being the lightest." Only, the page seems to default to system-mode.. meaning that it's opposite for me.
 
5:40 PM
hm?
 
hm! ;)
 
I'm not sure what you mean with "system-mode"
 
I think it finds out what my browser light/dark mode it set to, and then it set it to that.
There's a button on the top where you can toggle light/dark mode for the design page.
 
oh I see
 
 
2 hours later…
8:12 PM
@Scratte I dropped into chat looking for something amusing, and I found this typo. :)
 
@bad_coder Where's the typo in "That's true :)"?
 
8:25 PM
@Scratte lol it was the typo in the function before that: "you don't call getAnser"
 
@bad_coder It's code.. typos are OK in code ;)
 
@Scratte I found it funny and it made for a good laugh. I'm off o/
 
That's good :) I can make typos all day long ;)
 
I'll be back for more funny typos then :)
 
Most of my typos get caught in the compiler ;)
 

« first day (374 days earlier)      last day (1082 days later) »