soscripted / sox

Stack Overflow Extras: a userscript for the Stack Exchange websites to add a bunch of optional toggle-able features
http://stackapps.com/q/6091/
MIT License
72 stars 15 forks source link

Side-by-side seems broken, edit reasons missing #363

Closed polyluxus closed 6 years ago

polyluxus commented 6 years ago

Installed Version: 2.3.0DEV Environment: Tampermonkey

Current Behaviour

It appears that if you're editing ~the first~ any answer and turn on SBS, it'll try to force everything next to each other. That results in strange overlaying of texts, buttons and other stuff. In the example pictured below, the long line seemingly continuing forever is the next answer.

unbenannt3

I am not sure if that is related, but the edit buttons (preset reasons) are missing when trying to edit.


SOX Errors logged to the browser console -- F12 (if available)

Uncaught TypeError: Cannot read property 'indexOf' of undefined
    at eval (userscript.html?id=8…c-55847fa7fae5:1281)
    at MutationObserver.eval (userscript.html?id=8…1c-55847fa7fae5:209)
    at MutationObserver.eval (userscript.html?id=8…1c-55847fa7fae5:156)

Steps to reproduce

Open a post, like Why don't heavy and light gases separate in the atmosphere? from above, switch to editing an answer, turn on SBS.


Features Enabled

["Appearance-addAuthorNameToInboxNotifications","Appearance-alignBadgesByClass","Appearance-answerTagsSearch","Appearance-colorAnswerer","Appearance-dragBounty","Appearance-isQuestionHot","Appearance-localTimestamps","Appearance-markEmployees","Appearance-metaChatBlogStackExchangeButton","Appearance-scrollToTop","Appearance-spoilerTip","Appearance-standOutDupeCloseMigrated","Appearance-topAnswers","Appearance-unspoil","Appearance-addTimelineAndRevisionLinks","Comments-autoShowCommentImages","Comments-commentReplies","Comments-commentShortcuts","Comments-confirmNavigateAway","Comments-copyCommentsLink","Comments-moveBounty","Comments-hiddenCommentsIndicator","Editing-addSBSBtn","Editing-editComment","Editing-editReasonTooltip","Editing-findAndReplace","Editing-kbdAndBullets","Editing-titleEditDiff","Editing-inlineEditorEverywhere","Editing-pasteImagesDirectly","Flags-flagOutcomeTime","Flags-flagPercentages","Flags-flagPercentageBar","Sidebar-hideHireMe","Sidebar-linkedToFrom","Sidebar-hotNetworkQuestionsFiltering","Chat-chatEasyAccess","Chat-replyToOwnChatMessages","Chat-renameChat","Voting-betterCSS","Voting-stickyVoteButtons","Voting-disableVoteButtons","Extras-alwaysShowImageUploadLinkBox","Extras-linkedPostsInline","Extras-parseCrossSiteLinks","Extras-quickAuthorInfo","Extras-shareLinksMarkdown","Extras-sortByBountyAmount","Extras-warnNotLoggedIn","Extras-showMetaReviewCount","Extras-copyCode","Extras-dailyReviewBar","Extras-showQuestionStateInSuggestedEditReviewQueue"]
shu8 commented 6 years ago

Thanks @polyluxus, I've reproduced it, working on a fix :)

shu8 commented 6 years ago

@polyluxus Please could you try installing dev 2.3.1 to see if this is fixed? :)

polyluxus commented 6 years ago

SBS works fine again.

The buttons are still gone on answers: unbenannt3

They appear on questions though: unbenannt2

New message on the console though:

SOX:  SOX does not currently support get author information for type: null
shu8 commented 6 years ago

@polyluxus just a few quick questions (I can't reproduce it :/)... Do the buttons appear before you click 'SBS'? Also, is that question open or on hold/closed? And could you check if they don't appear on other SE sites too please?


I think that error might be related to the 'quick author info' feature -- do you have the 'show details about post author' feature enabled? (last seen/registered details)

polyluxus commented 6 years ago

The buttons are not there at any time, but only on Chemistry.se (where I am a moderator - maybe that changes things).
I have checked some other sites and everything seems to be working fine.

The feature is enabled:

shu8 commented 6 years ago

@polyluxus Thanks, maybe it's something to do with being a mod :/ If you edit an answer in a new tab (not inline, by Ctrl+clicking the edit link), do the buttons show?

Do mods have something extra on inline answer edit forms?


I was wrong about the error message coming from the post author details feature. It's actually coming from the 'add author name to inbox notifications' feature -- there will just be a notification there that isn't a post/comment! (maybe suggested edit?)

polyluxus commented 6 years ago

If you edit an answer in a new tab, do the buttons show?

Yes they do.

Do mods have something extra on inline answer edit forms?

Not that I am aware of. It looks the same like on the on the sites.


... there will just be a notification there that isn't a post/comment! (maybe suggested edit?)

Yes, I have an 'answer edited' there; (and chat reply, chat invitation)

shu8 commented 6 years ago

Thanks, I'll look deeper into this, but I don't think I'll be able to till next week :/ sorry!

On Wed, 5 Sep 2018 at 13:10, Martin Schwarzer notifications@github.com wrote:

If you edit an answer in a new tab, do the buttons show?

Yes they do.

Do mods have something extra on inline answer edit forms?

Not that I am aware of. It looks the same like on the on the sites.

... there will just be a notification there that isn't a post/comment! (maybe suggested edit?)

Yes, I have an 'answer edited' there; (and chat reply, chat invitation)

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/soscripted/sox/issues/363#issuecomment-418707328, or mute the thread https://github.com/notifications/unsubscribe-auth/AIcNjpPCiF_cnt7R559K6E3l3GEKT98Nks5uX780gaJpZM4WZChV .

shu8 commented 6 years ago

@polyluxus Please could you install dev 2.3.4, and click 'enable debugging' in the SOX settings dialog, and paste the entire console contents here?

I have added some debug lines so I can try see what is happening!

polyluxus commented 6 years ago

I have the following output:

userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  undefined
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  Object
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  DEBUGGING SOX VERSION 2.3.4DEV
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  ----------------saved variables---------------------
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:68 SOX:  logging sox stored values --- 
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:68 SOX:  access token set
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:68 SOX:  SOX-addSBSBtn-settings
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:68 SOX:  {"sbsByDefault":false}
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:68 SOX:  SOX-lastVersionInstalled
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:68 SOX:  2.3.4DEV
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:68 SOX:  SOXSETTINGS
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:68 SOX:  ["Appearance-addAuthorNameToInboxNotifications","Appearance-alignBadgesByClass","Appearance-answerTagsSearch","Appearance-colorAnswerer","Appearance-dragBounty","Appearance-isQuestionHot","Appearance-localTimestamps","Appearance-markEmployees","Appearance-metaChatBlogStackExchangeButton","Appearance-scrollToTop","Appearance-spoilerTip","Appearance-standOutDupeCloseMigrated","Appearance-topAnswers","Appearance-unspoil","Appearance-addTimelineAndRevisionLinks","Comments-autoShowCommentImages","Comments-commentReplies","Comments-commentShortcuts","Comments-confirmNavigateAway","Comments-copyCommentsLink","Comments-moveBounty","Comments-hiddenCommentsIndicator","Editing-addSBSBtn","Editing-editComment","Editing-editReasonTooltip","Editing-findAndReplace","Editing-kbdAndBullets","Editing-titleEditDiff","Editing-inlineEditorEverywhere","Editing-pasteImagesDirectly","Flags-flagOutcomeTime","Flags-flagPercentages","Flags-flagPercentageBar","Sidebar-hideHireMe","Sidebar-linkedToFrom","Sidebar-hotNetworkQuestionsFiltering","Chat-chatEasyAccess","Chat-replyToOwnChatMessages","Chat-renameChat","Voting-betterCSS","Voting-stickyVoteButtons","Voting-disableVoteButtons","Extras-alwaysShowImageUploadLinkBox","Extras-linkedPostsInline","Extras-parseCrossSiteLinks","Extras-quickAuthorInfo","Extras-shareLinksMarkdown","Extras-sortByBountyAmount","Extras-warnNotLoggedIn","Extras-showMetaReviewCount","Extras-copyCode","Extras-dailyReviewBar","Extras-showQuestionStateInSuggestedEditReviewQueue"]
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:68 SOX:  downvotedPostsEditAlert
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:68 SOX:  {"95495":{"questionId":"93816","addedDate":1524667188139,"sitename":"chemistry","lastCheckedTime":1531828706900},"95672":{"questionId":"95530","addedDate":1524672739502,"sitename":"chemistry","lastCheckedTime":1531828707219}}
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:68 SOX:  editReasons
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:68 SOX:  [["formatting","Improved Formatting"],["spelling","Corrected Spelling"],["grammar","Fixed grammar"],["greetings","Removed thanks/greetings"],["title","Improved title"],["reference","Inserted human readable reference"]]
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:68 SOX:  SOX-debug
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:68 SOX:  true
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  ----------------end saved variables---------------------
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  init
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  Object
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  Object
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  initializing SOX dialog
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  injecting features into dialog
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  running addAuthorNameToInboxNotifications
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  observe: .inbox-dialog
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  running colorAnswerer
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  running dragBounty
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  observe: #start-bounty-popup
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  running isQuestionHot
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  running localTimestamps
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  running markEmployees
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  markEmployees user IDs
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  Array(9)
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  SOX Access Token: SET
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  running metaChatBlogStackExchangeButton
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  running scrollToTop
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  running spoilerTip
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  running standOutDupeCloseMigrated
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  observe: #user-tab-questions, #question-mini-list
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  running topAnswers
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  running unspoil
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  running addTimelineAndRevisionLinks
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  running autoShowCommentImages
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  running commentReplies
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  running commentShortcuts
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  running confirmNavigateAway
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  running copyCommentsLink
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  running moveBounty
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  running hiddenCommentsIndicator
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  running addSBSBtn
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  observe: #wmd-redo-button-61144
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  observe: #wmd-redo-button-61154
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  observe: #wmd-redo-button-61151
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  observe: #wmd-redo-button-61143
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  observe: #wmd-redo-button-61140
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  running editComment
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  running editReasonTooltip
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  running findAndReplace
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  running kbdAndBullets
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  running inlineEditorEverywhere
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  running pasteImagesDirectly
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  running flagOutcomeTime
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  running flagPercentages
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  running flagPercentageBar
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  running hideHireMe
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  running linkedToFrom
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  running hotNetworkQuestionsFiltering
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  running betterCSS
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  running stickyVoteButtons
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  running disableVoteButtons
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  running alwaysShowImageUploadLinkBox
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  observe: .image-upload
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  running linkedPostsInline
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  running parseCrossSiteLinks
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  running quickAuthorInfo
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  observe: .review-content
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  SOX Access Token: SET
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  Getting From API with URL: https://api.stackexchange.com/2.2/users/81;15095;19383;34347;35555?order=desc&sort=creation&site=chemistry&key=lL1S1jr2m*DRwOvXMPp26g((&access_token=zXI2Q5thZYKYToCO8E26cg))
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  SOX Access Token: SET
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  quickAuthorInfo answerer IDs
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  Object
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  quickAuthorInfo API call parameters
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  users
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  81;15095;19383;34347;35555
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  chemistry
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  running shareLinksMarkdown
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  observe: .share-tip
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  running sortByBountyAmount
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  running warnNotLoggedIn
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  running copyCode
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  observe: .new_comment
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  observe: textarea[id^="wmd-input"]
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  observe: .reviewable-post, .review-content
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  markEmployees returned data
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  Object
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  SOX editReasonTooltip URL: https://chemistry.stackexchange.com/posts/61154/revisions
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  SOX editReasonTooltip text: Improved Formatting
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  SOX editReasonTooltip: adding to tooltip
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  SOX editReasonTooltip: finished adding to tooltip
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  SOX editReasonTooltip: tooltip is now: Improved Formatting
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  SOX editReasonTooltip URL: https://chemistry.stackexchange.com/posts/61140/revisions
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  SOX editReasonTooltip text: edited title; Fixed grammar
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  SOX editReasonTooltip: adding to tooltip
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  SOX editReasonTooltip: finished adding to tooltip
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  SOX editReasonTooltip: tooltip is now: edited title; Fixed grammar
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  quickAuthorInfo api dump
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  Object
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  quickAuthorInfo userdetailsfromapi
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  Object
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  current post
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  w.fn.init(1)
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  quickAuthorInfo addLastSeen(): current id
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  34347
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  quickAuthorInfo addLastSeen(): userdetailscurrent id
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  Object
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  current post
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  w.fn.init(1)
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  quickAuthorInfo addLastSeen(): current id
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  19383
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  quickAuthorInfo addLastSeen(): userdetailscurrent id
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  Object
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  current post
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  w.fn.init(1)
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  quickAuthorInfo addLastSeen(): current id
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  15095
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  quickAuthorInfo addLastSeen(): userdetailscurrent id
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  Object
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  current post
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  w.fn.init(1)
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  quickAuthorInfo addLastSeen(): current id
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  81
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  quickAuthorInfo addLastSeen(): userdetailscurrent id
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  Object
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  current post
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  w.fn.init(1)
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  quickAuthorInfo addLastSeen(): current id
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  35555
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  quickAuthorInfo addLastSeen(): userdetailscurrent id
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  Object
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  editComment addCheckboxes() called
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  editComment addCheckboxes() $editCommentField:
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  w.fn.init(3)
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  editComment edit post button clicked
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  observe: #wmd-redo-button-61144
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  editComment addCheckboxes() called
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  editComment addCheckboxes() $editCommentField:
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  w.fn.init(4)
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  editComment addCheckboxes() adding boxes
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  sox-edit-window event triggered
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  fire: node: 
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  <form class=​"inline-post" action=​"/​posts/​61144/​edit-submit/​a5e198ed-adc3-4e64-bc4d-d60c2035510b" method=​"post" data-post-params=​"{"is_suggested_edit":​false,"post_type":​2,"owner":​2,"PostId":​61144}​">​…​</form>​
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  fire: node: 
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  <ul id=​"wmd-button-row-61144" class=​"wmd-button-row">​…​</ul>​
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  editComment addCheckboxes() called
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  editComment addCheckboxes() $editCommentField:
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  w.fn.init(4)
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  editComment addCheckboxes() adding boxes
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  sox-edit-window event triggered
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  fire: target: 
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  <textarea id=​"wmd-input-61144" class=​"wmd-input wz-element s-input bar0 processed" name=​"post-text" cols=​"92" rows=​"15" tabindex=​"81" data-wz-state=​"8" data-min-length>​…​</textarea>​
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  fire: node: 
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  <ul id=​"wmd-button-row-61144" class=​"wmd-button-row">​…​</ul>​
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  fire: target: 
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  <li class=​"wmd-button" id=​"wmd-redo-button-61144" title=​"Redo - Ctrl+Y" data-kbd-added=​"true">​…​</li>​
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  editComment addCheckboxes() called
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  editComment addCheckboxes() $editCommentField:
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  w.fn.init(4)
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  editComment addCheckboxes() adding boxes
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  SOX Access Token: SET
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  Getting From API with URL: https://api.stackexchange.com/2.2/questions/366272?order=desc&sort=creation&site=stats&key=lL1S1jr2m*DRwOvXMPp26g((&access_token=zXI2Q5thZYKYToCO8E26cg))
userscript.html?id=8f92fa41-3d36-4227-971c-55847fa7fae5:44 SOX:  SOX Access Token: SET

Let me know if you need anything more, I couldn't find if I can save the console output as a file, so userscript.html would always copy with...

shu8 commented 6 years ago

@polyluxus Thanks for that! I think I can see what's wrong, but I don't understand why it's happening.

I've just made a minor change to the debugging in dev 2.3.5. Please could you install it and do the following, (with debugging enabled still!):

  1. Go to a question on Chemistry.SE
  2. Open the console first, before you do anything
  3. Press Ctrl + L to clear the console (if it doesn't clear, it doesn't matter!)
  4. Click edit underneath a post
  5. Copy and paste the contents log here

I'm hoping to see something like:

image

Except it seems like your log will say Array(4). Please could you expand the Array(*) entry in the console by clicking on it and post a screenshot of it here if it doesn't show the expanded entry when you paste it? It would look something like this after expanding:

image

Sorry for having to do this again!

polyluxus commented 6 years ago

No worries, I'm happy that you take care of this, and if I can contribute a little, even better

It didn't say array, so I expanded the line that I guessed it could have been. Here is the screenshot with everything that was available.

image

shu8 commented 6 years ago

@polyluxus That's perfect, thanks!

Please could you see if it's now working in dev 2.3.6? :)

polyluxus commented 6 years ago

Working like a charm now. Thank you.

shu8 commented 6 years ago

Awesome! Thanks for helping me debug it!