Coder Social home page Coder Social logo

stackexchangescripts's People

Contributors

franklinyu avatar madarauchiha avatar mintobit avatar mjpieters avatar normalhuman avatar rchern avatar roadierich avatar shog9 avatar tms avatar zhangyijiang avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

stackexchangescripts's Issues

Create a better landing page for potential contributers and users

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.

Need a version without keyboard shortcuts

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!

The scripts should contain a link to their source

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

  • one link to the corresponding SE page
  • and one link to this repo

NB: if this issue is regarded as useful I'll be happy to create a PR.

SEChatModifications - make `/paste` not post the text automatically, or create an alternative to it

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

[SE Comment Link Helper] Links that match the link regex but don't match validSite lead to deadlock

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.

SECommentLinkHelper: Consider adding an API key, or at least *not break* when requests to the API are throttled.

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?

Each command could be self-documenting

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?

Link Helper should trim question titles to avoid breaking the link markdown

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.

Navigation trigger is indefinite

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?

Feature Request: /roll n d

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"

Opéra browser and SEChatModifications

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.

Post selection causes slight page jump

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.

SE Comment Link Helper turns apostrophes into escaped entities.

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&#39;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&#39;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

ChatExtension.notify getting stuck?

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.)

SE Comment Link Helper gobbles punctuation immediately following the link

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 ... :)

Notification window ~ Remove user name

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!

/jot doesn't work properly

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 ;)

Keyboard navigation need to keep currently selected message in view

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.

SEModifications – reputation audit link and Area 51

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.

Whisper Feature in SE Chat Rooms

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.

SECommentLinkHelper - Comments are silently trimmed if they exceed the max length

To reproduce:

  • Write a long comment with a / some bare Stack Exchange link(s), which is close to the maximum length limit.
  • Submit this comment.

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 !

Navigation includes ignored messages

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.

Proposition for new toggle-style highlight function

    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;
    },

SE Modifications extension redirects to ugly reputation page

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.

  • Auto Review Comments 1.1.2
  • SE Chat Modifications - Version: 1.0
  • SE Modifications - Version: 1.0
  • Stack Overflow Chat Favicon Notifier - Version: 1.0
  • stackoverflow-comment-reply - Version: 1.0

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.)

SECommentLinkHelper: Reference to other answer with the same comment

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.

Nicer /me

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.

Favicon modification with Opéra browser

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.