Giter Club home page Giter Club logo

sox's People

Contributors

ab-bruce avatar afrothundr3007730 avatar codygray avatar djdavid98 avatar double-beep avatar gitter-badger avatar j-f1 avatar mezmi avatar shu8 avatar sir-cumference avatar smartmanoj avatar somebody1234 avatar tuggyne avatar yut23 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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

sox's Issues

We need a reliable way to check for whether we're on chat

        if (CHAT || window.CHAT) {
            return 'chat';
        } else {
            if (StackExchange || window.StackExchange) {
                if (StackExchange.options.site.isMetaSite) {
                    return 'meta';
                }
            }
        }

is what we currently have on repo-system

But I always get CHAT is not defined, and only using window.CHAT doesn't always work.

Any ideas?

Favourited tags look odd on Gaming StackExchange

Installed Version: 1.0.2 | Environment: Chrome/Tampermonkey

Expected Behaviour

The tag is properly coloured & outlined:

This is can be achieved using:

a.post-tag {
    border-color: rgba(0,0,0,.3);
    background-color: rgb(195, 218, 250);
}
a.post-tag:before {
    border-color: inherit;
    background-color: inherit;
}

Actual Behaviour

Only the main block part of the tag is coloured and the border is dropped:

This is done by the following CSS:

element.style {
    border-width: 0px;
    background-color: rgb(195, 218, 250);
}

Error Logs: N/A

Steps to reproduce

Enable "Highlight only the favourite tags for favourite questions" and visit http://gaming.stackexchange.com/ while having some favourite tags.

SOX Dialog Feature Search

Installed Version: 1.0.3DEV | Environment: Tampermonkey/Chrome

How do you like this:

this

?

Thought I should ask before I add it to the settings dialog box...

Thoughts?

Feature Request: Make SOX settings panel behave similar to other panels in the topbar

Installed Version: 1.0.3 | Environment: Chrome/Tampermonkey

Expected Behaviour

While having a "native" panel open and hovering over a different "native" icon, that menu is opened automatically. I think for the menu to look properly integrated this behaviour should be retained in the script.

Actual Behaviour

Moving the mouse over the SOX icon in the header does nothing while keeping the last opened menu open.

Steps to reproduce

Feature request: colored signs on duplicate and closed questions should be more interesting

colorbox

I think it would be nice for the duplicate and closed labels to show the same text as in the dupe/close banner when hovered

marked as duplicate by Shadow Wizard 5 hours ago
closed as not constructive by Jon Ericson ♦ Mar 19 '13 at 17:11

etc, and for the duplicate label itself to be a link to the question of which this one is a duplicate. Or would loading each question that has a label and searching for that data be more work than it's worth?

Favourite tag colors on SO are a bit hard on the eyes

Installed Version: 1.0.3 | Environment: Chrome/Tampermonkey

Expected Behavior

The tags should have an easily legible background & text color combination.

Actual Behavior

The tags are slightly hard to read due to lack of enough contrast. According to contrast-ratio the colors used are considered acceptable if they are above 18pt in size, however, tags have a font-size of 12px on SO.

v1.0.4

v1.0.4

  • Update resource URLs to use RawGit CDN
  • Tested on Chrome
  • Tested on Firefox
  • All features working
  • No errors in console

Displaying linked content inline fails

Installed Version: 1.0.3 DEV | Environment: Chrome/Tampermonkey

Expected Behavior

Display linked content inline when clicking the expansion button

Actual Behavior

It doesn't work. 👎 location protocol defaults to http, this causes errors when viewing the site over https and the URL being requested does not exists. Perhaps switching to the API would be better.

That's no employee!

Installed Version: 1.0.3DEV | Environment: Chrome/Tampermonkey

Go to http://stackoverflow.com/questions/5223/length-of-a-javascript-object-that-is-associative-array. Scroll down... then some more. Note how nearly every name has a SO icon beside it, marking nearly every user as employee.

Expected Behavior

Mark only employees as such.

Actual Behavior

Marking (nearly) every username on http://stackoverflow.com/questions/5223/length-of-a-javascript-object-that-is-associative-array as an employee, when most / all of them aren't.

Error Logs

None.

Steps to reproduce

Loaded http://stackoverflow.com/questions/5223/length-of-a-javascript-object-that-is-associative-array with the "Mark employees with SO icon" option. Doesn't seem to occur with (m)any? other pages.

Canned comment view/edit/delete dialog opens in a weird place

Installed Version: 1.0.4 DEV | Environment: Windows 7/Firefox/GreaseMonkey

Expected Behavior

Alt-O opens pre-defined comment view/edit/delete dialog .

