« first day (348 days earlier)      last day (1076 days later) » 

12:00 AM
@OlegValter No, I went to the website. I saw a lot of pale orange/pink.. not a lot of words. Just a tiny line in the middle.. with space enough for a pool and a car park :)
And I feel it's a waste of my time to go to such sites.
 
@Scratte ah, you mean the presentation website, sorry, didn't initially grasp what you were talking about ::) Yeah, that's kinda a modern design trend - dilute the amount of useful information per pixel :)
 
12:17 AM
@OlegValter Yes. That. I find it to be.. wasteful. But it's probably good for people with poor eyesight. Perhaps set the font to 24 too :D
 
@Scratte people with poor eyesight need bigger font sizes, not more empty space :) appx. -6 here speaking - no, the space doesn't help :)
 
Maybe it's for people that don't live in castles, but really really want to. They can have all the space they want on a web-page.
 
 
6 hours later…
6:19 AM
o/
 
7:14 AM
\o
 
 
1 hour later…
8:29 AM
@OlegValter Can't we use the 66 gold badges to just make our own user card? Or is it easier to copy'n'paste the node from the "real" post?
I'm so sorry.. I didn't mean to interrupt you. I thought you were offline.
 
@Scratte from what??
 
Work? :) Or something important :)
 
@Scratte you wouldn't get me even if you tried when I don't want to distract myself :) No worries, I am good, trying to slowly shift my schedule closer to daylight
@Scratte I may be a bit tired, though - I can't get what you are talking about, can you elaborate?
 
@OlegValter The "https://stackoverflow.com/review/user-info/queue-numer/userid" (that's the 66 gold badges :-) is used by Stack to just insert into another page. Can't one just do that too?
Though I'm not sure if I want to do that, because it would be nice to have the time of posting as well.
...on the same, but different topic: How do I take the radio-button box and make each radio a button that works individually with just a push to account for picking it and then pressing submit?
Without testing that the push works..? Since I'd like to not get review suspended in the process :D
What I mean to ask here isn't "What is the resulting code", but "How do I go about finding out?" Which parts of the page is important? Do I make a "form submit" block?
Could I just make them all "<button class="js-action-button" type="button" value="X">Name</button>" and that will work? :) Where X is the number that matches the action?
 
8:55 AM
@Scratte yup, of course - get the response, set the HTML with innerHTML (btw, this is one of the valid use cases)
@Scratte then, after the additions to DOM are parsed, go ahead and add the time of posting :)
@Scratte "push to account"? Nevermind, figured
 
@OlegValter Nice. But I think perhaps it's better to steal it from the post. Then it would be possible to get the "answered 8 hours ago" too :)
@OlegValter Yes, my bad phrasing. "Push to say which one I picked" :)
 
@Scratte hm, their submit button action is controlled with JS, so I think the script of the page should be analyzed first
@Scratte funny that this is the second major boasting point of the team involved with the changes that you want to undo :)
 
I'm thinking that they didn't change the JavaScript from before. Since the Skip button is insta-action :)
@OlegValter I want to undo it.. because it's really bad :D
 
@Scratte I'd use the term "click" to avoid confusion :) Although I understand the "push a button" phrasing, it might be difficult to parse (I guess only programmers can get confused by "push" :))
 
@OlegValter That's a very good point. I had a momentary brain-disk-error and no "click" found in brain-cache :D
Perhaps I think I click a radio, but I push a button.. since in the real world clicking a button doesn't make sense :D
 
9:18 AM
I was thinking something like:
<div id="RealButtons">
  <button class="s-btn s-s-btn__primary js-action-button" type="button" value="2">Approve</button>
  <button class="s-btn s-s-btn__primary js-action-button" type="button" value="5">Improve edit</button>
  <button class="s-btn s-s-btn__primary js-action-button" type="button" value="19">Reject and edit</button>
  <button class="s-btn s-s-btn__primary js-action-button" type="button" value="3">Reject</button>
  <button class="s-btn s-s-btn__primary js-action-button" type="button" value="1">Skip</button>
But I think I might have gotten the classes wrong because they're sort of invisible :)
 
@Scratte well, "push a button" comes naturally unless you do a lot of user interfaces :)
@Scratte as far as I know, "clicking a radio" is rarely a productive occupation in real world too :)
 
@OlegValter Hehe.. good point :)
 
@Scratte too many s- in the primary class :)
 
Yes, thanks.. how they're blue :)
..but I do not care to press any of them :O
..not even the ".. and Edit" ones which I'd just remove anyway, since I have no use for them
 
 
1 hour later…
10:51 AM
Testing on review/suggested-edits/28906553 pressing "Reject" gives me this. Yes! :)
However.. refreshing gives me You are not able to review this item.. ?!?
review/suggested-edits/28906618 is another audit. HA! It's not possible to review an audit if one didn't do it the first time. There's no refresh on an audit :D So this was unrelated to my buttons.
That is however a change that Stack has made without disclosure to the users. That has always been possible before.
 
 
1 hour later…
12:20 PM
Progress so far :)
 
updated version with a couple of mini-improvements:
^ since SE apparently can't fix this (reported before)
^ small debugging dynamically generated status message for devtools
@Scratte congrats :)
@Scratte LGTM
 
