rchern / stackexchangescripts Goto Github PK
View Code? Open in Web Editor NEWA collection of user scripts for StackExchange sites
Home Page: https://github.com/rchern/StackExchangeScripts/wiki/Install
A collection of user scripts for StackExchange sites
Home Page: https://github.com/rchern/StackExchangeScripts/wiki/Install
We can create a Github page for this project. The current README.md is passable as documentation for new users, but we should make it more user friendly with images and more content.
The landing page should also introduce potential contributors to the project, such as browser support profile and faqs, together with ways to contact us, preferably through chat.
Of course, this implies actually managing some kind of version numbers :)
https://gist.github.com/874058
(Note to self: try to get round to actually doing it myself)
Hi! This script's keyboard shortcuts are causing many conflicts with Hungarian keyboard layout (and maybe others, too). Sometimes, the entire chat field gets cleared when entering some characters like @
(AltGr+V) &
(AltGr+C) #
(AltGr+X) '
(Shift+1). You should really make a version without keyboard shortcuts!
This url appears to be broken:
http://or.sstatic.net/chat/img/leave-and-switch-icons.png
It's used on line 1563 of SEChatModifications.
Instead of a nice icon, a chat message now shows a white square on hover:
When looking into a script (eg with greasemonkey) I only see the assigned title and need to guess where it came from.
Ideally I'd suggest
NB: if this issue is regarded as useful I'll be happy to create a PR.
Was just testing this script out, and it is really useful. The way I envision myself using the clipboard, though, is a bit different than how it actually works, so I thought I'd leave a suggestion here.
I see myself using it mostly in a scenario where I'm typing a message, and halfway through it, I get another ping in the same room to which I'd like to reply before I post the message I was typing in. In that case, I'd grab the half-written message and copy it, reply to whatever I wanna reply, and then paste the image into the text box and keep writing it. Right now, however, if I /paste
it, it'll get automatically posted to the room.
I suggest either the /paste
command not automatically post the message to the room, or that we have a similar command that instead just pastes the message into the text box.
I mean, I can just select all and ctrl+x
the whole thing instead... but I thought it might be a good idea. Might be that this is a weird suggestion, though, in which case feel free to ignore it or tell me why It's a bad idea :P
Please change the SEAnswerWatcher.js to SEAnswerWatcher.user.js so that it is detected as a user script by GreaseKit for Safari.
Currently, mathoverflow.net is not listed in the validSites regex, but a link like https://mathoverflow.net/questions/1234567/title-slug
will still be matched by the links
regex.
This then leads to a situation where request()
calls are made that should lead to a submit()
call, but don't.
Either links should be pre-checked on matching validSites
or handler()
should just call submit()
when lock < 0
is true. The latter solved the locking issue for me.
From time to time comment posting fails for me, and my browser dev tools tell me that's because this was returned instead:
{"error_name":"throttle_violation","error_message":"too many requests from this IP, more requests available in <time-to-wait> seconds","error_id":502}
Can the script be updated to use an API key to receive a higher request rate, or at the very least give feedback (with a popup or similar) or just post the message without replacing the links?
Like discussed here:
http://meta.stackexchange.com/questions/231000
Existing comments are not parsed.
Existing comments, that have the title of the question only in the hover title, they sould be parsed and replaced by the text too
The timeline link is only valid on questions and should not be displayed on answers.
The target for the "link" link on answers is now the short-form URL, and the method used to generate the history link target isn't correctly parsing the new structure.
example post:
@yijiang | @drachenstern I agree
should show in the notification as:
@YiJiang: I agree
<-- if we take into account issue 33 as being implemented
alternately
@YiJiang: @drachenstern I agree
Currently mathoverflow.net is not listed in the validSites regex and so won't have titles expanded.
Issue #74 moved the comment helper to using protocol-relative URLs, but such URLs are explicitly excluded from becoming linked posts.
Now that the HTTPS rollout of the SE network is complete, can the comment helper be updated to use http://
at the start of URLs?
I created the /help command, but it's not really help, it just shows a list of commands.
I'm not sure how feasible it is, but it would be nice from the user's point of view to be able to do /help *command*
and get some useful feedback about what the command does, and how to use it. Ideally each command would 'provide' it's own help text.
EDIT Actually, looking through the code, it seems to me that ChatExtensions could be pretty easily extended for this... Thoughts?
Just come across this while adding the following link to a comment
https://stackoverflow.com/q/2622250/692942
When generating the comment it produces
[.NET - How to debug a DLL? ](//stackoverflow.com/q/2622250)
causing the link markdown to fail due to the trailing space in the title, for example, the following works fine;
[.NET - How to debug a DLL?](//stackoverflow.com/q/2622250)
Suggest that the title should be trimmed before being used to generate a markdown link in the comments.
If you press g
to begin navigation, the trigger is indefinite. Usually this isn't a problem, but if you were to accidentally hit g
, then wander off for a bit and come back, your next key press might be misinterpreted as an action. As there's no visual indication that this trigger has been set, the user has no way to know what the current state is. An option would be to show a visual indication, or perform a timeout of the trigger after a reasonable amount of time.
If either of those exist, my bad. Also, I wasn't sure how to cancel the g
after I pressed it. Is that currently possible?
Requested feature: Add a /roll command that simulates rolling n d-sided die.
D should be limited from 2 - 100, and n should be limited to 4 to prevent overt gaming.
Easter eggish behavior: for d of 2, use (for example) "flipped 4 coins, got HTTH"
Otherwise display "rolled 4 times, 4 4 4 4"
Its seem that Opéra browser has little trouble to handle the CTRL+UP shortcut to select the lines when you can still edit your previous messages.
It goes through all editable messages like you did not have the userscript and then pops the green selection area. Still if you try to reply to a message, it edits the last message instead.
I guess the CTRL key does not take priority over single up arrow key.
The border used for showing the selected question or answer adds to the height and/or width of the post body, causing the page to shift a little when jumping between posts. Ideally, this change in size should be compensated for when switching between border and non-border so that no shifting occurs.
As a related issue, there's no padding between the border and the text in the post, which tends to make my eyes sad. The border might be less "in the way" if its colour wasn't as contrasted against the page background.
Please see this problem description at Meta.StackOverflow
The input
For a code piece for a bibliography MWE, see this answer of mine
to http://meta.tex.stackexchange.com/a/3225/4012.
was turned into
For a code piece for a bibliography MWE, see this answer of mine
to [I've just been asked to write a minimal example, what is that?](http://meta.tex.stackexchange.com/a/3225).
resulting in
For a code piece for a bibliography MWE, see this answer of mine to I've just been asked to write a minimal example, what is that?.
I didn’t test it, but I’d assume similar problems occur with other escapable characters
The chat help messages are not showing correctly in the DMZ security room.
My guess would be bad colours since the hover reveals the commands
It seems that $.livequery.run()
gets called too early. If I remove that line, and call it manually, chat loads and works fine.
Windows 7 Home Premium x64
Chrome 10.0.648.6 dev
Something seems a bit stuck with ChatExtension.notify
.
If you call the /help
command multiple times, it gets progressively more transparent each time, then stops showing altogether (I imagine it is showing, but with opacity:0).
Note that if you let the delay run through to the end (without hitting escape or anything), there's no problem.
(I guess that I may be subverting notify by using it for /help
, where it was originally intended for error messages.)
I love http://stackapps.com/questions/2378/se-comment-link-helper!
is rendered as
I love SE Comment Link Helper
No exclamation mark!
It'd be great if this script could smartly recognize when the URL ends, even if it's directly followed by something other than a space.
Just fixing it for ?!,.:
would be awesome -- I wouldn't expect any other punctuation ensuing immediately. Well, perhaps something like proper Unicode em- and en-dashes, but that'd be getting kinda fancy. If we were to go there, I might want to make a case for the interrobang ‽
as well ... :)
If I'm the target of the notification, and my name comes as the first word in the message, remove my name from the displayed notification. If my name appears elsewhere in the notification, leave it alone.
For instance:
@drachenstern this is a notification to you!
would show up as
this is a notification to you!
whereas
this is a notification to @drachenstern!
would show up as
this is a notification to @drachenstern!
The command jot's the message, however when I /paste [id] it posts underfined/transcript/.... It's typo on line 603, insert = 'http://' + window.location.hostnmae + '/transcript/message/' + first;
. Hostnmae should be host ;)
You can have a status message on your chat profile. It would be really nice if I could change it easily, using a command like /status AFK
.
http://meta.stackoverflow.com/a/99586/162565
isn't converted at all.
(separate issue as requested in #61 (comment))
Currently SE Comment Link Helper
doesn't alter http scheme on links obtained from e.g. Share button under an answer.
Since StackOverflow and some other SE sites support HTTPS, I suggest using location.protocol
in the code instead.
When using Tim Stone's keyboard navigation, the top of the current .messages
container element is brought into view. The problem with this is that long monologues by a single user that is larger than the height of the screen could cause some very weird behaviours.
See this set of test messages starting here: http://chat.meta.stackoverflow.com/transcript/message/252913#252913
When you move to the bottom message, on my 900px high screen it is no longer possible to see the current message, and worse, the scroll position keeps jumping as the browser tries to keep the monologue top inside the viewport. It is not entirely impossible for this to happen in a real situation, where a single user posts many large images one after the other.
As you can see on
There is a problem with the UI and SEModification. In fact when you have one of your question edited by someone else, the 8 items menu seems to be pushing the gravatar outside the main frame.
Area 51 has no (audit)
link.
Area 51 Discussion Zone has one, but it's like a meta, rep is derived from the main site.
That should be done the opposite way, so Area 51 will have an (audit)
link, but Discussion Zone won't.
I thought this could be a cool feature in SE chat rooms, the ability to whisper other people in chat rooms (an example would be the way battle.net does whispering). This could work in the following fashion.
/ Example: /David Hello David, I am whispering you.
SEChatFaviconNotification.user.js, SEAnswerWatcher.js not seen in the readme file
To reproduce:
When this comment is submitted, and the resulting length of the comment text is above the 600 character maximum (due to question title insertions by the script), the comment text is trimmed at the end, silently, and the partial trimmed comment is submitted.
I think it should not simply chop off the end of the comment if it's too long and submit it anyway, but should instead let me manually fix / shorten it and submit.
Awesome script though !
When using ctrl + up/down to navigate, chat messages by ignored users are traversed. The green highlight vanishes into the void, but using right arrow to answer will still create an answer to the ignored post. After all ignored message have been navigated, the highlight reappears on the next visible message (as it should).
Navigation should skip ignored posts.
hl: function (match) {
match = $.makeArray(match).join(" ");
var selector;
if (isNumber(match)) {
selector = Selectors.getMessage(match);
} else {
selector = Selectors.getSignature(match);
}
var found = false;
for (var i = 0; i < highlightStore.items.length; i++) {
if(highlightStore.items[i] == match)
found = true;
}
if(found) {
highlightStore.remove(match);
$(selector).expire().removeClass("highlight");
}
else {
highlightStore.add(match);
$(selector).livequery(function () {
$(this).addClass("highlight");
});
}
return CommandState.SucceededDoClear;
},
I am not exactly sure that SEReputationAuditHelper is supposed to do, but I am getting some unexpected behaviour with the reputation pages.
I have the following extensions installed on Chrome.
When I leave them all on, but turn off SE Modifications, then I can visit http://skeptics.stackexchange.com/reputation, and I get a very basic HTML page showing my change in reputation, with no CSS and mainly formatted with <pre> tags.
Alternatively, I can visit http://skeptics.stackexchange.com/ and click on my reputation. I get redirected to http://skeptics.stackexchange.com/users/23/oddthinking?tab=reputation and get a pretty, themed display of my reputation.
If I turn on SE Modifications, and I try to re-follow my footsteps, the first page is the same. I re-try to visit the second page, I am redirected to the first page.
(This is low-priority. I am raising it now because I went to all the effort of creating a github account, I may as well get my money's worth.)
Windows 7 Home Premium 64 bit, Firefox 49.0.1
Has stopped working today.
Possible cause SE jQuery update?
In a comment I wanted to refer to other answer with the same comment
It's the same as gunr2171 answer stackoverflow.com/a/10818929
, but the script hanged link to the name of the question, which doesn't look correct:It's the same as gunr2171 answer How do I show a console output/window in a forms application?
May be, when there is a link to answer in a comment, script should insert " answer to question " before actual question name. Ideally it will be good to add name of answer's author.
During the big SSL changeover, Meta sites moved from meta.[site].stackexchange.com
to [site].meta.stackexchange.com
, see Why are per-site metas under the meta.stackexchange domain instead of their main site's domain?
But the validSites
regexp regards those links as invalid, only meta.[site].stackexchange.com
is sanctioned.
Can this be updated so we can link to per-site meta posts on all sites in the network?
When I hit j or k on my keyboard, the focus sometimes goes out of the visible part of the window. The page should scroll to match the bounding box.
I love how the Chat Modifications script adds /me functionality, but it would be nice if it were easier to tell actions from regular text, perhaps by prefacing the line with a couple of asterisks or another special character in addition to italicizing it. The italics are just too subtle.
Please document the SEKeyboardShortcuts.user.js
.
The favicon notification is not working well on Opéra browser.
Some times it does not show at all, sometimes it shows and never goes away.
I am having trouble to generate a good use case for both scenarios.
Anyway, I saw Opéra is using some kind on notification (folded corner) to indicate an activity in the tag. Maybe this function is messing with the script?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.