Actual Behavior
Dialog opens at a semi-sensible place for some page zooms, but:

  • At larger zoom (which I usually use): Dialog opens at top of page, which is usually completely outside the visible area when page is scrolled down to comments section. I initially thought Alt-O did not work at all, because I couldn't see the dialog!
  • At smaller zoom: Dialog extends horizontally beyond the screen; more so the smaller the zoom is.

(Also, would expect pressing Alt-O again to toggle off that dialog. )

Error Logs

Nothing of note.

Steps to reproduce
Alt-O in comment textbox. Zoom in and out to see effects.

Two-directional arrows for links to here that are also linked from here

Wthout having read the source, my guess is that the "Linked-arrow-direction-generator" function that serves to supply the icons in the "Linked" section uses a process of elimination: the function looks for links that are both in the "Linked" section and on this page, and considers "Linked" entries not on this page to be links-to-here.
If that is indeed the implementation, then this feature-request may or may not warrant a rewrite of that.

Question A links to question B. Question B links to question A. The Lemmings arrows in the "Linked" section for question A will likely show that question B is linked by here and similarly for question B, for the reasons noted in the previous paragraph.

This is, as I've just demonstrated, rather confusing. Could SOX use some form of black magic to detect this recursion and show both arrows in this case?

"Add bunch of features to editor" option cannot be disabled on question pages

Installed Version: 1.0.2 | Environment: Chrome/Tampermonkey

Expected Behavior

When I open the settings dialog while I'm on a question's page, there should be a checkbox in front of the "Add a bunch of features to the standard markdown editor (autocorrect, find+replace, Ace editor, and more!)" option that I can un-check and then save my settings. From what I've seen, this only seems to happen on question pages.

Actual Behavior

There is no checkbox.

Error Logs

Uncaught ReferenceError: ace is not defined (anonymous function) @ ext-language_tools.js:1
Uncaught ReferenceError: ace is not defined (anonymous function) @ theme-github.js:1
Uncaught ReferenceError: ace is not defined (anonymous function) @ mode-javascript.js:1
Uncaught ReferenceError: ace is not defined (anonymous function) @ javascript.js:1

Steps to reproduce

Visit any question page with the aforementioned option enabled and witness the checkbox's ascension from its original place.

Fixed Topbar breaks askubuntu

Expected Behavior

The navbar should be fixed to the top of the screen in the correct position and the ubuntu related links should be placed somewhere without blocking content.

Actual Behavior

The navbar is pushed to the right and not aligned correctly.

The sidebar collection of links that were cloned from the top are now blocking page content when viewing on small screens.

ask-ubuntu-jacked

Suggested Fix

I would suggest moving the cloned ubuntu related links directly below the fixed top bar, like so:
ask-ubuntu-unjacked

'Get access token?' link broken

Installed Version: v1.0.3 | Environment: Chrome/Tampermonkey Version 49.0.2623.110 m

Expected Behavior

Link should work on all stack exchange sites, or guide the user to meta.stackexchange.com to get their access token

Actual Behavior

Clicking a link while not on http://meta.stackexchange.com/ throws an error.

Error Logs

VM2649:3464 Uncaught channelUrl must be under the current domain
r@ VM2649:3464
(anonymous function) @ VM2649:3740
n.event.dispatch @ VM2649:8
r.handle @ VM2649:8

Steps to reproduce

Visit http://stackoverflow.com/
Open up the settings
Click on 'Get access token?'

Noticed a few bugs/minor issues

  • #1 Misspelling in the Editing section:

  • #2 The Always show the 'Link from the web' box when uploading an image option seems to be broken

  • #3 When changing a tag's favourite/ignored/neutral status using the icon in the tag info tool tip, the highlights are reset back to the defaults (same thing happens when going to a different page, which could be related to the new navigation)

  • #4 Clicking a tag name in a comment seems to do nothing despite the icon and link formatting

  • #5 The Parse titles to links cross-SE-sites option can make posts illegible (probably should only activate when the link text is just the start of the URL itself)

Advanced Editor issues

Expected Behavior

  • Find and Replace button should toggle the toolbar.
  • Insert Code button dialog should have some content.

Actual Behavior

As of right now it just keeps adding toolbars.
ace-editor-fr-fail

The Insert Code dialog is also having issues, it is being displayed, it just doesn't have any content.
ace-editor-insert-fail

Steps to reproduce

  • Click the Find & Replace button a few times.
  • Open the insert code dialog.

"Linked" arrows should be deterministic

Installed Version: 1.0.4DEV | Environment: Tampermonkey/Chrome

Feature request: arrow direction shouldn't be chosen by cryptographically secure RNG

Expected Behavior

"Linked" arrows shouldn't imply a link in a certain direction when there is none. This isn't a side effect of #40 as it only seems to happen when there's a link in exactly one direction.

Actual Behavior

magic

