mywot / chrome

WOT's Chrome extension
http://www.mywot.com/wiki/Chrome
GNU General Public License v3.0
8 stars 7 forks source link

Distinguish a context when opening mywot.com pages from an addon #11

Closed sorgoz closed 12 years ago

sorgoz commented 12 years ago

There are tons of visits from different sites, provided by warning screen.

We need to know, where visits are from - rating window, warning screen, or smthng else.

There are some prepared funcs in firefox-xul repo to do this.

https://github.com/mywot/firefox-xul/blob/master/content/util.js#L207 https://github.com/mywot/firefox-xul/blob/master/content/commands.js#L447 https://github.com/mywot/firefox-xul/blob/master/content/warning.js#L617

The first step: make a list of possible sources, like a addon-warning, addon-rw-viewscorecard, ...

sorgoz commented 12 years ago

List of links:

Where from code-name Rating window / WOT Logo addon-rw-logo Rating window / Settings addon-rw-settings Rating window / Guide addon-rw-guide Rating window / View Scorecard addon-rw-viewsc Rating window / My profile addon-rw-profile Rating window / Message (leads not always to mywot.com) addon-rw-msg Warning screen / View scorecard addon-warn-viewsc Warning screen / Rate site addon-warn-rate Popup (e.g. in search results) / view scorecard (by clicking everywhere inside popup) addon-popup

sorgoz commented 12 years ago

done