kir-antipov / github-defreshed Goto Github PK
View Code? Open in Web Editor NEW:octocat: Classical GitHub at its finest
License: MIT License
:octocat: Classical GitHub at its finest
License: MIT License
after most recent updates I am getting script errors in tampermonkey(was using greasemonky but it was so inconsistent and only worked 1/2 the time, tampermonkey was much better)
and it shows a big red ! on the tampermonkey extension icon
Script does still work, but I have noticed it seems to dlitch sometimes as well and takes a couple refreshes to not have the "New" github layout
Today I opened the repository page, and it got stretched in an unnatural way. Reproducable both in chrome and firefox
Hello! One more rare bug (:
It looks like when opening a repository which has either only tags, or only pre-releases, release count stays 0.
I saw your comment about that, but actually original github UI did display that.
Sample repositories:
https://github.com/nuxt-community/eslint-module (tags only)
https://github.com/Cxbx-Reloaded/Cxbx-Reloaded from #10
Version 2.0
Here is web archive link from January 2020
Screenshots:
the one thing that was not restored is the 'followers' 'following' 'stars' links which were on the top in profile. other than that it looks like the old ui. of course I don't remember every single detail of the old ui, I would have to look at old screenshots, but it looks pretty close to it. looks better than the new ui that's for sure.
I don't suppose you'd be willing to provide us with a version of the userscript that hasn't been minified?
Yes, users who want to make adjustments could take the time to reformat and analyze the script themselves, or just write their own from scratch, but both of those seem rather wasteful when there's already an open-source project that does 99% of what you want it to.
It's just so much easier to figure out what's what if everything has intelligible and informative names.
Not sure if this is achievable... but I felt like having the Stars tab back in the profile page instead on the left sidebar. Just a hyperlink tab would be good.
Anyway, this really made my day! This is really something soooooo great haha xD Can't resist my joy when I saw the old UI back.
The project website is not being added in the about section. Now it's on a new element so you missed it.
Example page:
https://github.com/Nuitka/Nuitka
Old layout:
https://web.archive.org/web/20200611130431/https://github.com/Nuitka/Nuitka
This was on Firefox 77, using GreaseMonkey, but Chrome also refused to download it from the link provided on the repository's main page (https://raw.githubusercontent.com/Kir-Antipov/GitHub-Defreshed/master/build/github-defreshed.user.js).
The script itself worked after manually building it with npm and replacing the http*
part with https
before importing it.
Thanks for your efforts, by the way! The repository page at least looks much less anger-inducing now, even if it took some custom CSS to undo the horrible style changes.
GitHub now adds a badge telling you if you're in a public or private repo after the repo name.
If I recall correctly, this badge used to exist only for private repos (as they went against the norm of GitHub).
I suggest that we get the option of removing this badge via one of three options:
Why? Having the badge there is ugly (subjective), redundant with the icon in front of the name, and removes the 'normalcy' status of public repos by making them look just as awkward as private repos.
I can completely remove or keep the badge using custom uBlock origin filters, but I think the old GitHub behavior is best, and should be the default option.
Hi there, Thanks so much for all the work you put into this, it is impressive. One issue that I noticed is that when this is installed command click on links no longer opens them in a new tab.
It seems that some links work, but some do not. I am not sure the exact behavior causing it, but probably a preventDefault()
somewhere where it should not be if (e.metaKey || e.ctrlKey)
is pressed
Ah ya the problematic part looks to be:
GitHub-Defreshed/src/fixers/links-fixer.js
Lines 21 to 25 in e504656
Anchor links also don’t seem to work correctly
I always wanted to see the version number in the summary bar and that's something that was added somewhat hidden in the new crappy layout.
I think adding a popup that when hovering the releases button shows the latest version number/name and when it was released and then an option to change which shows in the popup and which in the text would be nice. This way both options can see the latest version number and the number of releases.
Originally posted by @An-dz in #21 (comment)
I feel like this is much more padding than in my memory. Just look at all of this wasted space and how cramped everything is:
Could we get a way to adjust the padding?
Also, now that I found this image of how it used to be, I think I know the reason why I feel like the add-on is much more cramped and uncomfortable than it used to be. The problem is that it keeps the terrible new about sidebar thing.
How it used to be:
With the add-on (look at red square):
Is there a way to remove the new about sidebar thing with the add-on? Maybe add that too? I think doing that will make you have to add stuff back to the "tab bar" (bar where Code, Issues, Pull requests are). It made a lot more sense when that stuff was up there!
Also, you can see there is duplicate language info. If you want to keep the about sidebar enabled by default in the add-on, maybe you should make it remove the extra one to make it look less bad.
This issue have been there since the beginning, and I can definitely say that it's not my browser messed up after long time use, as even after reinstalling the OS this issue was still existing, and as I reported previous bug, why not to report this one too! (:
This issue is very strange, and probably hard to reproduce.
When opening your own profile page (not anyone else's, otherwise it is alright), the page slows down the whole browser and everything is lagging a lot. It might last for as long as 5 seconds. When trying to scroll or hover over the links, it slows down even more, not touching the keyboard makes it lag less.
This issue seems to be occuring only on Firefox. I have disabled my adblock, tried in private mode and with no extensions except for Tampermonkey+Github defreshed, the issue persists. Tried in Chrome-no issues.
A video (:
Note my attempts trying to scroll the page
I have tried to record a profiler dump, here it is:
https://share.firefox.dev/3cMGYd2
I don't really know how to read it, but from what I see, recalculating styles takes most of the time
page only partially reverts to old
https://github.com/NZJenkins/Cxbx-Reloaded/tree/hlsl/metal-arms
can't do web archive since it is a newer branch
it should however look like another branch from same repo https://github.com/NZJenkins/Cxbx-Reloaded/tree/ivb-float4
Firefox 88.0.1
-windows 10
refreshed version 4.3.0 - tampermonkey, triggered update and it says no update available
With the latest extension (in fact I'm not aware since which version), any repository page won't open, similar to #39 but with a different error log:
TypeError: can't access property "fetchData", e.index is undefined
Hello again! I've discovered that enabling your script makes it impossible for me to use Project boards feature. As soon as I disable the script in GreaseMonkey and reload, everything works as expected again.
Screenshot: https://i.imgur.com/drJ287i.png
Example project: https://github.com/SacredDuckwhale/TestProject/projects/1
Hopefully this is enough to reproduce the problem.
It looks like the content isn't visible in the main container, presumably because the div with class="repository-content d-flex flex-auto container-lg"
isn't sized properly? I've only taken a brief glance at the HTML, though.
The repository page does not want to open with 4.3.1, had to revert to 4.3.0. Error log is below.
Everything else works.
Uncaught (in promise) TypeError: Cannot read property 'whenDefined' of null
at Object.<anonymous> (github-defreshed.user.js:16)
at Generator.next (<anonymous>)
at a (github-defreshed.user.js:16)
If the repository has only one contributor the URL in the repository "info header" points to the wrong address.
That's because it uses the button text as the URL and when there's only one it reads contributor in the singular form, while the real URL needs the plural form contributors.
I have been using the script for a few weeks so far, and I am very happy with it. Thank you very much.
Now, I am not sure whether the culprit lies in this in the script, or rather in the Refined GitHub (https://github.com/sindresorhus/refined-github) extension, but when the two are used together, the buttons at the top are displayed as below.
One strange thing is that this does not happen always. Sometimes the buttons get lined up horizontally after a page refresh, but break again on a next reload. It seems as if there was a conflict between the script and the extension during the page load.
When loading the code tab from a link or by doing a refresh the script fails to execute.
The log is basically that it could not find the DOM.
Fixer exception: TypeError: Cannot read property 'querySelector' of null
at x.isApplieble._createCommitsSummaryElement (github-defreshed.user.js:15)
at x.isApplieble.apply (github-defreshed.user.js:15)
at k (github-defreshed.user.js:15)
Trying to download a release fails with a message on console saying "Failed to fetch...".
Before this message it shows some errors about CSP policy and the like.
Doesn't happen without the script.
The script fulfilled its main purpose and gave us back the old GitHub layout, but should we stop there? Or should we go further and implement some features that GitHub has always lacked?
Since we can customize the behavior of the script, there will be no conflict of interest for those who want to leave everything as it is and those who want to add something, so it seems to me that we can go ahead and expand the capabilities of GitHub.
What do you think about it? It would be great to hear your thoughts and suggestions!
Recently github has been messing up with the UI (it all started with a nice kitty animation), so now repository pages at least return to something like "new" design again
In dev console I see:
Fixer exception: TypeError: t is null
It is probably occurring there:
t=e.querySelector(".gutter-condensed")
Also just noticed, contributor count seems to be wrong, or is it github-side bug?
When I edit a markdown file, and click on the Preview changes, nothing happens. Also, the Commit changes button appears to be inactive. In order to preview or commit changes, I have to deactivate the GitHub-Defreshed (v 1.4.5) script in Tapermonkey.
I am not 100% sure, but few updates back I have noticed that all toolbars (showing latest commit, issue filter, etc.) are now slimmer than before (looks like removed paddings). It was not so in the previous versions, and also not in the original github UI. Sorry if I missed some change, but I definitely remember it was not so before, see the screenshots below.
( Showing on my own repo, as I don't have any other screenshots from older versions of the script)
Current toolbars:
In the repo page:
In the issues filter:
Pull requests filter:
How was it back then:
At the initial versions of the script:
Few months after the creation of the script:
On forked repositories the contributors link is broken, the user name is duplicated on the URL. I guess the reason is because GitHub decided to not show contributors on forks so the script fails to obtain the number of contributors and fallback to showing a single contributor.
Here's a repo that is a fork:
https://github.com/rust-lang/rust-enhanced
Seeing on archive that's something the redesign changed as it used to show up:
https://web.archive.org/web/20200530174346/https://github.com/rust-lang/rust-enhanced
To test go to your own repo page:
https://github.com/Kir-Antipov/GitHub-Defreshed
Then hover over one of the headers and click on the anchor
It refreshes the page inline and does not link to the anchor
Originally posted by @ccampbell in #5 (comment)
Hello! First of all, thank you very much for your extension to bring old good github back!
When viewing my repository front page, I don't see CI build mark (green checkmark or red depending on build status), but when viewing full commits list I can see that.
Version 1.6.0
Seems to be related to latest commit message "improvements".
Screenshots:
... And perhaps an option to have the languages information always open by default.
Originally posted by @An-dz in #21 (comment)
Hello! Thank you for quick version 2, and that's me once again telling about bugs (:
This bug appears when opening a branch different from master, the layout changes to something mixed between old and new style (actually it looks not bad :D, but commits link and some other stuff is hidden).
I can't seem to reproduce this on third-party repos, I can only reproduce it only on my repos, so looks like it is caused by "Recent pushes on some branch" message though I don't see it.
Link to the branch if it shows for you too
Version 2.0
Screenshots:
Default branch:
PR branch:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.