Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Compatibility issues with SOUP #361

Closed
IzzySoft opened this issue Aug 23, 2018 · 20 comments
Closed

Compatibility issues with SOUP #361

IzzySoft opened this issue Aug 23, 2018 · 20 comments

Comments

@IzzySoft
Copy link

This is just a follow-up from Restore previous variant of tag popup so we don't flood the comments there and draw the wrath of the mods on our heads 😉

Installed Version: 2.2.33 DEV Environment: undefined

Current Behaviour

Currently, the script seems to collide with some other SE scripts. The ones I use:

All in all: A great many features SOX offers. I'll have to disable half of them – some for collision reasons, some for "don't need / don't want", and others for "already there" (e.g. the diamond for meta questions – if you're a mod it's already there). If it's not too much trouble, some things I'd wish for:

  • making some features available separately (own scripts for parts) – but then, there are so many useful items in the list that, if you group the "outsources" I'd have to install them all 🤣
  • making the access token optional (i.e. only required for use of the functions needing it):
    • display a dialog at first start offering to a) grab a token or b) disable all features needing that
    • offering a way to simplify getting-token plus enabling-all-tokenized in one step (so one doesn't have to search for what to enable), next to just-get-token (and chose yourself what to enable)

Other things that don't seem to work (could be collisions again):

  • I see no reply-links next to comments
  • I don't see the edit comment boxes
  • Maybe more, but it's too much to be checked in half an hour 😉

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

None.


Steps to reproduce


Features Enabled

Not up-to-date anymore, as I toggled some while writing this post:

["Appearance-addAuthorNameToInboxNotifications","Appearance-alignBadgesByClass","Appearance-answerTagsSearch","Appearance-colorAnswerer","Appearance-displayName","Appearance-dragBounty","Appearance-highlightQuestions","Appearance-isQuestionHot","Appearance-localTimestamps","Appearance-markEmployees","Appearance-metaChatBlogStackExchangeButton","Appearance-scrollToTop","Appearance-spoilerTip","Appearance-standOutDupeCloseMigrated","Appearance-tabularReviewerStats","Appearance-topAnswers","Appearance-unspoil","Appearance-addTimelineAndRevisionLinks","Appearance-showTagWikiLinkOnTagPopup","Comments-commentReplies","Comments-confirmNavigateAway","Comments-copyCommentsLink","Comments-moveBounty","Comments-showCommentScores","Comments-hiddenCommentsIndicator","Comments-onlyShowCommentActionsOnHover","Editing-editComment","Editing-editReasonTooltip","Editing-findAndReplace","Editing-titleEditDiff","Editing-inlineEditorEverywhere","Editing-pasteImagesDirectly","Flags-flagOutcomeTime","Flags-flagPercentages","Flags-flagPercentageBar","Sidebar-hideCommunityBulletin","Sidebar-hideJustHotMetaPosts","Sidebar-hideHireMe","Sidebar-hideChatSidebar","Sidebar-hideLoveThisSite","Sidebar-hideHotNetworkQuestions","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-shareLinksPrivacy","Extras-shareLinksMarkdown","Extras-sortByBountyAmount","Extras-warnNotLoggedIn","Extras-hideCertainQuestions","Extras-showMetaReviewCount","Extras-copyCode","Extras-dailyReviewBar","Extras-openLinksInNewTab","Extras-showQuestionStateInSuggestedEditReviewQueue"]
@shu8 shu8 self-assigned this Aug 24, 2018
@shu8 shu8 added this to the 2.3.0 milestone Aug 24, 2018
@shu8
Copy link
Member

shu8 commented Aug 24, 2018

Thanks @IzzySoft. I will try getting it to work with SOUP as soon as possible.

I will also look into making the access token only necessary if it's, well, necessary! :P

@shu8 shu8 changed the title Compatibility issues Compatibility issues with SOUP Aug 24, 2018
@shu8
Copy link
Member

shu8 commented Aug 24, 2018

@IzzySoft Could I check which userscript manager you're using, and which browser? It seems to be working with Chrome/Tampermonkey for me?

@IzzySoft
Copy link
Author

Good old GreaseMonkey (not the WebExt one) on good old Waterfox. I refuse throwing away my environment just because Mozilla thinks so.

@shu8
Copy link
Member

shu8 commented Aug 28, 2018

@IzzySoft We don't really support GM anymore because it was getting quite hard to make it work with all the changes but if it's the old version it should still work :/ If you see the dialog, can you enable debugging then check the console?

@IzzySoft
Copy link
Author

Can do that tomorrow on the machine where I have it running. What exactly shall I test then (e.g. what colliding scripts shall I enable)?

@shu8
Copy link
Member

shu8 commented Aug 28, 2018

@IzzySoft The main one would be SOUP if you can. The other scripts just conflict with specific features which I can fix, but its the main SOUP bug that breaks the entire script that I need to fix first!

@IzzySoft
Copy link
Author

As requested, just cross-checked with SOUP enabled/disabled.

With SOUP enabled ("z1.txt"):

SOX:  undefined  sox.common.js:20:13
SOX:  Object { init: StackExchange.init</<(), debug: Object, initialized: Object, gaInitialized: Object, ready: StackExchange.ready(), gaReady: StackExchange.gaReady(), using: v(), ifUsing: b(), loadJsFile: StackExchange.loadJsFile(), helpers: Object, 9 more… }  sox.common.js:20:13
SOX:  DEBUGGING SOX VERSION 2.2.33 DEV  sox.common.js:20:13
SOX:  ----------------saved variables---------------------  sox.common.js:20:13
SOX:  logging sox stored values ---   sox.common.js:44:13
SOX:  access token set  sox.common.js:44:13
SOX:  SOX-debug  sox.common.js:44:13
SOX:  true  sox.common.js:44:13
SOX:  SOX-lastVersionInstalled  sox.common.js:44:13
SOX:  2.2.33 DEV  sox.common.js:44:13
SOX:  SOXSETTINGS  sox.common.js:44:13
SOX:  ["Appearance-addAuthorNameToInboxNotifications","Appearance-alignBadgesByClass","Appearance-answerTagsSearch","Appearance-colorAnswerer","Appearance-displayName","Appearance-dragBounty","Appearance-highlightQuestions","Appearance-isQuestionHot","Appearance-localTimestamps","Appearance-markEmployees","Appearance-metaChatBlogStackExchangeButton","Appearance-scrollToTop","Appearance-spoilerTip","Appearance-standOutDupeCloseMigrated","Appearance-tabularReviewerStats","Appearance-topAnswers","Appearance-unspoil","Appearance-addTimelineAndRevisionLinks","Appearance-showTagWikiLinkOnTagPopup","Comments-commentReplies","Comments-confirmNavigateAway","Comments-copyCommentsLink","Comments-moveBounty","Comments-showCommentScores","Comments-hiddenCommentsIndicator","Comments-onlyShowCommentActionsOnHover","Editing-editComment","Editing-editReasonTooltip","Editing-findAndReplace","Editing-titleEditDiff","Editing-inlineEditorEverywhere","Editing-pasteImagesDirectly","Flags-flagOutcomeTime","Flags-flagPercentages","Flags-flagPercentageBar","Sidebar-hideCommunityBulletin","Sidebar-hideJustHotMetaPosts","Sidebar-hideHireMe","Sidebar-hideLoveThisSite","Sidebar-linkedToFrom","Chat-chatEasyAccess","Chat-replyToOwnChatMessages","Chat-renameChat","Voting-betterCSS","Voting-stickyVoteButtons","Voting-disableVoteButtons","Extras-alwaysShowImageUploadLinkBox","Extras-linkedPostsInline","Extras-parseCrossSiteLinks","Extras-quickAuthorInfo","Extras-shareLinksPrivacy","Extras-shareLinksMarkdown","Extras-sortByBountyAmount","Extras-warnNotLoggedIn","Extras-showMetaReviewCount","Extras-copyCode","Extras-dailyReviewBar","Extras-showQuestionStateInSuggestedEditReviewQueue"]  sox.common.js:44:13
SOX:  editReasons  sox.common.js:44:13
SOX:  [["formatting","Improved Formatting"],["spelling","Corrected Spelling"],["grammar","Fixed grammar"],["greetings","Removed thanks/greetings"]]  sox.common.js:44:13
SOX:  ----------------end saved variables---------------------  sox.common.js:20:13
SOX:  init  sox.common.js:20:13
SOX:  Object { info: Object, NEW_TOPBAR: true, debug: sox.debug(), log: sox.log(), warn: sox.warn(), error: sox.error(), loginfo: sox.loginfo(), Stack: Object, exists: sox.exists(), ready: sox.ready(), 8 more… }  sox.common.js:20:13
SOX:  Object { init: init() }  sox.common.js:20:13
SOX:  initializing SOX dialog  sox.common.js:20:13
SOX:  injecting features into dialog  sox.common.js:20:13
SOX:  running addAuthorNameToInboxNotifications  sox.common.js:20:13
SOX:  observe: .inbox-dialog  sox.common.js:20:13
SOX:  running colorAnswerer  sox.common.js:20:13
SOX:  running displayName  sox.common.js:20:13
SOX:  running dragBounty  sox.common.js:20:13
SOX:  observe: #start-bounty-popup  sox.common.js:20:13
SOX:  running highlightQuestions  sox.common.js:20:13
SOX:  running isQuestionHot  sox.common.js:20:13
SOX:  running localTimestamps  sox.common.js:20:13
SOX:  running markEmployees  sox.common.js:20:13
SOX:  markEmployees user IDs  sox.common.js:20:13
SOX:  Array [ "40105", "6957" ]  sox.common.js:20:13
SOX:  SOX Access Token: SET  sox.common.js:20:13
SOX:  running metaChatBlogStackExchangeButton  sox.common.js:20:13
SOX:  running scrollToTop  sox.common.js:20:13
SOX:  running spoilerTip  sox.common.js:20:13
SOX:  running standOutDupeCloseMigrated  sox.common.js:20:13
SOX:  observe: #user-tab-questions, #question-mini-list  sox.common.js:20:13
SOX:  running topAnswers  sox.common.js:20:13
SOX:  running unspoil  sox.common.js:20:13
SOX:  running addTimelineAndRevisionLinks  sox.common.js:20:13
SOX:  running showTagWikiLinkOnTagPopup  sox.common.js:20:13
SOX:  observe: .tag-popup  sox.common.js:20:13
SOX:  running commentReplies  sox.common.js:20:13
SOX:  running confirmNavigateAway  sox.common.js:20:13
SOX:  running copyCommentsLink  sox.common.js:20:13
SOX:  running moveBounty  sox.common.js:20:13
SOX:  running hiddenCommentsIndicator  sox.common.js:20:13
SOX:  running onlyShowCommentActionsOnHover  sox.common.js:20:13
SOX:  running editComment  sox.common.js:20:13
SOX:  running editReasonTooltip  sox.common.js:20:13
SOX:  running findAndReplace  sox.common.js:20:13
SOX:  running inlineEditorEverywhere  sox.common.js:20:13
SOX:  inlineEditorEverywhere error: sox.Stack.using not found  sox.common.js:32:13
SOX:  inlineEditorEverywhere: Stack object:  sox.common.js:20:13
SOX:  Object { init: StackExchange.init</<(), debug: Object, initialized: Object, gaInitialized: Object, ready: StackExchange.ready(), gaReady: StackExchange.gaReady(), using: v(), ifUsing: b(), loadJsFile: StackExchange.loadJsFile(), helpers: Object, 9 more… }  sox.common.js:20:13
SOX:  running pasteImagesDirectly  sox.common.js:20:13
SOX:  running flagOutcomeTime  sox.common.js:20:13
SOX:  running flagPercentages  sox.common.js:20:13
SOX:  running flagPercentageBar  sox.common.js:20:13
SOX:  running hideCommunityBulletin  sox.common.js:20:13
SOX:  running hideJustHotMetaPosts  sox.common.js:20:13
SOX:  running hideHireMe  sox.common.js:20:13
SOX:  running hideLoveThisSite  sox.common.js:20:13
SOX:  running linkedToFrom  sox.common.js:20:13
SOX:  running betterCSS  sox.common.js:20:13
SOX:  running stickyVoteButtons  sox.common.js:20:13
SOX:  running disableVoteButtons  sox.common.js:20:13
SOX:  running alwaysShowImageUploadLinkBox  sox.common.js:20:13
SOX:  observe: .image-upload  sox.common.js:20:13
SOX:  running linkedPostsInline  sox.common.js:20:13
SOX:  running parseCrossSiteLinks  sox.common.js:20:13
SOX:  running quickAuthorInfo  sox.common.js:20:13
SOX:  observe: .review-content  sox.common.js:20:13
SOX:  SOX Access Token: SET  sox.common.js:20:13
SOX:  "Getting From API with URL: https://api.stackexchange.com/2.2/users/40105?order=desc&sort=creation&site=softwarerecs&key=lL1S1jr2m*DRwOvXMPp26g((&access_token=(l4r**sanitized**)"  sox.common.js:20:13
SOX:  SOX Access Token: SET  sox.common.js:20:13
SOX:  quickAuthorInfo answerer IDs  sox.common.js:20:13
SOX:  Object { 40105: "user7393973" }  sox.common.js:20:13
SOX:  quickAuthorInfo API call parameters  sox.common.js:20:13
SOX:  users  sox.common.js:20:13
SOX:  40105  sox.common.js:20:13
SOX:  softwarerecs  sox.common.js:20:13
SOX:  running shareLinksPrivacy  sox.common.js:20:13
SOX:  observe: .share-tip  sox.common.js:20:13
SOX:  running shareLinksMarkdown  sox.common.js:20:13
SOX:  observe: .share-tip  sox.common.js:20:13
SOX:  running sortByBountyAmount  sox.common.js:20:13
SOX:  running warnNotLoggedIn  sox.common.js:20:13
SOX:  running copyCode  sox.common.js:20:13
SOX:  observe: .new_comment  sox.common.js:20:13
SOX:  observe: li[id^="wmd-redo-button"], textarea[id^="wmd-input"]  sox.common.js:20:13
SOX:  observe: .reviewable-post, .review-content  sox.common.js:20:13
SOX:  markEmployees returned data  sox.common.js:20:13
SOX:  Object { items: Array[2], has_more: false, quota_max: 10000, quota_remaining: 9980 }  sox.common.js:20:13
SOX:  quickAuthorInfo api dump  sox.common.js:20:13
SOX:  Object { items: Array[1], has_more: false, quota_max: 10000, quota_remaining: 9980 }  sox.common.js:20:13
SOX:  quickAuthorInfo userdetailsfromapi  sox.common.js:20:13
SOX:  Object { 40105: Object }  sox.common.js:20:13
SOX:  current post  sox.common.js:20:13
SOX:  Object [ <div#question.question> ]  sox.common.js:20:13
SOX:  quickAuthorInfo addLastSeen(): current id  sox.common.js:20:13
SOX:  40105  sox.common.js:20:13
SOX:  quickAuthorInfo addLastSeen(): userdetailscurrent id  sox.common.js:20:13
SOX:  Object { last_seen: 1535544666000, type: "registered" }  sox.common.js:20:13
SOX:  sox-edit-window event triggered  sox.common.js:20:13
SOX:  fire: target:   sox.common.js:20:13
SOX:  <textarea id="wmd-input" class="wmd-input wz-element s-input bar0 processed" name="post-text" cols="92" rows="15" tabindex="101" data-wz-state="8" data-min-length="">  sox.common.js:20:13

Same page with SOUP disabled ("z2.txt"):

SOX:  undefined  sox.common.js:20:13
SOX:  Object { init: StackExchange.init</<(), debug: Object, initialized: Object, gaInitialized: Object, ready: StackExchange.ready(), gaReady: StackExchange.gaReady(), using: v(), ifUsing: b(), loadJsFile: StackExchange.loadJsFile(), helpers: Object, 51 more… }  sox.common.js:20:13
SOX:  DEBUGGING SOX VERSION 2.2.33 DEV  sox.common.js:20:13
SOX:  ----------------saved variables---------------------  sox.common.js:20:13
SOX:  logging sox stored values ---   sox.common.js:44:13
SOX:  access token set  sox.common.js:44:13
SOX:  SOX-debug  sox.common.js:44:13
SOX:  true  sox.common.js:44:13
SOX:  SOX-lastVersionInstalled  sox.common.js:44:13
SOX:  2.2.33 DEV  sox.common.js:44:13
SOX:  SOXSETTINGS  sox.common.js:44:13
SOX:  ["Appearance-addAuthorNameToInboxNotifications","Appearance-alignBadgesByClass","Appearance-answerTagsSearch","Appearance-colorAnswerer","Appearance-displayName","Appearance-dragBounty","Appearance-highlightQuestions","Appearance-isQuestionHot","Appearance-localTimestamps","Appearance-markEmployees","Appearance-metaChatBlogStackExchangeButton","Appearance-scrollToTop","Appearance-spoilerTip","Appearance-standOutDupeCloseMigrated","Appearance-tabularReviewerStats","Appearance-topAnswers","Appearance-unspoil","Appearance-addTimelineAndRevisionLinks","Appearance-showTagWikiLinkOnTagPopup","Comments-commentReplies","Comments-confirmNavigateAway","Comments-copyCommentsLink","Comments-moveBounty","Comments-showCommentScores","Comments-hiddenCommentsIndicator","Comments-onlyShowCommentActionsOnHover","Editing-editComment","Editing-editReasonTooltip","Editing-findAndReplace","Editing-titleEditDiff","Editing-inlineEditorEverywhere","Editing-pasteImagesDirectly","Flags-flagOutcomeTime","Flags-flagPercentages","Flags-flagPercentageBar","Sidebar-hideCommunityBulletin","Sidebar-hideJustHotMetaPosts","Sidebar-hideHireMe","Sidebar-hideLoveThisSite","Sidebar-linkedToFrom","Chat-chatEasyAccess","Chat-replyToOwnChatMessages","Chat-renameChat","Voting-betterCSS","Voting-stickyVoteButtons","Voting-disableVoteButtons","Extras-alwaysShowImageUploadLinkBox","Extras-linkedPostsInline","Extras-parseCrossSiteLinks","Extras-quickAuthorInfo","Extras-shareLinksPrivacy","Extras-shareLinksMarkdown","Extras-sortByBountyAmount","Extras-warnNotLoggedIn","Extras-showMetaReviewCount","Extras-copyCode","Extras-dailyReviewBar","Extras-showQuestionStateInSuggestedEditReviewQueue"]  sox.common.js:44:13
SOX:  editReasons  sox.common.js:44:13
SOX:  [["formatting","Improved Formatting"],["spelling","Corrected Spelling"],["grammar","Fixed grammar"],["greetings","Removed thanks/greetings"]]  sox.common.js:44:13
SOX:  ----------------end saved variables---------------------  sox.common.js:20:13
SOX:  init  sox.common.js:20:13
SOX:  Object { info: Object, NEW_TOPBAR: true, debug: sox.debug(), log: sox.log(), warn: sox.warn(), error: sox.error(), loginfo: sox.loginfo(), Stack: Object, exists: sox.exists(), ready: sox.ready(), 8 more… }  sox.common.js:20:13
SOX:  Object { init: init() }  sox.common.js:20:13
SOX:  initializing SOX dialog  sox.common.js:20:13
SOX:  injecting features into dialog  sox.common.js:20:13
SOX:  running addAuthorNameToInboxNotifications  sox.common.js:20:13
SOX:  observe: .inbox-dialog  sox.common.js:20:13
SOX:  running colorAnswerer  sox.common.js:20:13
SOX:  running displayName  sox.common.js:20:13
SOX:  running dragBounty  sox.common.js:20:13
SOX:  observe: #start-bounty-popup  sox.common.js:20:13
SOX:  running highlightQuestions  sox.common.js:20:13
SOX:  running isQuestionHot  sox.common.js:20:13
SOX:  running localTimestamps  sox.common.js:20:13
SOX:  running markEmployees  sox.common.js:20:13
SOX:  markEmployees user IDs  sox.common.js:20:13
SOX:  Array [ "40105", "6957" ]  sox.common.js:20:13
SOX:  SOX Access Token: SET  sox.common.js:20:13
SOX:  running metaChatBlogStackExchangeButton  sox.common.js:20:13
SOX:  running scrollToTop  sox.common.js:20:13
SOX:  running spoilerTip  sox.common.js:20:13
SOX:  running standOutDupeCloseMigrated  sox.common.js:20:13
SOX:  observe: #user-tab-questions, #question-mini-list  sox.common.js:20:13
SOX:  running topAnswers  sox.common.js:20:13
SOX:  running unspoil  sox.common.js:20:13
SOX:  running addTimelineAndRevisionLinks  sox.common.js:20:13
SOX:  running showTagWikiLinkOnTagPopup  sox.common.js:20:13
SOX:  observe: .tag-popup  sox.common.js:20:13
SOX:  running commentReplies  sox.common.js:20:13
SOX:  running confirmNavigateAway  sox.common.js:20:13
SOX:  running copyCommentsLink  sox.common.js:20:13
SOX:  running moveBounty  sox.common.js:20:13
SOX:  running hiddenCommentsIndicator  sox.common.js:20:13
SOX:  running onlyShowCommentActionsOnHover  sox.common.js:20:13
SOX:  running editComment  sox.common.js:20:13
SOX:  running editReasonTooltip  sox.common.js:20:13
SOX:  running findAndReplace  sox.common.js:20:13
SOX:  running inlineEditorEverywhere  sox.common.js:20:13
SOX:  inlineEditorEverywhere error: sox.Stack.using not found  sox.common.js:32:13
SOX:  inlineEditorEverywhere: Stack object:  sox.common.js:20:13
SOX:  Object { init: StackExchange.init</<(), debug: Object, initialized: Object, gaInitialized: Object, ready: StackExchange.ready(), gaReady: StackExchange.gaReady(), using: v(), ifUsing: b(), loadJsFile: StackExchange.loadJsFile(), helpers: Object, 51 more… }  sox.common.js:20:13
SOX:  running pasteImagesDirectly  sox.common.js:20:13
SOX:  running flagOutcomeTime  sox.common.js:20:13
SOX:  running flagPercentages  sox.common.js:20:13
SOX:  running flagPercentageBar  sox.common.js:20:13
SOX:  running hideCommunityBulletin  sox.common.js:20:13
SOX:  running hideJustHotMetaPosts  sox.common.js:20:13
SOX:  running hideHireMe  sox.common.js:20:13
SOX:  running hideLoveThisSite  sox.common.js:20:13
SOX:  running linkedToFrom  sox.common.js:20:13
SOX:  running betterCSS  sox.common.js:20:13
SOX:  running stickyVoteButtons  sox.common.js:20:13
SOX:  running disableVoteButtons  sox.common.js:20:13
SOX:  running alwaysShowImageUploadLinkBox  sox.common.js:20:13
SOX:  observe: .image-upload  sox.common.js:20:13
SOX:  running linkedPostsInline  sox.common.js:20:13
SOX:  running parseCrossSiteLinks  sox.common.js:20:13
SOX:  running quickAuthorInfo  sox.common.js:20:13
SOX:  observe: .review-content  sox.common.js:20:13
SOX:  SOX Access Token: SET  sox.common.js:20:13
SOX:  "Getting From API with URL: https://api.stackexchange.com/2.2/users/40105?order=desc&sort=creation&site=softwarerecs&key=lL1S1jr2m*DRwOvXMPp26g((&access_token=(l4r**sanitized**)"  sox.common.js:20:13
SOX:  SOX Access Token: SET  sox.common.js:20:13
SOX:  quickAuthorInfo answerer IDs  sox.common.js:20:13
SOX:  Object { 40105: "user7393973" }  sox.common.js:20:13
SOX:  quickAuthorInfo API call parameters  sox.common.js:20:13
SOX:  users  sox.common.js:20:13
SOX:  40105  sox.common.js:20:13
SOX:  softwarerecs  sox.common.js:20:13
SOX:  running shareLinksPrivacy  sox.common.js:20:13
SOX:  observe: .share-tip  sox.common.js:20:13
SOX:  running shareLinksMarkdown  sox.common.js:20:13
SOX:  observe: .share-tip  sox.common.js:20:13
SOX:  running sortByBountyAmount  sox.common.js:20:13
SOX:  running warnNotLoggedIn  sox.common.js:20:13
SOX:  running copyCode  sox.common.js:20:13
SOX:  observe: .new_comment  sox.common.js:20:13
SOX:  observe: li[id^="wmd-redo-button"], textarea[id^="wmd-input"]  sox.common.js:20:13
SOX:  observe: .reviewable-post, .review-content  sox.common.js:20:13
SOX:  markEmployees returned data  sox.common.js:20:13
SOX:  Object { items: Array[2], has_more: false, quota_max: 10000, quota_remaining: 9976 }  sox.common.js:20:13
SOX:  quickAuthorInfo api dump  sox.common.js:20:13
SOX:  Object { items: Array[1], has_more: false, quota_max: 10000, quota_remaining: 9976 }  sox.common.js:20:13
SOX:  quickAuthorInfo userdetailsfromapi  sox.common.js:20:13
SOX:  Object { 40105: Object }  sox.common.js:20:13
SOX:  current post  sox.common.js:20:13
SOX:  Object [ <div#question.question> ]  sox.common.js:20:13
SOX:  quickAuthorInfo addLastSeen(): current id  sox.common.js:20:13
SOX:  40105  sox.common.js:20:13
SOX:  quickAuthorInfo addLastSeen(): userdetailscurrent id  sox.common.js:20:13
SOX:  Object { last_seen: 1535544666000, type: "registered" }  sox.common.js:20:13
SOX:  sox-edit-window event triggered  sox.common.js:20:13
SOX:  fire: target:   sox.common.js:20:13
SOX:  <textarea id="wmd-input" class="wmd-input wz-element s-input bar0 processed" name="post-text" cols="92" rows="15" tabindex="101" data-wz-state="8" data-min-length="">  sox.common.js:20:13

For your convenience, the diff between the two:

--- z1.txt      2018-08-29 16:01:53.585093452 +0200
+++ z2.txt      2018-08-29 16:01:23.729085891 +0200
@@ -1,5 +1,5 @@
 SOX:  undefined  sox.common.js:20:13
-SOX:  Object { init: StackExchange.init</<(), debug: Object, initialized: Object, gaInitialized: Object, ready: StackExchange.ready(), gaReady: StackExchange.gaReady(), using: v(), ifUsing: b(), loadJsFile: StackExchange.loadJsFile(), helpers: Object, 9 more… }  sox.common.js:20:13
+SOX:  Object { init: StackExchange.init</<(), debug: Object, initialized: Object, gaInitialized: Object, ready: StackExchange.ready(), gaReady: StackExchange.gaReady(), using: v(), ifUsing: b(), loadJsFile: StackExchange.loadJsFile(), helpers: Object, 51 more… }  sox.common.js:20:13
 SOX:  DEBUGGING SOX VERSION 2.2.33 DEV  sox.common.js:20:13
 SOX:  ----------------saved variables---------------------  sox.common.js:20:13
 SOX:  logging sox stored values ---   sox.common.js:44:13
@@ -53,7 +53,7 @@
 SOX:  running inlineEditorEverywhere  sox.common.js:20:13
 SOX:  inlineEditorEverywhere error: sox.Stack.using not found  sox.common.js:32:13
 SOX:  inlineEditorEverywhere: Stack object:  sox.common.js:20:13
-SOX:  Object { init: StackExchange.init</<(), debug: Object, initialized: Object, gaInitialized: Object, ready: StackExchange.ready(), gaReady: StackExchange.gaReady(), using: v(), ifUsing: b(), loadJsFile: StackExchange.loadJsFile(), helpers: Object, 9 more… }  sox.common.js:20:13
+SOX:  Object { init: StackExchange.init</<(), debug: Object, initialized: Object, gaInitialized: Object, ready: StackExchange.ready(), gaReady: StackExchange.gaReady(), using: v(), ifUsing: b(), loadJsFile: StackExchange.loadJsFile(), helpers: Object, 51 more… }  sox.common.js:20:13
 SOX:  running pasteImagesDirectly  sox.common.js:20:13
 SOX:  running flagOutcomeTime  sox.common.js:20:13
 SOX:  running flagPercentages  sox.common.js:20:13
@@ -92,9 +92,9 @@
 SOX:  observe: li[id^="wmd-redo-button"], textarea[id^="wmd-input"]  sox.common.js:20:13
 SOX:  observe: .reviewable-post, .review-content  sox.common.js:20:13
 SOX:  markEmployees returned data  sox.common.js:20:13
-SOX:  Object { items: Array[2], has_more: false, quota_max: 10000, quota_remaining: 9980 }  sox.common.js:20:13
+SOX:  Object { items: Array[2], has_more: false, quota_max: 10000, quota_remaining: 9976 }  sox.common.js:20:13
 SOX:  quickAuthorInfo api dump  sox.common.js:20:13
-SOX:  Object { items: Array[1], has_more: false, quota_max: 10000, quota_remaining: 9980 }  sox.common.js:20:13
+SOX:  Object { items: Array[1], has_more: false, quota_max: 10000, quota_remaining: 9976 }  sox.common.js:20:13
 SOX:  quickAuthorInfo userdetailsfromapi  sox.common.js:20:13
 SOX:  Object { 40105: Object }  sox.common.js:20:13
 SOX:  current post  sox.common.js:20:13

Funny things (was the script updated – or is it just that I now have it run on a different post?):

  • reply links on comments are there, both with SOUP active and disabled (might have overlooked them last time)
  • "pre-defined edit comment boxes" are still missing, in both cases (or I still cannot find them: what to look for?)

I've re-enabled SOUP now to see what works. A quick check confirms at least several SOX features are working: mentioned reply links, comment of edits, author names on comments in the inbox, tags on answers in search, display name next to gravatar, sticky upvote/downvote (though the upvote is hidden behind the MetaCollider™ aka "top bar", which might well be due to some UserStyles I use), meta+chat links on hover in network list, scroll-to-top button.

Things I could test if I knew where include spoilers. I also couldn't figure how to "paste images directly". Forgive me for whatever I forgot to check … and let me know what else you want checked.

In case things might have got working due to disabled features of SOX (and not due to fresh page or browser restart), here's a fresh list of …

Features Enabled

["Appearance-addAuthorNameToInboxNotifications","Appearance-alignBadgesByClass","Appearance-answerTagsSearch","Appearance-colorAnswerer","Appearance-displayName","Appearance-dragBounty","Appearance-highlightQuestions","Appearance-isQuestionHot","Appearance-localTimestamps","Appearance-markEmployees","Appearance-metaChatBlogStackExchangeButton","Appearance-scrollToTop","Appearance-spoilerTip","Appearance-standOutDupeCloseMigrated","Appearance-tabularReviewerStats","Appearance-topAnswers","Appearance-unspoil","Appearance-addTimelineAndRevisionLinks","Appearance-showTagWikiLinkOnTagPopup","Comments-commentReplies","Comments-confirmNavigateAway","Comments-copyCommentsLink","Comments-moveBounty","Comments-showCommentScores","Comments-hiddenCommentsIndicator","Comments-onlyShowCommentActionsOnHover","Editing-editComment","Editing-editReasonTooltip","Editing-findAndReplace","Editing-titleEditDiff","Editing-inlineEditorEverywhere","Editing-pasteImagesDirectly","Flags-flagOutcomeTime","Flags-flagPercentages","Flags-flagPercentageBar","Sidebar-hideCommunityBulletin","Sidebar-hideJustHotMetaPosts","Sidebar-hideHireMe","Sidebar-hideLoveThisSite","Sidebar-linkedToFrom","Chat-chatEasyAccess","Chat-replyToOwnChatMessages","Chat-renameChat","Voting-betterCSS","Voting-stickyVoteButtons","Voting-disableVoteButtons","Extras-alwaysShowImageUploadLinkBox","Extras-linkedPostsInline","Extras-parseCrossSiteLinks","Extras-quickAuthorInfo","Extras-shareLinksPrivacy","Extras-shareLinksMarkdown","Extras-sortByBountyAmount","Extras-warnNotLoggedIn","Extras-showMetaReviewCount","Extras-copyCode","Extras-dailyReviewBar","Extras-showQuestionStateInSuggestedEditReviewQueue"]

@shu8
Copy link
Member

shu8 commented Aug 29, 2018

@IzzySoft Thank you (nice touch with the diff!), I will look into this this week!

It's weird how SOUP isn't completely breaking SOX now, I hope it was a one-off!


To paste an image, ideally just pressing Ctrl+V in a comment/post edit textarea should add a link to the image. I've found (at least on Windows) that sometimes just opening an image and copying it doesn't fully work -- opening snipping tool and making a mini capture always automatically copies it to the clipboard though!

@IzzySoft
Copy link
Author

IzzySoft commented Aug 29, 2018

I hope it was a one-off!

I hope the breaking was 😉

To paste an image, ideally just pressing Ctrl+V

OK, but what to have in the clipboard for that? An URL to the image? A local path to it? The image itself? The last part of your last comment suggests the latter, which didn't work for me last time. Got to try that again, now that the other stuff magically started working.

PS: Just tested again. Didn't work with the image in clipboard (nothing happened on Ctrl-V) or with the URL in the clipboard (just pasted the URL itself).

shu8 added a commit that referenced this issue Aug 31, 2018
@shu8
Copy link
Member

shu8 commented Aug 31, 2018

@IzzySoft Please could you install dev 2.2.37.
Hopefully, the edit comment checkboxes will be showing now, and the side-by-side (SBS) feature should work too.

image

image


For the pasting images, the image should be in the clipboard. Please can you check if anything appears in the console when you press Ctrl+V? Also, please could you check the 'network' tab of the developer tools (if you open it after the page has loaded it will be empty to start with). This GIF should show you what you're looking for:

this


I haven't installed those other scripts yet, but I'll get to them soon!

@IzzySoft
Copy link
Author

Thanks, I can check when I'm back at the machine where I have SOX running – but that will take about 2 weeks. Five hours earlier, and I could have checked immediately …

Please ping me again if you haven't heard back from me until September 20th 😉

@shu8
Copy link
Member

shu8 commented Aug 31, 2018 via email

shu8 added a commit that referenced this issue Sep 2, 2018
@shu8
Copy link
Member

shu8 commented Sep 2, 2018

I've also fixed the clash with the kbd, sup, sub userscript in dev 2.2.38 -- if that script is installed, SOX will just not show the KBD button :)

Also, I don't think there should be a clash with AutoReviewComments because SOX doesn't really have a feature that adds comments (I think... 😆 there's so many 😝)

@shu8 shu8 modified the milestones: 2.3.0, 2.4.0 Sep 2, 2018
shu8 added a commit that referenced this issue Sep 2, 2018
* new dev

* #305

* #307

* #310

* #310

* Better fix for #310

The old fix placed the SOX button to the right of the username, but the username only shows up in the top bar if you're logged in. This meant the SOX button would be absent if you were logged out. This new code should fix that.

* #310

* #309, #313

* #311, #312

* #256

* #319, #317, #316

* #256

* #318

* #294 deprecate enhanced editor

* #308, other small fixes

* #320

* minor fixes (#324)

change scroll top top feature JSON info

* fixes #329 (#330)

also reduces jQuery dependency

* v2.1.4 DEV before push to master

also adds #326

* v2.2.0

* inital DEV push

* update readme to state GM not supported; #306

* reduce dependency on `hotkeys`+minor details (#333)

* #334 fixed

* #334

* #334

* #338

* #335, #338

* Micro optimizations (#336)

* update source link

* micro optimizations

- converted jQuery .not to CSS selector for faster perf (https://stackoverflow.com/questions/8845811/performance-differences-between-using-not-and-not-selectors)
- introduced a separate function to eliminate thrice-repeated (!) code, to keep it DRY

* fixes some issues (#339)

described in #338 (comment)

* fixes #338

* fixes #338 (#340)

1. used addEventListener instead of onload
2. descriptive names (`reader`)
3. optimized extraction of the image URL from the `data`
4. made all declarations `var` and moved them into one place for consistency
5. shortened the POST url to simply `'/upload/image?https=true',` ;P

* #322 implemented

* Sticky property

* Update sox.user.js

* Updating button colors

The main SE buttons use a lighter color than the SOX buttons

* Update sox.css

* Minor fixes

Patched a problem with vote buttons, and fixed the color of the notify on edit button

* Update sox.user.js

* minor changes/fixes

* #341 temporary fix

* Updated mod diamond icon

Updated to the icon, to match the one used by the new topbar

* Updated diamond icon

* Updated mod diamond

* improvements in colorAnswerer (#344)

* improvements in colorAnswerer
1. constant variables+cache answeredID
2. reduce jQuery dependency+shorter a[href] selector via user ID
3. change coloration

* optimization: use filters throughout (#345)

reduces bandwidth consumption

* fixes a few features; adds CSS

Fixes moveBounty, dragBounty, copyCommentsLink.
Adds class for colorAnswerer.
Updates jQuery

* fixes quickAuthorInfo fontawesome icon

* fix a few of #308

* Major improvements in code extensibility, reduced API usage, eliminate redundancy, etc. (#348)

* fixes various bugs mentioned in #348

* fixes standOutDupeCloseMigrated for search pages

* remove unwanted console logs

* #347, various minor tweaks

* fixes small bug in parseCrossSiteLinks

e.g. on this comment: https://meta.stackoverflow.com/questions/370902/i-need-a-lot-of-help-to-write-a-query-for-the-stack-exchange-data-explorer-sh?cb=1#comment608548_370902

* Fixed Meta SE's chat link

Added a / to the end of Meta SE's if statement to fix it. Also replaced "discuss" with "meta" for Area 51 (to match the new URL for Area 51 Discussions), shortened a bit of code, and added some comments

* Fixed Meta SE links

* Changed topbar z-index

Changed the fixed topbar's z-index to match the one on SO, in order to prevent elements like the usercard (z-index: 1000) from covering it

* Made it clearer what the checkbox does

* Many fixes to dialog buttons

Fixes many of the bugs from #308

* Many fixes to dialog buttons

Fixes many of the bugs from #308

* Many fixes to dialog buttons

Fixes many of the bugs from #308

* Many fixes to dialog buttons

Fixes many of the bugs from #308

* Fixed Area 51 Discussions bug

* #348 minor tweak

* fix (#350)

...for answerer ID 13 also matching commenter ids beginning with 13 (1345, 13555, etc.)

* #352, #353 remove yahoo YQL use

* #352

* PR/351 (#355)

* update getQuestionTags

* provide immediate response to user

* minor changes

* #325: remove rangyInputs dependency (#354)

* bump version number

* remove downvotedPostsEditAlert; remove rangyinputs `require`; implement mini changelog in dialog

* install stale and no-response bots

* #356 added, minor bug fix

* start #349, start to move to es6

* onlyShowCommentActionsOnHover bug fix

* #357

* deprecate fixedTopbar feature for #349

* add showTagWikiLinkOnTagPopup feature

* #359 fixed

* #358 fixed

* fixes #360

* fixes for #361

* #361 changes

* v2.3.0 final
@shu8
Copy link
Member

shu8 commented Sep 22, 2018

@IzzySoft I've just pushed an update, dev 2.3.7, to stop forcing you to get an access token! Please give it a shot :)

@shu8 shu8 added the ready label Sep 22, 2018
@IzzySoft
Copy link
Author

IzzySoft commented Sep 27, 2018

Bang! Shot it to the machine where I hadn't yet installed it. Got the prompt, denied it. On a first glance, looks OK (too early to give a definite answer on that part).

One thing, though: SOX uses an "remote font" for the item in the MetaCollider™ toolbar ("soxSettingsButton"). I refuse to enable remote fonts, as according to uBlock Origin some are loaded from Google, others from FontAwesome (couldn't find a reference in your code, though – so that could be from some SE code) – which makes it look strange (a box for "unknown character"). Just found it with FF's "inspect element": the font used is "Font Awesome 5 Free". Could you use a local font source for that? Same issue for the "jump to top" floating button, btw.

@shu8
Copy link
Member

shu8 commented Sep 28, 2018

@IzzySoft that's great!

There is a chance we can start using SVGs but we use fontawesome in quite a few different places throughout the script so it won't be easy :/ I'll see what I can do.

@IzzySoft
Copy link
Author

Thanks a lot! Keep in mind that's "cosmetical" as long as one uses uBlock Origin (or some other way to block remote fonts). As I do so, I don't expect you to have it fixed this evening 🤣 But I really appreciate your care for it.

@shu8
Copy link
Member

shu8 commented Sep 28, 2018

@IzzySoft Added an answer to the original meta question now :)

No problem! I hope you find SOX useful! If you see any other problems, please could you open another issue? (I think the main problems have been fixed for this one! 🎉)

@IzzySoft
Copy link
Author

Upvoted and accepted :) And yes, new issue coming – though I cannot tell for sure before the font issue has been solved. Speaking of which: shall I make a separate issue for "remote font removal" as well?

@shu8
Copy link
Member

shu8 commented Sep 29, 2018 via email

shu8 added a commit that referenced this issue Feb 3, 2019
* new dev

* #305

* #307

* #310

* #310

* Better fix for #310

The old fix placed the SOX button to the right of the username, but the username only shows up in the top bar if you're logged in. This meant the SOX button would be absent if you were logged out. This new code should fix that.

* #310

* #309, #313

* #311, #312

* #256

* #319, #317, #316

* #256

* #318

* #294 deprecate enhanced editor

* #308, other small fixes

* #320

* minor fixes (#324)

change scroll top top feature JSON info

* fixes #329 (#330)

also reduces jQuery dependency

* v2.1.4 DEV before push to master

also adds #326

* v2.2.0

* inital DEV push

* update readme to state GM not supported; #306

* reduce dependency on `hotkeys`+minor details (#333)

* #334 fixed

* #334

* #334

* #338

* #335, #338

* Micro optimizations (#336)

* update source link

* micro optimizations

- converted jQuery .not to CSS selector for faster perf (https://stackoverflow.com/questions/8845811/performance-differences-between-using-not-and-not-selectors)
- introduced a separate function to eliminate thrice-repeated (!) code, to keep it DRY

* fixes some issues (#339)

described in #338 (comment)

* fixes #338

* fixes #338 (#340)

1. used addEventListener instead of onload
2. descriptive names (`reader`)
3. optimized extraction of the image URL from the `data`
4. made all declarations `var` and moved them into one place for consistency
5. shortened the POST url to simply `'/upload/image?https=true',` ;P

* #322 implemented

* Sticky property

* Update sox.user.js

* Updating button colors

The main SE buttons use a lighter color than the SOX buttons

* Update sox.css

* Minor fixes

Patched a problem with vote buttons, and fixed the color of the notify on edit button

* Update sox.user.js

* minor changes/fixes

* #341 temporary fix

* Updated mod diamond icon

Updated to the icon, to match the one used by the new topbar

* Updated diamond icon

* Updated mod diamond

* improvements in colorAnswerer (#344)

* improvements in colorAnswerer
1. constant variables+cache answeredID
2. reduce jQuery dependency+shorter a[href] selector via user ID
3. change coloration

* optimization: use filters throughout (#345)

reduces bandwidth consumption

* fixes a few features; adds CSS

Fixes moveBounty, dragBounty, copyCommentsLink.
Adds class for colorAnswerer.
Updates jQuery

* fixes quickAuthorInfo fontawesome icon

* fix a few of #308

* Major improvements in code extensibility, reduced API usage, eliminate redundancy, etc. (#348)

* fixes various bugs mentioned in #348

* fixes standOutDupeCloseMigrated for search pages

* remove unwanted console logs

* #347, various minor tweaks

* fixes small bug in parseCrossSiteLinks

e.g. on this comment: https://meta.stackoverflow.com/questions/370902/i-need-a-lot-of-help-to-write-a-query-for-the-stack-exchange-data-explorer-sh?cb=1#comment608548_370902

* Fixed Meta SE's chat link

Added a / to the end of Meta SE's if statement to fix it. Also replaced "discuss" with "meta" for Area 51 (to match the new URL for Area 51 Discussions), shortened a bit of code, and added some comments

* Fixed Meta SE links

* Changed topbar z-index

Changed the fixed topbar's z-index to match the one on SO, in order to prevent elements like the usercard (z-index: 1000) from covering it

* Made it clearer what the checkbox does

* Many fixes to dialog buttons

Fixes many of the bugs from #308

* Many fixes to dialog buttons

Fixes many of the bugs from #308

* Many fixes to dialog buttons

Fixes many of the bugs from #308

* Many fixes to dialog buttons

Fixes many of the bugs from #308

* Fixed Area 51 Discussions bug

* #348 minor tweak

* fix (#350)

...for answerer ID 13 also matching commenter ids beginning with 13 (1345, 13555, etc.)

* #352, #353 remove yahoo YQL use

* #352

* PR/351 (#355)

* update getQuestionTags

* provide immediate response to user

* minor changes

* #325: remove rangyInputs dependency (#354)

* bump version number

* remove downvotedPostsEditAlert; remove rangyinputs `require`; implement mini changelog in dialog

* install stale and no-response bots

* #356 added, minor bug fix

* start #349, start to move to es6

* onlyShowCommentActionsOnHover bug fix

* #357

* deprecate fixedTopbar feature for #349

* add showTagWikiLinkOnTagPopup feature

* #359 fixed

* #358 fixed

* fixes #360

* fixes for #361

* #361 changes

* v2.3.0 final

* 2.3.0 DEV

* fix for #363

* implemented 'feature packs' in settings dialog

* debugging for #363, fixes #364

* #363 debugging

* fix for #363

* #361 implemented (access token no longer mandatory); minor code cleanup

* #365

* fix #368

* Add #315

* fix #366

* start to use linting

* fix #372

* add #370

* clean up code

* implement #374

* fix #373

* add #370; deprecate pasteImagesDirectly

* #374 replace 'help' instead of prepend new link

* change indentation to 2 spaces

* lint

* implement #296

* implements #376 (linkify meta diamond dialog title)

* fix #375 (topAnswers post score not being found)

* improve customMagicLinks feature -- add button to help menu on all pages

* fix sticky vote buttons feature

* keep new meta posts under diamond even after clicking (#378)

* editComment improve design, add more defaults (#377)

* fix better css feature

* editComment: make dialog delete button smaller

* improve editComment for #377; allow editing; new setting storage format

* add delay to comment features for links to deleted comments #379

* bump to v2.4.0

* Remove accidental letter introduced into file

* Bump installation link version numbers

* Lint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants