Supporting the new github Pull Request page

Open
#13 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
48/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Quiet
Tech stack
github, javascript
Domain
frontend

Research direction

Start by reading the existing externalize and isInNotificationPage logic, then compare its behavior on https://github.com/pulls with the notification page. Observe how the new pull-request page renders client-side links and verify that links, colors, and emojis receive the same treatment without breaking custom views.

Written by the indexing model from the issue text.

Description

enhancement
Clear and concise description of the problem

I have been using this script for a long time and cannot use github without it. However, github just made a new pull request page that allows to define custom views and other things so I would love to use it. But like the notification page it's... not perfect. Things that this user script fixes on the notification page can also be improved there, like opening links in new tabs etc.

So can we extend this script to also work on https://github.com/pulls?

Suggested solution

I did some testing locally and extending the externalize and isInNotificationPage logic mostly works. There are some more changes required, e.g we have to observe DOM changes so that client-rendered links are also externalized etc. Updating the colors of links, emojis etc. should all work very similarly.

Alternative

No response

Additional context

No response

Validations
Dominant language
JavaScript
Stars
247
Forks
16
PR merge metrics
No merged PRs in 30d

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.