Hint StackExchange pentadactyl voting buttons

How can I get Pentadactyl (Vimperator plug) to prompt arrows to vote on StackExchange?

For example, I want to review this question and answer, but Pentadactyl does not give a hint of voting buttons, even after I deleted my .pentadactylrc file and restarted Firefox.

Is there a way to view the current mapped keys in Vim?

I think I'm not going to hint at any questions, but I'm not 100% sure. I have never had a problem with Vimperator on StackOverflow, and I expect Pentadactyl to have most, if not all of the features that Vimperator does.

I suspect that the parameter description hinttags' 'ht'on this page describing Pentadactyl settings is the key to this.

http://5digits.org/help/pentadactyl/options.xhtml

Unfortunately, I would not know a CSS selector or XPath expression from my elbow. This solution, and if so, which CSS selector describes the SO vote button? If not, what is the solution?

+4
source share
1 answer

Run the following command.

:set hinttags+=a[class]

Add this line to your pentadactylrc to make it permanent.

a[class]is the CSS selector in the format tag [attribute = "value"]. Thus, it matches all the anchor tags with the class attribute on the page.

If you check the source of this page, you will see that the arrows for voting are described using:

<a class="vote-up-off" title="This answer is useful">up vote</a>

StackExchange, :

:set hinttags+=a[class^="vote"],a[class^="star"]

, "vote" "star".

+6

All Articles