Skip to content

Commit

Permalink
Hide sharing of events
Browse files Browse the repository at this point in the history
  • Loading branch information
Evgeny Zhlobo committed Jun 14, 2013
1 parent 9090af9 commit 7d9e6c7
Show file tree
Hide file tree
Showing 7 changed files with 37 additions and 6 deletions.
13 changes: 7 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@ Do you have problem with reading your personal news feed on vk.com like me? I do

**VKleaner can:**

- hide reposts by friends from group you're not subsribed.
- hide reposts by friends from other friends.
- hide posts with links on different sites.
- hide posts containig videos and musics.
- hide sharing of groups.
- hide posts by apps
- Hide reposts by friends from group you're not subsribed.
- Hide reposts by friends from other friends.
- Hide posts with links on different sites.
- Hide posts containig videos and musics.
- Hide sharing of groups.
- Hide sharing of events.
- Hide posts by apps.

If you're afraid to miss something important you can setup application that it will collapse all unwanted posts rather than deleting it from feed. Collapsed messages will contain author's name and you can expand it just by click.

Expand Down
4 changes: 4 additions & 0 deletions _locales/en/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@
"message": "Hide sharing of groups?",
"description": "Option name"
},
"options_eventShare": {
"message": "Hide sharing of events?",
"description": "Option name"
},
"options_fromApps": {
"message": "Hide posts by apps?",
"description": "Option name"
Expand Down
4 changes: 4 additions & 0 deletions _locales/ru/messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@
"message": "Скрывать рассказы о группах?",
"description": "Имя опции"
},
"options_eventShare": {
"message": "Скрывать рассказы о событиях?",
"description": "Имя опции"
},
"options_fromApps": {
"message": "Скрывать сообщения от приложений?",
"description": "Имя опции"
Expand Down
1 change: 1 addition & 0 deletions js/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ var
"clearvk_withVideo": 0,
"clearvk_withAudio": 0,
"clearvk_groupShare": 0,
"clearvk_eventShare": 0,
"clearvk_fromApps": 0
},

Expand Down
7 changes: 7 additions & 0 deletions js/feed.detectors.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,13 @@ var detect = {
return post.find( ".group_share" ).size() > 0;
},

/**
* Is post about event
*/
eventShare: function( post ) {
return post.find( ".event_share" ).size() > 0;
},

/**
* Is post by app
*/
Expand Down
7 changes: 7 additions & 0 deletions options.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,13 @@ <h1>VKleaner: </h1>
</div>
</label>
</div>
<div class="option" id="clearvk_eventShare">
<label>
<div class="name"></div><div class="params">
<input type="checkbox" name="clearvk_eventShare" value="0">
</div>
</label>
</div>
<div class="option" id="clearvk_fromApps">
<label>
<div class="name"></div><div class="params">
Expand Down
7 changes: 7 additions & 0 deletions popup.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,13 @@ <h1>VKleaner: </h1>
</div>
</label>
</div>
<div class="option" id="clearvk_eventShare">
<label>
<div class="name"></div><div class="params">
<input type="checkbox" name="clearvk_eventShare" value="0">
</div>
</label>
</div>
<div class="option" id="clearvk_fromApps">
<label>
<div class="name"></div><div class="params">
Expand Down

0 comments on commit 7d9e6c7

Please sign in to comment.