Giter Site home page Giter Site logo

gm-up-nav's Introduction

What the hell is this?

Now that GitHub CoPilot has a full chat interface in VSCode, just for fun I asked it to "write a GreaseMonkey script to navigate up a level of a URL when the user hits ALT+UP".

I found a couple sketchy extensions to restore this ancient browser behavior, but I'm extremely picky about what extensions I install nowadays given the countless security horror stories.

So I gave it a go, not expecting much and it... did a decent job?!

Well, I mean, it needed about 5 minutes of tweaking and testing but it got about 75% of the work done.

Installation

Go find a GreaseMonkey extension (or any of the clones) for your browser, stick this in, and off you go.

This has only been tested with Firefox.

Usage

Literally pressing ALT+UP on any page will navigate you up a level.

For example:

  • https://example.com/foo/bar/baz
  • https://example.com/foo/bar
  • https://example.com/foo
  • https://example.com

Worth noting that many pages will redirect you if you hit a URL they don't like, so it will look like the page is just refreshing. Not much I can do about that. (Though I have some ideas...)

image

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.