I linked to the "Linked" quesition; the "Linked" question doesn't link here.

Error Logs

None.

Steps to reproduce

The example I have on hand is http://meta.stackexchange.com/q/278270, but it seems to happen with a lot of questions all over the SE network.

Unfortunately, it's not fully clear to me how to reproduce this specifically -- I've only noticed from browsing SE a lot and reading linked questions that it sometimes doesn't match up. (It's a heisenbug -- try to quantify it and it runs away.)

Fixed-position top-bar nowhere to be found on Skeptics.SE

Installed Version: 1.0.3DEV | Environment: Tampermonkey/Chrome

Expected Behavior

Topbar position on Skeptics.SE should reflect that of all other sites, rather than hiding itself.

Actual Behavior

Only on Skeptics.SE, if the Fix topbar position option is checked, then the top-bar will not display at all and you will need to uncheck the option from another page.

part1

If the option is unchecked then it will display as usual, anchored annoyingly to the top of the page.
part2

Error Logs

I don't think this is relevant, but I'll add it anyways.

hereugo

Steps to reproduce

Loaded http://skeptics.stackexchange.com today. Not sure if this bug was introduced recently, since I never noticed it before...?

Unchecking pre-defined edit comment options (checkboxes) doesn't remove semicolon

Installed Version: 1.0.3 | Environment: Firefox/Greasemonkey

Expected Behavior

When checking a second comment option, a semicolon is automatically added after comment from the first option. If you then uncheck the second option, the comment gets removed, and you would also expect the semicolon delimiter to be removed as well.

Actual Behavior

When unchecking the second option, the comment gets removed, but not the semicolon delimiter. If you keep checking and unchecking further options, the semicolons just pile up.

Steps to reproduce

  1. Check one option.
  2. Check a second one. Then uncheck that second one. Semicolon is still there.
    Repeat step 2; semicolons pile up.

Tabular reviewer stats should really get in shape

Installed Version: 1.0.4DEV | Environment: Tampermonkey/Chrome

Tabular reviewer stats aren't very tabular.

Expected Behavior

Like this:

Actual Behavior

Like this:

stats

Error Logs

yay, error logs, for once.

SOX error: There was an error loading the feature "Appearance-tabularReviewerStats". Please raise an issue on GitHub, and copy the following error log.
VM541:3856 TypeError: Cannot read property '0' of null(…)
content.js:9 content: detected DOMContentLoaded 208efcd9-1c08-4ee5-9407-88132c3f25c3
https://api.stackexchange.com/2.2/posts/undefined?order=desc&sort=activity&…dnSEBb8&key=)2kXF9IR5OHnfGRPDahCVg((&access_token=XXXXXXXX)) Failed to load resource: the server responded with a status of 400 (Bad Request)
https://api.stackexchange.com/2.2/posts/undefined?order=desc&sort=activity&…dnSEBb8&key=)2kXF9IR5OHnfGRPDahCVg((&access_token=XXXXXXXX)) Failed to load resource: the server responded with a status of 400 (Bad Request)

I'm not actually sure if I accurately XXX'd the XXX-worthy content in there (pls no hax).

Steps to reproduce

Loaded a page like http://stackoverflow.com/review/suggested-edits/11980890, and clicked "more".

SOX has now completely stopped working

SOX has now stopped working completely. I don't know whether it's because the changes you made to make it compatible with SOUP.

Clues:

  1. Any changes made in the SOX config dialog do not stick.
  2. If I reload the browser page I see a brief flash of a blue diamond in the top bar, which is then covered by the SOX cogwheels.
  3. Yesterday, SOX was working. The blue diamond was then to the right of the cogwheeels. Later it moved to the left. Now it seems to be underneath.

I've tried all 3 versions of SOX.

Browser Firefox latest on Windows.

SOUP 1.54.4

Browser has been restarted.

Broken SOX Dialog

Installed Version: 1.0.3DEV | Environment: Tampermonkey/Chrome

The SOX settings dialog is showing two scrollbars and looks pretty awful.

twobars

The features div has an scroll overflow which is causing the second scroll bar and a few other CSS adjustments are needed.

"Linked" arrows should be arrows, not Lemmings

Installed Version: 1.0.3DEV | Environment: Tampermonkey/Chrome

TL;DR the arrows in the Linked section of a question, borne of here, seem to all point "here" rather than reflect reality.

Expected Behavior

"Linked-from-here" arrows point NE, "away" from the question, while "Linked-to-here" arrows point SW, "towards" the question.

Actual Behavior

All the arrows for all "Linked" sections on all sites on the SE network point "towards" the question regardless of where the link is actually. The tooltips, however, are correct, it's just the arrow icons themselves that all point the same wrong direction... kinda like lemmings :D.

Error Logs

Nope. But you can have an example that should definitely point "away" from the question:

