Coder Social home page Coder Social logo

urlrewrite-safari's Introduction

URL Rewrite for Safari

An extension that lets you redirect Safari for specific URLs.

Usage

To install, download here.

To configure:

  1. Go to the Safari menu, Preferences, Extensions, then select URL Rewrite.
  2. In Source URL, enter the URL that should be rewritten, e.g. http://jira.example.com/
  3. In Destination URL, enter the URL that should replace the Source URL, e.g. http://example.myvpn.com/jira/
  4. Now, any link that begins with Source URL will have that replaced with Destination URL. In the example above, http://jira.example.com/PROJ-123 would be rewritten to http://example.myvpn.com/jira/PROJ-123

Notes:

  • There is room for up to 5 replacements in the settings.
  • Make sure to include the protocol, like http://.
  • There is no wildcard support, just a prefix match.

Licence

I, the copyright holder of this work, hereby release it into the public domain. This applies worldwide.

In case this is not legally possible: I grant anyone the right to use this work for any purpose, without any conditions, unless such conditions are required by law.

Author

By Sijmen Mulder ([email protected]).

urlrewrite-safari's People

Contributors

sjmulder avatar zackkatz avatar

Stargazers

Manvi Tyagi avatar Masaki Furuta avatar Florian Krach avatar Alex Perathoner avatar Nathan Mock avatar Rahul C avatar  avatar Deyvid Mitkov  avatar Vinh Nguyen avatar  avatar Haroen Viaene avatar  avatar JJ avatar eg avatar Jordan Guerguiev avatar  avatar moubuns avatar Sai avatar Chaos John avatar Ryan Liao avatar  avatar  avatar Reza Hashemi avatar Mikhail Golod avatar  avatar  avatar Jiacai Liu avatar Marco Monteiro avatar Dave McNally avatar Shaun Inman avatar Nikolay Kolev avatar  avatar Minho Ryang avatar Matt H avatar Justin Mayer avatar Adam Averay avatar  avatar Aldiantoro Nugroho avatar Tim Littlemore avatar

Watchers

 avatar  avatar James Cloos avatar  avatar  avatar

urlrewrite-safari's Issues

Not working

Is this built for Safari 7.0.6? I'm looking to redirect www.amazon.com to smile.amazon.com (as I often forget to go to the later). I was excited to find this extension but disappointed to discover it isn't working for me. I am seeing no redirection occur. It simply loads amazon.com.

URL rewrite happens before you commit to URL

I expected the rewrite to happen when I hit Enter, but instead when I start typing the first few characters of the URL, and Safari auto-completes to the base URL I have configured, the extension redirects me right away to the rewrite URL.

This is unexpected behavior, as I may choose not to go to the URL that's being auto-completed. I think the behavior should only work when you hit Enter in the address bar.

Safari Version 10.1.1 (12603.2.4)

Not specifying rewrite URL makes you unable to visit base URL

If I clear the rewrite URL part, and only have the base URL specified, I cannot visit the base URL. Hitting Enter leaves me with a blank page.

Real world use was that I had the rewrite URL badly configured, so I wanted to revisit the base URL to determine the correct URL to rewrite. So I cleared the 2nd part of the URL pair only, which was wrong. But it turns out I must clear the whole pair, or else I can't even visit the page at all.

Suggested improvement is to not do the URL rewrite if the rewrite URL is still blank. Thanks.

Breaks links that open in a new tab

They open in the current tab instead for some reason. If you right click on the link and select Open in New Tab it works correctly. But if you click a link that is supposed to target _blank, or if you just hold command and click a link, it opens in the current tab.

.safariextension is a Folder

Sijmen,

I'd love to use this extension, but when I download the zip (or clone in git, for that matter), the URL Rewrite.safariextension shows up as a folder instead of a package, and I can't find any way to convert it to a package. Could you upload the extension file to a place other than GitHub and link to it from the README file?

Cheers!

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.