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

Add an option to change the title #136

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

neilparikh
Copy link

When you have a lot of sorbet.run tabs open, it's hard to figure out which is which. This allows you change the tab title to a custom name, so you can distinguish them.

Copy link
Collaborator

@jez jez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not just open the chrome inspector and write

document.title = "my title"

@jez
Copy link
Collaborator

jez commented Aug 9, 2024

For example, here's a bookmarklet you can save to do this on any page

javascript:(function() {
    var newTitle = prompt("Enter a new title for this page:", document.title);
    if (newTitle !== null) {
        document.title = newTitle;
    }
})();

@jez
Copy link
Collaborator

jez commented Aug 9, 2024

Right-click on your bookmarks bar and choose "Add page" (or "Add Bookmark").
In the "Name" field, you can enter something like "Change Page Title".
In the "URL" field, paste the JavaScript code provided above.

@jez
Copy link
Collaborator

jez commented Aug 9, 2024

You could even tweak the thing above to e.g. set the favicon to a random emoji or something like that, so you can just click your button and have it randomize the favicon.

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

Successfully merging this pull request may close these issues.

3 participants