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
GitHub: "Load diff" misplaced and non-clickable on many commits #46
Comments
Your rule is not suitable (big range), MUST only use the unique class name.
|
Try 1.2.14b1. |
Apologies for the tardy replies... 😉
... As you'd probably imagine, the
Many thanks for trying to address this 👍 ; I just finished a set of tests (fresh St52 profile with only
This last "status" is only resolved by fully restarting the browser, as mere tab-reloads/ browser-cache-purging tried here to no avail... 😞 Hopefully, we're close to a definitive solution! |
Reload skip cache be activated with Ctrl + Shift + R. |
funny, i'm seeing this too in palemoon 29.4.4 with gh polyfill 1.2.13 on this link ryanmcgrath/svgalib-1@e698d8c |
It also happen with 1.2.12. Maybe the bug(?)/feature of page status keeping. |
Try 1.2.14b2.
I have no idea how to address this, fortunately, as mentioned above, Ctrl + Shift + R and Ctrl + F5 work. |
I have tested the old style frameworks-56f7ce131f05e8b45ad6787fd4b122c3, no issues except the disabled button. |
Does this uBO rule fix the issue?: |
It does for me while using v1.2.13 from the releases page. |
Why do you find it "funny"? 😃 Pale Moon (that's how its authors like it to be spelt 😜) is a UXP-based browser, Serpent 52 (a forked Basilisk) is built on a forked UXP which, to the best of my knowledge, bears no differences to upstream UXP as far as JS/CSS parsers are involved...
It surely does fix the misplacement 👍, with or without
Thanks! 👍 ; that solves it! 🎉
... Sad to hear 😢 ... I'll leave this issue open for a tad longer, in the hope some bright idea 💡 comes up to someone, barring that, keyboard shortcut(s) it will be... 😉 Best wishes! |
It should be possible to add a fix, similar to the uBO rule which I posted, to the extension itself. |
In fact, your rule is pretty much the same as the one contained in 1.2.14b1: .js-diff-load-container .js-diff-entry-loader {
position: inherit !important;
} and here is an additional fix from 1.2.14b2: .js-skip-tagsearch > .load-diff-button, .js-skip-tagsearch > div {
height: 75% !important;
top: 25% !important;
} |
Oh, so the remaining issue is that the fix included in your extension breaks upon page refresh? |
Big button overlay the commit box's header. #46 (comment) |
This injected script is working. (function () {
// Remove "disabled" attribute of "Load diff" buttons
document.addEventListener('DOMContentLoaded', function () {
for (let button of document.getElementsByClassName('load-diff-button'))
button.removeAttribute("disabled");
}, {once: true});
}()); |
I fix in #48 |
Many thanks, but where exactly inside I have already tried the very latest commit of your fork and it addresses fully all aspects of this issue 👍 , but your fork has diverged significantly from this ("upstream") to let a non-coder such as I easily apply your posted fix... |
@SeaHOH : I just stumbled on a very minor bug of
NB: It ONLY happens when I am logged-in ! This small "bug" isn't there with both (upstream) |
Sorry, I have no idea, I can't reproduce it with my browser. |
Unfortunately, it's highly unlikely this will ever happen :-( |
I can only speak for myself 😉 , since this extension has a very varied user base, but what is of paramount importance now is the safety/well-being of you, your family, your close-ones, etc,, under war conditions... I'm afraid this isn't the right place to discuss international politics (and I believe GH doesn't allow this, in any case), so I won't, but you've done so much over the course of time 👍 with this extension, in essence providing crutches to browser platforms that can't be put up to the challenges imposed by GitHub by the browser maintainers themselves 😞 ... Hopefully, when all dust has settled, you'll be able to revisit/address the 'disabled attribute of the "Load diff" button'; keep safe, many thanks, again, for all your work thus far! 🥇 ❤️ |
With no clue myself, I ended up transforming that into a GM/VM userscript, // ==UserScript==
// @name Fix disabled "Load diff" button
// @namespace https://github.com/SeaHOH
// @description Restores disabled "Load diff" area, after it has been clicked once and page reloaded (see "https://github.com/JustOff/github-wc-polyfill/issues/46#issuecomment-1046129969", item [4.] ...).
// @author SeaHOH
// @include /^https:\/\/github\.com\/.*\/.*\/commit\/.*$/
// @include /^https:\/\/github\.com\/.*\/.*\/pull\/.*$/
// @run-at document-start
// @grant none
// @version 0.1
// @icon https://github.githubassets.com/pinned-octocat.svg
// ==/UserScript==
(function() {
// Remove "disabled" attribute of "Load diff" buttons
document.addEventListener('DOMContentLoaded', function() {
for (let button of document.getElementsByClassName('load-diff-button'))
button.removeAttribute("disabled");
}, {
once: true
});
}()); ... which I'm using together with "github-wc-polyfill-v1.2.14b2" in latest Serpent 52.9.0; |
someone with some skills can take @JustOff's last release (1.2.14b2), unzip it and apply the above patch to it and make it available for folks here please ? |
Stay safe, JustOff. |
and everyone 🇺🇦 |
FWIW, Later edit: As expected, that heated discussion has been now closed/locked by GH staff... 😉 |
and disabled "Load diff" buttons #46 and tweak gitlab JS replace
Browser: Serpent v52.9.0 (2022-01-19) (32-bit)
[it's platform should be on par with last official Basilisk 52.9.2022.01.27 (64-bit)]
Extension version: github-wc-polyfill-v1.12.13
STR:
Load, e.g. , 3c2384b:
Load diff
is misplaced (but this is something already pointed out here) 😉 , but is also overlaid with the message:Sadly, it appears that now you can only click on either "L" or "o" (of the whole
Load diff
string) to display the actual commit content, but those two letters are superimposed by the word "not" 😞 ...The screenshot is from a dirty profile, but I have replicated the issue on a fresh St52 profile, with only said extension installed...
Toying a little with uBlock Origin 1.16.4.30, I removed the overlay with
github.com##.width-full.height-full.left-0.top-0.position-absolute.flex-justify-center.flex-items-center.d-flex
and I thus got:which now allows me to generate the diff by clicking on the "Lo" area, but after a tab reload,
Load diff
appears greyed-out and non-clickable:I have to disable
uBO
ongithub.com
, reload the tab a second time to get a non-clickable "Lo" area (due to the overlay), then re-enableuBO
and reload the tab a third time to get a clickable "Lo" area (without the overlay); this is impractical ...My instinct tells me this issue is caused by limitations in UXP's CSS/JS parsers (can't handle well the CSS code served by GitHub), so I'm not certain it could be addressed in the extension itself, but it sure is a nuisance... 😠
Any tips to mitigate the issue (e.g., some userstyle installable in Stylem/Stylus?) would be highly appreciated!
FWIW, this is how things look on a Chromium-78-based browser:
... but this is no surprise, the modern web is tailored to perfectly suit only Chromium (I consider current Firefox to be just another Chromium fork, give or take...).
As always, utmost gratitude extended to the maintainer of this extension for his unwavering efforts, especially considering current RL tensions in his neck of the woods ❤️ ...
The text was updated successfully, but these errors were encountered: