See attached patch. Screenshot of admin screen below. This patch adds a textarea to the admin screen that allows admins to enter CSS selectors (classes and IDs - whatever will be read by jQuery really) that extlink JS will skip over. This is handy if you have areas on the page (menus, blocks, etc.) that you want to not use the normal extlink options on.

Comments
Comment #1
sokrplare commentedComment #2
sokrplare commentedTweaked to fix issue if CSS exclusion doesn't match, yet
extIncludedoes.Comment #3
elachlan commentedI'm going to add my +1 to this as it is a good idea. I haven't tested the patch as of yet.
Comment #4
elachlan commentedThe issue #802562: Only apply in certain DIVs does something similar for including.
We should really merge them and make it "CSS Matching" with a section for both exclude and include.
Could you please re-roll the patch with that change?
Comment #5
sokrplare commentedReally good idea - unfortunately our contract for this project is up so I won't have time to reroll the patch. Might need this on the next contract and if so, will definitely reroll, but no guarantees right now.
Comment #6
elachlan commentedChanging title to be more descriptive.
Thanks for your help covenantd.
Just to make sure, Pattern Matching should take priority over CSS Matching.
Comment #7
sokrplare commentedHoping to crank this out. First tried applying the patch in #802562: Only apply in certain DIVs, but it is a mess against current version of code (3 years will do that to a patch :).
First step is rebasing this issue's patch against current dev - just a tiny change for that new "Do not include area tags with [sic] begin with mailto".
Comment #8
sokrplare commentedAlright, took a very different approach than #802562, but I think it is more consistent with how the pattern matching and CSS exclusion is done. Take a look and then let's get this added!
Comment #9
sokrplare commentedHere is a screenshot of the admin UI addition for reference.
Comment #10
elachlan commentedThanks, It looks pretty good. I will see about including it in the next couple of days.
If someone else can review it as well that would be good.
Comment #11
quicksketchThis looks great! This has been a missing piece of external links module for a long time. Thanks for taking the time to roll it as a patch. @elachlan thanks for all your work on the module and keep it up. :D
Comment #12
elachlan commentedCommited to Git for 7.x.
Thanks for your help covenantd!!
We need to roll a patch for version 6 and 8 now. I can do that over the next few days.
quicksketch, should we do a 7.x-dev release?
Comment #13
sokrplare commentedSweet!
Comment #14
quicksketchIt'd be better to do a new stable release. We shouldn't be encouraging or asking users to install dev releases. Plus we haven't had a new stable in almost 3 years, we probably have a lot of queued up fixes by now.
Comment #15
elachlan commentedAdded a new release!
I will do a release for 6.x once we finish all the ports.
Comment #16
elachlan commentedPatch for 6.x
Comment #17
elachlan commentedVersion parity :)
Comment #17.0
elachlan commentedAdding a few more words for Google-fu