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

Cannot find how to clear some urls #50

Closed
OhSoGood opened this issue Jul 20, 2014 · 3 comments
Closed

Cannot find how to clear some urls #50

OhSoGood opened this issue Jul 20, 2014 · 3 comments

Comments

@OhSoGood
Copy link

Hi,

Thanks a lot for this ext. I tried to make it clean extra url schemes, by completing the regex in the "Remove from links" list, but nothing happen. Could you help me cleaning this urls? (I know well regex in several languages, not so well in js)

  1. Clean the xtor=xx-xxxx where x are alphanumeric (number of x is not fixe)
    Ex: http://myexample.com/mypath/pysubpat?xtor=AD-9681
  2. decypher url for this:
    http://myexample.com/url/?e=ccHf4xTB73z7EEmQTpYX22k8ob9a7Uimf4O7Ae3GeMs%3D

Thanks a lot for your time and effort!

@diegocr
Copy link
Owner

diegocr commented Aug 22, 2014

  1. "Remove from links" removes any key=value pair for the provided key. Hence, you just have to insert "xtor" there.
  2. Er, no idea... perhaps posting the website where that is used could be of help.

@diegocr diegocr changed the title Cannot find how to block other url schemes Cannot find how to clear some urls Aug 22, 2014
@OhSoGood
Copy link
Author

Thanks for the answer. I have issue making it works. Example: on that page http://www.boursorama.com/actualites/francois-hollande-y-croit-toujours-c32b7db6b4387661559f4e3e4875f9b0 , you get that link "Lire la suite de l'article sur Le Parisien.fr" at the bottoms before the comments, which points to http://www.leparisien.fr/politique/francois-hollande-y-croit-toujours-23-08-2014-4081063.php#xtor=AD-32280599

I've tried both these values for My Remove From Links :
(?:ref|aff)\w_|xtor=[A-D0-9-]+|utm_\w+|(?:merchant|programme|media)ID
(?:ref|aff)\w_|xtor|utm_\w+|(?:merchant|programme|media)ID
Yet, I still get the xtor parts in the above url.

EDIT: got it. I didn't take the time to read about your Event Delegation Code. My apologize (and thanks for the plugin!)

A 2 cent-worth suggestion: use multi-line boxes for the settings of the plugin. That would be more usable.

@diegocr
Copy link
Owner

diegocr commented Aug 23, 2014

Yep, "Event Delegation" makes the addon very lightweight and responsive, catching links on-the-fly.

use multi-line boxes for the settings of the plugin. That would be more usable.

Atm we're using the Firefox's build-in interface to inject options in the add-on manager page, which doesn't allow more than that, something being considered is a "full-featured" standalone options window, probably by right-clicking the toolbar button.

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

No branches or pull requests

2 participants