From 4bf2f00850dc728b097bb58c3d1bb5bc2881da5e Mon Sep 17 00:00:00 2001 From: Jacob Wirth Date: Fri, 21 Apr 2023 16:58:14 -0400 Subject: [PATCH] Fix selectors to work with new GitHub turbo-frame usage --- build/wide-github.user.css | 22 +++++++++++----------- build/wide-github.user.js | 22 +++++++++++----------- chrome/manifest.json | 4 ++-- mozilla/manifest.json | 2 +- wide-github.css | 20 ++++++++++---------- 5 files changed, 35 insertions(+), 35 deletions(-) diff --git a/build/wide-github.user.css b/build/wide-github.user.css index 7dd93df..52dc86e 100644 --- a/build/wide-github.user.css +++ b/build/wide-github.user.css @@ -10,7 +10,7 @@ @contributor Robert Laverty (https://github.com/roblav96) @contributor Amir Meimari (https://github.com/amirmeimari) @license MIT; https://raw.githubusercontent.com/xthexder/wide-github/master/LICENSE -@version 1.5.1 +@version 1.5.2 @homepageURL https://github.com/xthexder/wide-github @supportURL https://github.com/xthexder/wide-github/issues ==/UserStyle== */ @@ -44,13 +44,13 @@ } /* Repository Issues */ - body:not(.wgh-disabled) #js-repo-pjax-container .repository-content .discussion-timeline { /* Issue body */ + body:not(.wgh-disabled) #js-repo-pjax-container .discussion-timeline { /* Issue body */ width: 100% !important; } - body:not(.wgh-disabled) .repository-content .timeline-new-comment { /* New Issue / issue comment form */ + body:not(.wgh-disabled) #js-repo-pjax-container .timeline-new-comment { /* New Issue / issue comment form */ max-width: 100% !important; } - body:not(.wgh-disabled) .repository-content .new-discussion-timeline .files-bucket > div { /* New PR code diff */ + body:not(.wgh-disabled) #js-repo-pjax-container .new-discussion-timeline .files-bucket > div { /* New PR code diff */ width: inherit !important; left: auto !important; right: auto !important; @@ -59,19 +59,19 @@ padding-left: 0px !important; padding-right: 0px !important; } - body:not(.wgh-disabled) .repository-content .inline-comments .comment-holder, /* Diff / code comments */ - body:not(.wgh-disabled) .repository-content .inline-comments .inline-comment-form-container, - body:not(.wgh-disabled) .repository-content .inline-comments .inline-comment-form, - body:not(.wgh-disabled) .repository-content #all_commit_comments .commit-comments-heading, - body:not(.wgh-disabled) .repository-content #all_commit_comments .comment-holder { + body:not(.wgh-disabled) #js-repo-pjax-container .inline-comments .comment-holder, /* Diff / code comments */ + body:not(.wgh-disabled) #js-repo-pjax-container .inline-comments .inline-comment-form-container, + body:not(.wgh-disabled) #js-repo-pjax-container .inline-comments .inline-comment-form, + body:not(.wgh-disabled) #js-repo-pjax-container #all_commit_comments .commit-comments-heading, + body:not(.wgh-disabled) #js-repo-pjax-container #all_commit_comments .comment-holder { max-width: inherit !important; } - body:not(.wgh-disabled) .repository-content .js-issue-row .text-right { /* Issue list Assignee alignment */ + body:not(.wgh-disabled) #js-repo-pjax-container .js-issue-row .text-right { /* Issue list Assignee alignment */ max-width: 303px !important; } /* Repository graph page */ - body:not(.wgh-disabled) .repository-content .capped-card-content { /* Graph cards on contributors / graph list */ + body:not(.wgh-disabled) #js-repo-pjax-container .capped-card-content { /* Graph cards on contributors / graph list */ width: 100% !important; } diff --git a/build/wide-github.user.js b/build/wide-github.user.js index a3f01da..03fb5d0 100644 --- a/build/wide-github.user.js +++ b/build/wide-github.user.js @@ -12,7 +12,7 @@ // @contributor Robert Laverty (https://github.com/roblav96) // @contributor Amir Meimari (https://github.com/amirmeimari) // @license MIT; https://raw.githubusercontent.com/xthexder/wide-github/master/LICENSE -// @version 1.5.1 +// @version 1.5.2 // @icon https://raw.githubusercontent.com/xthexder/wide-github/master/icons/icon.png // @homepageURL https://github.com/xthexder/wide-github // @supportURL https://github.com/xthexder/wide-github/issues @@ -49,13 +49,13 @@ var styleSheet = "" + "}" + // Repository Issues -"body:not(.wgh-disabled) #js-repo-pjax-container .repository-content .discussion-timeline {" + // Issue body +"body:not(.wgh-disabled) #js-repo-pjax-container .discussion-timeline {" + // Issue body "width: 100% !important;" + "}" + -"body:not(.wgh-disabled) .repository-content .timeline-new-comment {" + // New Issue / issue comment form +"body:not(.wgh-disabled) #js-repo-pjax-container .timeline-new-comment {" + // New Issue / issue comment form "max-width: 100% !important;" + "}" + -"body:not(.wgh-disabled) .repository-content .new-discussion-timeline .files-bucket > div {" + // New PR code diff +"body:not(.wgh-disabled) #js-repo-pjax-container .new-discussion-timeline .files-bucket > div {" + // New PR code diff "width: inherit !important;" + "left: auto !important;" + "right: auto !important;" + @@ -64,19 +64,19 @@ var styleSheet = "" + "padding-left: 0px !important;" + "padding-right: 0px !important;" + "}" + -"body:not(.wgh-disabled) .repository-content .inline-comments .comment-holder," + // Diff / code comments -"body:not(.wgh-disabled) .repository-content .inline-comments .inline-comment-form-container," + -"body:not(.wgh-disabled) .repository-content .inline-comments .inline-comment-form," + -"body:not(.wgh-disabled) .repository-content #all_commit_comments .commit-comments-heading," + -"body:not(.wgh-disabled) .repository-content #all_commit_comments .comment-holder {" + +"body:not(.wgh-disabled) #js-repo-pjax-container .inline-comments .comment-holder," + // Diff / code comments +"body:not(.wgh-disabled) #js-repo-pjax-container .inline-comments .inline-comment-form-container," + +"body:not(.wgh-disabled) #js-repo-pjax-container .inline-comments .inline-comment-form," + +"body:not(.wgh-disabled) #js-repo-pjax-container #all_commit_comments .commit-comments-heading," + +"body:not(.wgh-disabled) #js-repo-pjax-container #all_commit_comments .comment-holder {" + "max-width: inherit !important;" + "}" + -"body:not(.wgh-disabled) .repository-content .js-issue-row .text-right {" + // Issue list Assignee alignment +"body:not(.wgh-disabled) #js-repo-pjax-container .js-issue-row .text-right {" + // Issue list Assignee alignment "max-width: 303px !important;" + "}" + // Repository graph page -"body:not(.wgh-disabled) .repository-content .capped-card-content {" + // Graph cards on contributors / graph list +"body:not(.wgh-disabled) #js-repo-pjax-container .capped-card-content {" + // Graph cards on contributors / graph list "width: 100% !important;" + "}" + diff --git a/chrome/manifest.json b/chrome/manifest.json index 783d518..168fdad 100644 --- a/chrome/manifest.json +++ b/chrome/manifest.json @@ -3,8 +3,8 @@ "name": "Wide GitHub", "description": "Change all GitHub repository and gist pages to be full width and dynamically sized.", - "version": "1.5.1", - "version_name": "1.5.1 MV3", + "version": "1.5.2", + "version_name": "1.5.2 MV3", "icons": { "32": "icons/icon32.png", "48": "icons/icon48.png", diff --git a/mozilla/manifest.json b/mozilla/manifest.json index d2f9ba9..1f0355c 100644 --- a/mozilla/manifest.json +++ b/mozilla/manifest.json @@ -3,7 +3,7 @@ "name": "Wide GitHub", "description": "Change all GitHub repository and gist pages to be full width and dynamically sized.", - "version": "1.5.1", + "version": "1.5.2", "icons": { "32": "icons/icon32.png", "48": "icons/icon48.png", diff --git a/wide-github.css b/wide-github.css index ceab9f1..8fd4d63 100644 --- a/wide-github.css +++ b/wide-github.css @@ -25,13 +25,13 @@ body:not(.wgh-disabled) .pr-toolbar { } /* Repository Issues */ -body:not(.wgh-disabled) #js-repo-pjax-container .repository-content .discussion-timeline { /* Issue body */ +body:not(.wgh-disabled) #js-repo-pjax-container .discussion-timeline { /* Issue body */ width: 100% !important; } -body:not(.wgh-disabled) .repository-content .timeline-new-comment { /* New Issue / issue comment form */ +body:not(.wgh-disabled) #js-repo-pjax-container .timeline-new-comment { /* New Issue / issue comment form */ max-width: 100% !important; } -body:not(.wgh-disabled) .repository-content .new-discussion-timeline .files-bucket > div { /* New PR code diff */ +body:not(.wgh-disabled) #js-repo-pjax-container .new-discussion-timeline .files-bucket > div { /* New PR code diff */ width: inherit !important; left: auto !important; right: auto !important; @@ -40,19 +40,19 @@ body:not(.wgh-disabled) .repository-content .new-discussion-timeline .files-buck padding-left: 0px !important; padding-right: 0px !important; } -body:not(.wgh-disabled) .repository-content .inline-comments .comment-holder, /* Diff / code comments */ -body:not(.wgh-disabled) .repository-content .inline-comments .inline-comment-form-container, -body:not(.wgh-disabled) .repository-content .inline-comments .inline-comment-form, -body:not(.wgh-disabled) .repository-content #all_commit_comments .commit-comments-heading, -body:not(.wgh-disabled) .repository-content #all_commit_comments .comment-holder { +body:not(.wgh-disabled) #js-repo-pjax-container .inline-comments .comment-holder, /* Diff / code comments */ +body:not(.wgh-disabled) #js-repo-pjax-container .inline-comments .inline-comment-form-container, +body:not(.wgh-disabled) #js-repo-pjax-container .inline-comments .inline-comment-form, +body:not(.wgh-disabled) #js-repo-pjax-container #all_commit_comments .commit-comments-heading, +body:not(.wgh-disabled) #js-repo-pjax-container #all_commit_comments .comment-holder { max-width: inherit !important; } -body:not(.wgh-disabled) .repository-content .js-issue-row .text-right { /* Issue list Assignee alignment */ +body:not(.wgh-disabled) #js-repo-pjax-container .js-issue-row .text-right { /* Issue list Assignee alignment */ max-width: 303px !important; } /* Repository graph page */ -body:not(.wgh-disabled) .repository-content .capped-card-content { /* Graph cards on contributors / graph list */ +body:not(.wgh-disabled) #js-repo-pjax-container .capped-card-content { /* Graph cards on contributors / graph list */ width: 100% !important; }