grssam / UIEnhancer

Source code for UI Enhancer addon
https://addons.mozilla.org/en-US/firefox/addon/ui-enhancer/
51 stars 22 forks source link

Awesome URL customization #104

Open wilzbach opened 10 years ago

wilzbach commented 10 years ago

I know that generally modifying the url is generally a bad idea.

Nevertheless

So here I looked at some sample URLs and tried to figure out what the main requirements of such an format could be. Attached is a list of all issues I encountered so far. I would be glad if I can help to implement this feature.

How the format could be

ignoreparams ignorepath =, nofileextension singleparamflag

etc.

https://www.google.de/search?client=ubuntu&channel=fs&q=gmail&ie=utf-8&oe=utf-8&gws_rd=cr&ei=M9qXUuOUOuWr7AbK0oCICw

f48754d95c191f2f329a618ec91320d4940d995a89b84ef36924c0fb25bf0a9d1da85dcd6b0915177c8444fc47e7dbc75d462ae4ed345fad php

How it should be: google.de > search > dummy search in google

Parameters

ignoreparams www.google.de hannel,ie,oe,gws_rd,ei

Example 2: Gmail

https://mail.google.com/mail/u/0/?shva=1#inbox

screenshot - 11292013 - 01 12 57 am

google.de > Mail > Inbox

Parameters

ignoreparams mail.google.com shva
ignorepath mail.google.com Mail=2

Example 3: askubuntu

http://askubuntu.com/questions/21052/kernel-panic-troubleshooting-for-dummies

screenshot - 11292013 - 01 26 49 am

How it should be askubuntu.com > Questions > Kernel panic trouble for dummies

Parameters

ignorepath askubuntu.com questions=1

Example 4: No Filenames & single parameter

http://ubuntuforums.org/showthread.php?t=799479

screenshot - 11292013 - 01 30 58 am

ubuntuforums.org > showthread > 799479

Parameters

nofileextension ubuntuforums.org php
singleparamflag ubuntuforums.org

Example 5: Amazon

https://www.amazon.de/gp/product/B0054PDOV8/gcrnsts/278-6620291-0012555

screenshot - 11292013 - 01 35 43 am

Amazon.de > product > 278-6620291-0012555

Note: Should we give the user the option to interact with the page-title?

Another url could be: http://www.amazon.de/s/ref=nb_sb_noss_2?__mk_de_DE=%C3%85M%C3%85%C5%BD%C3%95%C3%91&url=search-alias%3Daps&field-keywords=dummy&rh=i%3Aaps%2Ck%3Adummy

Amazon > s > dummy

ignoreparams amazon.de __mk_de_DE,rh
ignorepath amazon.de gp=1
ignorepath amazon.de ^s=1
ignorepath amazon.de product/.*/.*/.*/=2,1
singleparamflag amazon.de