Steps to reproduce

Load a question that links or is linked to by another question on the same site.

v1.0.3

v1.0.3 @soscripted/admins

  • Resource URLs are pointing to RawGit CDN
  • Tested on supported browsers
  • Verify all features working correctly
  • Check console for errors
  • Update screenshots in the Readme
  • Update features list in Features Wiki (update old descriptions)
  • Update Contributing Wiki to reflect the latest structure
  • Update Contributing Wiki to reflect new helper functions

Toggle Vote Counts

@shu8

If this doesn't get implemented by SO, I think we should go ahead and add it to SOX.

https://meta.stackoverflow.com/questions/320620/can-we-toggle-off-the-score-breakdown-without-refreshing-page

See my answer on that post.

This is how it SHOULD be:
vote-toggle

// ==UserScript==
// @name         Toggle Vote Count
// @version      1.0
// @author       ᴉʞuǝ
// @namespace    https://github.com/enki-code
// @match        *://*.stackoverflow.com/questions/*
// @grant        none
// ==/UserScript==
/* jshint -W097 */
'use strict';
(function($) {
    $(document).ajaxComplete(function(event, request, settings) {
        if(settings.url.indexOf('vote-counts') > -1){
            $('.vote-count-post div').one('click', function(){
                var $vote = $(this).parent(),
                    upvotes = +$vote.find('div:first-child').text(),
                    downvotes = +$vote.find('div:nth-child(3)').text(),
                    score = Math.abs(upvotes) - Math.abs(downvotes);

                var $score = $('<span/>', {
                    text: score,
                    class: 'vote-count-post',
                    title: 'View upvote and downvote totals',
                    style: 'cursor: pointer;',
                    itemprop: 'upvoteCount'
                });

                $vote.replaceWith($score);
                StackExchange.vote.bindFetchVoteCounts();
            });
        }
    });
}(jQuery));

Example screenshot on README is not as cool as it could be

Installed Version: 1.0.4DEV | Environment: Chrome/Tampermonkey

The screenshot on the README's really out of date. I'd provide one right here to be a nice person, but at least one of the developers has Mac that takes pretty screenshots with shadowing and stuff.

Expected Behavior

The README should have a screenshot that shows the beautiful amazingness that is the current, searchable, lexicographically-sorted options box.

Actual Behavior

The screenshot on the README's like, 10 millenia old. Show off your cool project!

Reply-to-comment button does nothing

Installed Version: 1.0.4 DEV | Windows 7/GreaseMonkey/Firefox

Expected Behavior

Clicking reply-to-comment button should open comment dialog and start comment with "@username".

Actual Behavior

Clicking reply-to-comment has no detectable effect.

Error Logs

TypeError: $(...).parents(...).find(...).first(...).find(...).attr(...) is undefined sox.features.js:576:34

Steps to reproduce

Just clicking the thing.

Auto-Inject Version number in new Issues

Installed Version: 1.0.3 DEV | Environment: Chrome/Tampermonkey

Expected Behavior

When creating an issue on GitHub, SOX should inject the currently installed version number into the post.

Actual Behavior

The version number is being injected, but only after a page refresh. I suspect a timing issue.

Related Code

var SOX_VERSION = '1.0.3 DEV';

// auto-inject version number into new GitHub issues
if (location.hostname.indexOf('github.com') > -1 ) {
    var $issue = $('#issue_body'),
        issueText = $issue.text();

    issueText = issueText.replace('1.X.X', SOX_VERSION);
    $issue.text(issueText);

    // on GitHub, stop execution of the rest of the script.
    return;
}

Meta Question Alert function fails

Installed Version: 1.0.3 DEV | Environment: Chrome/Tampermonkey

Expected Behavior

The new meta question alert diamond to display only on main sites that have a child meta site.

Actual Behavior

Displays on all main sites and is throwing an error on Stackapps because it does not have a meta site.

Error Logs

TypeError: Cannot read property 'split' of undefined(…)

Favourite tags highlight more than I bargained for

Installed Version: 1.0.4DEV | Environment: Tampermonkey/Chrome

This is the corollary to #48: I don't have any wildcards* in my favourite tags, but it's still too greedy.

Expected Behavior

Only favourite-highlight and star tags that I've actually favourited.

Actual Behavior

Like this:

greedy2

[exception-handling] isn't in my favourite tags, but a lot of questions with that tag also have [python-3.x]

Or this:

greedy

[racket-faq] isn't in my favourite tags (and no longer exists), but [racket] is.

Error Logs

None.

Steps to reproduce

It's... not really clear what I did to reproduce this exactly; I just screenshotted the ocassions I noted. It doesn't happen all the time, and it's far from an urgent problem, but I thought I'd introduce it anyways.

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.