Forums: Index → Support Requests → Disabling notifications from other communities
Fandom's forums are a place for the community to help other members.
To contact staff directly or to report bugs, please use Special:Contact.
To contact staff directly or to report bugs, please use Special:Contact.
How do I disable the notifications that I keep getting from StarWars.fandom.com? I have only contributed there once, don’t plan on continuing any time too soon, but I am getting these annoying notifications anyway.
Please stop this. —(((Rottweiler))) (Woof? Ruff!) 07:38, December 30, 2020 (UTC)
Try this script (You can import it on Special:Mypage/global.js) - Profile (M/T • G • ABC • CBS • V-CBS • CN) 07:40, December 30, 2020 (UTC)
- The new script IgnoreNotifications may be a better choice. Nam 05:45, December 31, 2020 (UTC)
- It isn’t working. —(((Rottweiler))) (Woof? Ruff!) 23:02, January 20, 2021 (UTC)
- Your personal JS page in a specific wiki is called common.js, not global.js. global.js exists on Community Central and on the temporary central UCP wiki. My recommendation is that you use the last one.
- Also, this script requires configuration to let it know which notifications you want to ignore. The full code you need is
- It isn’t working. —(((Rottweiler))) (Woof? Ruff!) 23:02, January 20, 2021 (UTC)
if (!window.andrewds1021) {
window.andrewds1021 = {
ignore_notifications: {}
};
} else if (!window.andrewds1021.ignore_notifications) {
window.andrewds1021.ignore_notifications = {};
}
window.andrewds1021.ignore_notifications.filters = {
types: "announcement-target",
wiki_names: StarWars;
};
importArticles({
type: 'script',
articles: [
'u:dev:MediaWiki:IgnoreNotifications.js',
]
});
- Also, make sure personal JS is enabled on your Preferences
- Nam 23:25, January 20, 2021 (UTC)
- It might be better to use the wiki's ID instead because I am fairly certain "StarWars" isn't the correct name. Also, you forgot to use quotes around it to make it a string instead of a variable. As a side note, IgnoreNotifications accepts the configuration for AnnouncementsIgnore and auto-converts it to a filter. So if you have been using AnnouncementsIgnore, all you have to do is change the import.
if (!window.andrewds1021) { window.andrewds1021 = { ignore_notifications: {} }; } else if (!window.andrewds1021.ignore_notifications) { window.andrewds1021.ignore_notifications = {}; } window.andrewds1021.ignore_notifications.filters = { types: 'announcement-target', wiki_ids: 147 }; importArticles({ type: 'script', articles: [ 'u:dev:MediaWiki:IgnoreNotifications.js' ] });
- Andrewds1021 (talk) 21:18, 31 January 2021 (UTC)