« first day    last day (1437 days later) » 
03:00 - 18:0018:00 - 20:00

6:01 PM
use filter !*7PiiPofIm9zBW4e_7IOD-h_DExn, then check if closed_date is defined
 
Does that also work if a Question has been closed, and then reopened?
 
good question
 
user12867493
How do you make these filters?
 
We'll just need to find a question that fits then :)
 
user12867493
6:03 PM
How can I check if closed_date is defined
 
if (closed_data) {do_stuff}
 
there is no null in javascript?
or is anything other than 0.. just true?
 
there is, but you don't need it
 
when we're really good at this, we need to create a sock-puppet script :)
So that when it's running, there's noway to accidentally violate any of the rules
 
user12867493
Why is this not working
 
user12867493
6:11 PM
    if (!canSeeDVs && closed_data) {
        displayCount('Delete', delete_count);
    }
 
user12867493
This works:
 
user12867493
    if (closed_data && !canSeeCVs) {
        displayCount('Reopen', open_count);
    }
 
can you update the gist with the code?
 
user12867493
Done
 
update the filter
 
user12867493
6:13 PM
Wow
 
user12867493
Done
 
user12867493
Works now
 
remove var url = window.location.href;
 
user12867493
why?
 
user12867493
I need that
 
6:17 PM
where?
Merge L36-L41 to one line
    $('#question-header').next().append(`<div class="grid--cell ws-nowrap mb8"><span class="fc-light mr2">${type} votes</span> ${variable}</div>`);
 
user12867493
Oh ok I got confused with site
 
user12867493
@double-beep doesn't work
 
user12867493
I'll be back in a bit
 
that works for me
and perhaps remove the function that's called only once.
see my comment
bah, your userscript breaks a lot of things for me
the flag can't be clicked, inbox dialog can't be closed....
 
How can it do that?
 
6:30 PM
not really sure, but when I disable it, everything's working
 
Fantastic :D.. I'm impressed that Daniil having never done this before worked it out in a day.
But to be able to break other scripts is.. something else :)
It's breaking my UI too :)
 
@Scratte you can't press flag button, etc.
?
 
Nope.. when I press the flag button, it forced the window to go to the top
 
congrats!
I've commented out the whole code, but the problem still exists
 
Huh?.. that seems strange
it's the include
 
6:42 PM
that's require
The problem is the userscript's metadata
 
but.. how can it work for Daniil ?!?
 
user12867493
My flag thing also doesn't work
 
user12867493
Um...
 
user12867493
@double-beep ideas?
 
5 mins ago, by double-beep
The problem is the userscript's metadata
 
user12867493
6:50 PM
What's with it?
 
the @require
 
user12867493
I thought I need jquery?
 
user12867493
@Scratte I am too :)
 
probably conflicts with SE's jQuery?
 
user12867493
Ah, it works without that line
 
6:53 PM
you probably don't need to load, since SE uses it
 
user12867493
Final testing:
 
I'm getting this strange error: r: questionid is not defined
 
user12867493
@Scratte Huh, probably your browser
 
user12867493
It gets it from SE directly
 
6:56 PM
I can use: var questionid = StackExchange.question.getQuestionId();
so I changed it to: window.location.pathname.split('/')[2];
 
user12867493
Ok
 
user12867493
Other than that any issues?
 
user12867493
You shouldn't be able to see CV's when you can see them anyway (same with delete votes)
 
no.. strangely the change doesn't work
 
user12867493
Reopen votes should be shown if a question is closed
 
6:58 PM
if I use the top one, I get: Cannot read property 'getQuestionId' of undefined
 
user12867493
@Scratte I think that's specific for you?
 
user12867493
@double-beep ^
 
user12867493
Works for me
 
yups..
just to put it so it's easier to read:
 
user12867493
0
Q: View close and delete votes with low reputation

Daniil Screenshot / Code Snippet About This script shows the number of current close/reopen votes and delete votes for a question. Works on all SE sites. If the question has License GNU Lesser General Public License v3.0 Free Download Install userscript Platform Install using a users...

 
6:59 PM
var questionid = StackExchange.question.getQuestionId();
gets me this error: Cannot read property 'getQuestionId' of undefined
var questionid = window.location.pathname.split('/')[2];
gets me this error: questionid is not defined
@Daniil Aren't you suppose to do it in a Question / Answer kind of way, or is it different on StackApps? :)
I found the error.. it was mine.
I used the line given by double-beep from the other script.. the i in questionid was capitalized
 
@Scratte you mean window.StackExchange.question.getQuestionId()?
@Daniil you probably need compatibility with stackapps.com/q/8382
 
7:16 PM
That doesn't work either :)
the only one that works is: var questionid = window.location.pathname.split('/')[2];
 
enter in the console StackExchange.question.getQuestionId();
 
but don't spend time on it. It was my mistake. I wasn't aware that I had used a capital I in questionId :)
that works.. it gives me the id
 
oh, you previously mentioned you had ideas for userscripts. Can you be more specific?
 
but if I use it in the userscript as `var questionid = StackExchange.question.getQuestionId();`
it will give me this error `Execution of script 'Close/Reopen/Delete Vote Retriever' failed! Cannot read property 'getQuestionId' of undefined`
 
console output for StackExchange.question.getQuestionId()
 
7:22 PM
console output is not a problem. It gives me the id :)
61944984 to be precise :)
About the ideas.. I have one, that's probably easy for you. I'll find it first. There is one on StackApps, but it's not doing what I think it should :)
with a link. I think I tried it, and it does hide away the right sidebar, but it does it all the time.
it would be nicer if one could just click it away and click it back in again :)
I even see my comment there on the post :D
 
which sidebar do you want to hide?
 
The entire right sidebar :)
 
user12867493
7:37 PM
I'm done for today
 
user12867493
Thanks @double-beep
 
user12867493
Bye
 
yw
o/
 
\o have fun in the real world :)
 
user12867493
:)
 
7:42 PM
on posts that have long codelines, it would be useful to be able to hide the sidebar when reading the code. And then click to unhide the sidebar after.
 
03:00 - 18:0018:00 - 20:00

« first day    last day (1437 days later) »