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

Exclude certain fields from using wasavi #96

Closed
TreyBlancher opened this issue Jul 29, 2015 · 3 comments
Closed

Exclude certain fields from using wasavi #96

TreyBlancher opened this issue Jul 29, 2015 · 3 comments

Comments

@TreyBlancher
Copy link

I use SalesForce on a daily basis at work, in Chrome on OSX. Everything works great, but
there's a feature called Chatter which posting fields have a lot of Javascript embedded
in it. One feature is I can type @ and some user or group name, and I'll get a popup
list allowing me to select the item I want. This will put something like @[John Doe] in
the text. Unfortunately if I write @[John Doe] in wasavi, SalesForce doesn't recognize
it as a linked user when I post the Chatter comment.

The source of the page allows me to see the name of this input field. If I could exclude
the input field by name, similar to the way whole URLs are excluded, that would be very
nice. I don't want to exclude all of SalesForce for me, but certain fields are just
trouble.

@akahuku
Copy link
Owner

akahuku commented Jul 31, 2015

In wasavi's options page, there is a blacklist to prevent wasavi from activation per url.
Would you like to control an activation of wasavi per element of page?
So I have an idea which extends the blacklist syntax:

[url] ( [space]+ [css selector expression] )?

Specifically for example:

http://example.net/    *[name="some-name"]

This line will prevent wasavi from activation for an element which the name is "some-name" on "http://example.net". Of course, any elements would also be able to be chosen according to the contents of a selector.
How about this?

@TreyBlancher
Copy link
Author

That sounds good! I can inspect the HTML and determine the name of the control
which should be blacklisted.

On Fri, Jul 31, 2015 at 10:02:25AM -0700, akahuku wrote:

In wasavi's options page, there is a blacklist to prevent wasavi from
activation per url.
Would you like to control an activation of wasavi per element of page?
So I have an idea which extends the blacklist syntax:

[url]([space]+ [css selector expression])?

Specifically for example:

http://example.net/ *[name="some-name"]

This line will prevent wasavi from activation for an element which the
name is "some-name" on "[1]http://example.net". Of course, any elements
would also be able to be chosen according to the contents of a selector.
How about this?

--
Reply to this email directly or [2]view it on GitHub.

Reverse link: [3]unknown

References

Visible links

  1. http://example.net/
  2. Exclude certain fields from using wasavi #96 (comment)
  3. Exclude certain fields from using wasavi #96 (comment)

@TreyBlancher
Copy link
Author

This works for the main field I tried it on, thank you very much! When I get my finances
in order I will throw some coin your way.

Thanks again for a great extension, you have NO IDEA how many eons I've been wanting
something like this.

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

No branches or pull requests

2 participants