Describe the bug
Special characters are rendered in their URL encoded form in the search box. This only happens when the user's query doesn't already contain the Pinterest block part. E.g. if I search for something using special characters and then edit my search query (not touching the Pinterest block part) the url encoded characters are turned back into their standard form.
To Reproduce
Steps to reproduce the behavior:
Go to the Google search page
Clear the search box
Enter the ' character in the search box and search
See ' rendered as %27
Expected behavior
' and other special characters should be rendered in their standard form
After searching for something on Google, if the user updates their search without touching the Pinterest site exclusion, the site exclusion will get appended again to the search. There's already a check in place to avoid this but something's not working right.
Some of Google's "instant results" like the Oxford language definitions won't show up with the site filter applied to the search query.
As a user, I would like to have a quick way of enabling and disabling the extension without having to go into the Chrome extension settings to do that. This way I could quickly toggle the extension on and off if I needed, for example, Google a word and see it's definition.
The block string was moved from the end of the user query to the beginning in PR #7, but should instead be reverted back to the end of the user query. Prepending the block string makes it easier for users to edit their own queries and to do subsequent searches, but unfortunately this breaks some of the search features. For example, if I was to limit my searches to a certain domain, e.g. "google chrome site:reddit.com" and the block string was prepended to my query, the query would end up being "-site:pinterest.* google chrome site:reddit.com". The outcome of this is that I get back only a few results instead of getting a list of all the hits from my specified domain. Appending the block string fixes this situation.