What is LGTM?
@OlegValter What is this fixing? The small space between the two columns?
Oh.. that's a "Looks Good To Me"? :)
I still need to steal borrow some more code from your script :)
Actually.. I did move some stuff around a while ago. Perhaps I still have that somewhere.
 
12:50 PM
@Scratte no, the semi-transparent incorrect diff background :)
^ because weirdly enough, only tag wiki/excerpt suggested edit reviews have this problem
@Scratte yup, the one and only :)
@Scratte go wild :) Shall I give you the updated TS? It is obviously cleaner than the transpiled version
 
1:04 PM
@Scratte btw, the space between columns is adjusted because the informational sidebar slightly pushes the right column to the left - so I understand why you thought the fix is related to the gap :)
 
@OlegValter I see. That's why I've never seen it. I'll try to diff your changes later and work it in :)
@OlegValter I have no idea what the TS really and how to transpile it. But at present, I'm trying to work out what you already did. :D
I'm trying to make more text part of the title. After the "learn more" :)
 
1:57 PM
@Yatin - come on, "onlyness" is beautiful :)
 
2:42 PM
Moved the post type to use unused real estate and get in one's face! :)
 
3:00 PM
@Scratte the font size is too much, I think :) The justifications can get really long, the limit is quite hight as far as I recall
 
@OlegValter I'm using an h1 because else it jumps up like the "Learn more"
Unless you're talking about the Summary
 
@Scratte I am talking about the summary, yes
besides, given the "ability" of most people to write coherent summaries, I find the latter pretty useless - easier to visually parse the edit most of the time...
 
@OlegValter That's an easy fix. I just set it to "200%". I like it like this :) It cannot be missed :D
I put it into "Your block" as well, so I added a few things to the config
 
@OlegValter Hehe :p
 
3:43 PM
@Yatin btw, are you competing with Peter for the crown of the editor-in-chief of SO? At least in terms of MSO :) No issues, just noticed you are very active editing posts
@Scratte I know, just warning you of the longer ones, they will likely look shitty at this size :) Really don't know, by now I am so disappointed in summaries I see that I now think SE did the right thing by making it less noticeable. Every time I see "fixed gremmar", something in my soul dies
 
4:02 PM
@OlegValter What if that's all they did? :)
 
4:33 PM
@Scratte spelling :) On a more serious note: most likely it is a bad edit suggestion
 
@OlegValter I'm struggling with HTMLCollections.. they are evil :)
 
@Scratte they are, shall we say, confused :)
 
var choices = document.querySelector(".js-diff-choices.s-btn-group");
var productList = choices.children;
console.log(productList);
productList.forEach(e => console.log(e));

Uncaught TypeError: productList.forEach is not a function <-- EVIL! :)
 
@Scratte HTMLCollection doesn't, unfortunately, have a forEach method (or any array methods at all), it is an array-like object :) But I am sure you know that
@Scratte btw, why not just do querySelectorAll + .js-diff-choices.s-btn-group > * to select all immediate children into a NodeList?
^ this one, thankfully, does have array methods :)
 
I already have the choices node. I need it :)
And I had no idea one could to a (.classname > *) :O
..but I need to move the choices element to a new place and add some padding to its elements.
 
4:41 PM
@Scratte well, your choice :) But I'd do the latter
Btw, fun fact of the day, this is how HTMLCollection is described by the spec:
> HTMLCollection is a historical artifact we cannot rid the web of. While developers are of course welcome to keep using it, new API standard designers ought not to use it (use sequence<T> in IDL instead).
 
so basically it's the "children" that's the problem for me?
 
@Scratte you can refer to it via parentElement property on any of the children :)
@Scratte yup
 
Ahh.. so then there must be some other way. I think I only need one of them, to be honest.
 
@Scratte one of what exactly? :) The children?
 
Yes :)
 
4:46 PM
firstElementChild should do the trick just about right then :)
^ on the original element
or children[0], or children.item(0) - not sure why did you want to iterate them then :)
 
Thanks. No errors now :)
Heh.. when I do it directly in the devtools, the padding works.
Perhaps one isn't enough.
There's a .s-btn.s-btn__xs that has a "padding: .6em;" Which I'm no fan of.
here we go.. it works! it works! :)
choices.firstElementChild.style.padding = "10px"; // the larger padding on one takes precedence
 
5:07 PM
Now I need to fetch user card from the original post.
Do I use $.ajax("https://...").done(function(data) {}) for that?
 
5:39 PM
@Scratte you can also always add !important to force the override :)
@Scratte I don't like using jQuery, I will be biased :)
^ you can use the modern native API: fetch
^ works pretty much the same way, similar syntax
^ of the promise-based version of ajax, that is
 
6:40 PM
@OlegValter Oh, so that's not enough. It also need a Promise() ?
 
6:58 PM
I am already using jQuery $(document).ajaxStop(function() {...} because I have to tell the userscript to wait until the requests are complete :(
 
7:51 PM
Great room too;
Scripting the future of Stack Overflow;
 
8:39 PM
Ahh.. hello :)
I am not very good at JavaScript. But I try :)
 

« first day (348 days earlier)      last day (1076 days later) »