Permalink
Browse files

Added feature to hide „seen“ of your chatpartner.

  • Loading branch information...
1 parent 0e5b436 commit 124bc8b0a2bff042cf4c216723e4e03fa919e8f9 @swege committed Mar 12, 2013
Showing with 21 additions and 2 deletions.
  1. +2 −1 background.js
  2. +4 −0 fancy-settings/source/i18n.js
  3. +7 −0 fancy-settings/source/manifest.js
  4. +7 −0 hide_chat_seen.js
  5. +1 −1 manifest.json
View
@@ -12,7 +12,8 @@ _gaq.push(['_trackPageview']);
var settings = new Store('settings', {
'show_mark_as_read': true,
'block_chat_seen': true,
- 'block_typing_indicator': false
+ 'block_typing_indicator': false,
+ 'hide_chat_seen': false
// TODO
// 'block_group_seen': false
})
@@ -19,6 +19,10 @@ this.i18n = {
'en': 'General',
'de': 'Allgemein'
},
+ 'hide_chat_seen': {
+ 'en': 'Do not show me if others read my messages. Reload of facebook page required.',
+ 'de': 'Zeige mir nicht an, dass andere meine Nachrichten gelesen haben. Neuladen der Facebook Seite erforderlich.'
+ },
'interface': {
'en': 'Interface',
'de': 'Oberfläche'
@@ -11,6 +11,13 @@ this.manifest = {
},
{
'tab': i18n.get('general'),
+ 'group': i18n.get('interface'),
+ 'name': 'hide_chat_seen',
+ 'type': 'checkbox',
+ 'label': i18n.get('hide_chat_seen')
+ },
+ {
+ 'tab': i18n.get('general'),
'group': i18n.get('blocks'),
'name': 'block_chat_seen',
'type': 'checkbox',
View
@@ -0,0 +1,7 @@
+$(document).ready(function() {
+ chrome.extension.sendRequest({action: 'getSettings'}, function(settings) {
+ if (settings.hide_chat_seen) {
+ $('html > head').append($('<style>div.seen { display: none; }</style>'))
+ }
+ })
+})
View
@@ -9,7 +9,7 @@
"content_scripts": [
{
"matches": ["*://*.facebook.com/*"],
- "js": ["jquery.js", "read_button.js"],
+ "js": ["jquery.js", "read_button.js", "hide_chat_seen.js"],
"css": ["read_button.css"]
}
],

0 comments on commit 124bc8b

Please sign in to comment.