{"id":16672817,"url":"https://github.com/brcontainer/stack-exchange-notifications","last_synced_at":"2025-04-09T20:02:16.353Z","repository":{"id":34303935,"uuid":"38215895","full_name":"brcontainer/stack-exchange-notifications","owner":"brcontainer","description":"Add-ons for Stack Exchange sites, like: askdifferent, askubuntu, serverfault, stackoverflow and superuser","archived":false,"fork":false,"pushed_at":"2020-11-22T08:00:12.000Z","size":636,"stargazers_count":21,"open_issues_count":3,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-09T20:01:33.894Z","etag":null,"topics":["chrome","extension","firefox","notifications","opera","stackexchange","stackoverflow"],"latest_commit_sha":null,"homepage":"http://stackapps.com/q/6455/33963","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/brcontainer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-06-28T22:02:59.000Z","updated_at":"2022-05-19T12:45:46.000Z","dependencies_parsed_at":"2022-09-14T03:40:28.281Z","dependency_job_id":null,"html_url":"https://github.com/brcontainer/stack-exchange-notifications","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brcontainer%2Fstack-exchange-notifications","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brcontainer%2Fstack-exchange-notifications/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brcontainer%2Fstack-exchange-notifications/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/brcontainer%2Fstack-exchange-notifications/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/brcontainer","download_url":"https://codeload.github.com/brcontainer/stack-exchange-notifications/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248103864,"owners_count":21048245,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["chrome","extension","firefox","notifications","opera","stackexchange","stackoverflow"],"created_at":"2024-10-12T12:07:23.840Z","updated_at":"2025-04-09T20:02:16.311Z","avatar_url":"https://github.com/brcontainer.png","language":"JavaScript","readme":"## Installing StackExchangeNotifications\n\n- Opera: https://addons.opera.com/en/extensions/details/stackexchange-notifications/\n- Firefox: https://addons.mozilla.org/en-US/firefox/addon/stackexchangenotifications/\n\n\u003e **Note:** requires Firefox 48+, extension uses [`web_accessible_resources`](https://developer.mozilla.org/en-US/Add-ons/WebExtensions/manifest.json/web_accessible_resources) only supported in 48 version\n\n## About StackExchangeNotifications\n\n![preview](http://i.stack.imgur.com/EM13u.png)\n\nThis extension has been created for you to stay connected on their StackExchange sites when you're doing other activities:\n\n- Notifies you of new messages in \"inbox\"\n- Notifies you when your achievements change (downvotes, upvotes, badges)\n- Quick read of \"inbox\"\n- Quick read of \"achievements\"\n\n## StackExchangeNotifications screenshots\n\n- Inbox: [Inbox](http://i.stack.imgur.com/6FS0H.png)\n\n- Achievements and score: [Achievements/score/badges](http://i.stack.imgur.com/2LqNo.png)\n\n![inbox and achievements in your browser](http://i.stack.imgur.com/YgDIV.png)\n\n## For developers\n\nFor debugging or testing push notifications there are some functions:\n\n| Function | Description |\n| --- | --- |\n| `.setAchievements(int achievements [, int score])` | Use integers in two parameters |\n| `.setInbox(int msgs)` | Use integers, may be 0, 1 or higher |\n| `.update()` | After use `setAchievements` and/or `setInbox`, perform this function, this function show results in \"push notifications\" over icon and pop-up tabs |\n| `.getAchievements()` | Get current total achievements, return a object like `{score: int, acquired: int}` |\n| `.hasCache()` | Return `true` if has cache or `false` if no |\n| `.clearCache([, type])` | Clear inbox and achievements cache, if first parameter empty clear cache from inbox and achivements, or specific inbox and achievements in first parameter |\n| `.meta()` | Get appname and version, return object like this `{appname: string, version: string}` |\n| `.getInbox()` | Get total messages in Inbox, return `int` |\n\n### Debugging in Opera or Chrome\n\n- Click with right mouse button, and select \"Inspect pop-up\"\n- Go to Console tab in \"Developer Tools\" and type your commands\n\n(More details: https://developer.chrome.com/extensions/tut_debugging)\n\n### Debugging in Firefox\n\n\u003e **Note:** Requires Firefox 48+ (or Developer Edition) for load of temporary add-on\n\n- Type `about:debugging` in \"address bar\" (in new firefox version access `about:debugging#/runtime/this-firefox`)\n- Click in \"Load Temporary Add-on\"\n- Go to `chrome` folder (from this project) and select `manifest.json`\n- After add-on is showed, click on \"Debug\" button (on right extension)\n- In Console tab type your commands\n\n(More details: https://developer.mozilla.org/en-US/docs/Tools/about:debugging)\n\n### Examples\n\nShow fake new score:\n\n```javascript\nStackExchangeNotifications.setAchievements(300);\nStackExchangeNotifications.update();\n```\n\nShow fake new badges or privileges:\n\n```javascript\nStackExchangeNotifications.setAchievements(-1, 800);\nStackExchangeNotifications.update();\n```\n\nShow fake new achievements score, badges and privileges:\n\n```javascript\nStackExchangeNotifications.setAchievements(20, 800);\nStackExchangeNotifications.update();\n```\n\nShow fake new messages in Inbox:\n\n```javascript\nStackExchangeNotifications.setInbox(981);\nStackExchangeNotifications.update();\n```\n\nTwo commands simultaneously:\n\n```javascript\nStackExchangeNotifications.setAchievements(10, 300);\nStackExchangeNotifications.setInbox(981);\nStackExchangeNotifications.update();\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrcontainer%2Fstack-exchange-notifications","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrcontainer%2Fstack-exchange-notifications","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrcontainer%2Fstack-exchange-notifications/lists"}