État du filtre de notification GitHub

version de développement github-notification-inbox-toggle

// ==UserScript==
// @name                  GitHub Notification Inbox Toggle
// @name:aa               GitHub maysaxxagoogih maydaddaarah araca
// @name:ab               GitHub ардырра Афильтр Астатус
// @name:af               GitHub -kennisgewingfilterstatus
// @name:ak               GitHub amanneɛbɔ Filter tebea .
// @name:am               የ Github የማሳወቂያ ማጣሪያ ሁኔታ
// @name:ar               حالة مرشح إشعار جيثب
// @name:as               GitHub অধিসূচনা ফিল্টাৰৰ অৱস্থা
// @name:av               GitHub Уведомление Фильтровая статуя
// @name:ay               GITHUB Notificación Filtro Estado ukax 1.1.
// @name:az               Github bildiriş filtri statusu
// @name:ba               GitHub хәбәр итеү фильтрлау статусы
// @name:be               Статус фільтра апавяшчэння Github
// @name:bg               Състояние на филтъра за уведомяване на GitHub
// @name:bh               गिटहब सूचना फिल्टर के स्थिति
// @name:bm               Github notification filter cogoya .
// @name:bn               গিটহাব বিজ্ঞপ্তি ফিল্টার স্থিতি
// @name:bo               GitHub བརྡ་ཐོ་ཚགས་རླུང་གནས་སྟངས།
// @name:br               Statud sil ar sil da GitHub
// @name:bs               Status filtera GitHub notifikacije
// @name:ca               Estat del filtre de notificació de GitHub
// @name:ce               GitHub хаамбаран фильтр статус
// @name:ceb              Ang kahimtang sa filter sa Github
// @name:ch               Manma’å’ñao na Manma’å’ñao na Manma’å’ñao na Manma’å’ñao
// @name:ckb              دۆخی فلتەری ئاگادارکردنەوەی GitHub
// @name:co               Status di Filtru di Notificazione di Github
// @name:cs               Stav filtru oznamování GitHub
// @name:cv               GitHub Пĕлтерÿ Фильтр статусĕ
// @name:cy               Statws Hidlo Hysbysiad GitHub
// @name:da               Github -meddelelsesfilterstatus
// @name:de               Status des Github -Benachrichtigungsfilters
// @name:dv               ގިތަބް ނޮޓިފިކޭޝަން ފިލްޓަރ ސްޓޭޓަސް
// @name:dz               GitHub བརྡ་དོན་ཚགས་མའི་གནས་ཚུལ།
// @name:ee               Github Nyatakaka ƒe Nɔnɔme ƒe Nɔnɔme .
// @name:el               Κατάσταση φίλτρου ειδοποίησης GitHub
// @name:en               GitHub Notification Filter Status
// @name:en-GB            GitHub Notification Filter Status
// @name:eo               Statuso de filtrilo de GitHub -sciigo
// @name:es               Estado del filtro de notificación de github
// @name:es-419           Estado del filtro de notificación de github
// @name:et               GitHubi teavitusfiltri olek
// @name:eu               GitHub jakinarazpen iragazkiaren egoera
// @name:fa               وضعیت فیلتر اعلان GitHub
// @name:ff               Darnde Filter Notifikaasiyoŋ GitHub
// @name:fi               GitHub -ilmoitussuodattimen tila
// @name:fil              Katayuan ng filter ng GitHub
// @name:fj               Giub Seprative espitext icocovi de .
// @name:fo               GitHub Fráboðanarfilturstøða
// @name:fr               État du filtre de notification GitHub
// @name:fr-CA            État du filtre de notification GitHub
// @name:fy               Github notifikaasje filterstatus
// @name:ga               Stádas Scagaire Fógra GitHub
// @name:gd               Inbhe sìodation brìoghmhor Github
// @name:gl               Estado do filtro de notificación de GitHub
// @name:gn               GitHub marandu filtro estado .
// @name:gsw-berne        GitHub Notification Filter Status
// @name:gu               ગિટહબ સૂચના ફિલ્ટર દરજ્જો
// @name:gv               Cur-my-ner Stayd y GitHub
// @name:ha               Matsayi na Github
// @name:he               סטטוס סינון התראה על Github
// @name:hi               Github अधिसूचना फ़िल्टर स्थिति
// @name:hmn              Github Ceeb Toom Lim Cov Lus
// @name:hr               Status filtra GitHub obavijesti
// @name:ht               GitHub Notifikasyon Filter Estati
// @name:hu               GitHub értesítési szűrő állapota
// @name:hy               Gitub ծանուցման ֆիլտրի կարգավիճակը
// @name:id               Status Filter Pemberitahuan GitHub
// @name:ig               Ọnọdụ ọkwa Github
// @name:is               Github tilkynningarsíu staða
// @name:it               Stato del filtro di notifica GitHub
// @name:iu               GitHub ᖃᐅᔨᒃᑲᐃᔾᔪᑎ ᑕᑕᑎᕆᓂᖅ ᖃᓄᐃᓕᖓᓕᕐᒪᖔᑦ
// @name:ja               GitHub通知フィルターステータス
// @name:jv               Status Filter Github NETTER
// @name:ka               Github შეტყობინების ფილტრის სტატუსი
// @name:kg               Status ya Filtre ya Kuzabisa ya GitHub
// @name:kk               Гитуб туралы хабарландыру сүзгісі күйі
// @name:kl               GitHub-ip nalunaarutaa filter-imik suliaqarneq
// @name:km               ស្ថានភាពតម្រងសេចក្តីជូនដំណឹង Github
// @name:kn               Github ಅಧಿಸೂಚನೆ ಫಿಲ್ಟರ್ ಸ್ಥಿತಿ
// @name:ko               Github 알림 필터 상태
// @name:kr               GitHub Notificationbe Status
// @name:ku               GITHUB NOTIFICATION Rewşa Filter
// @name:kv               GitHub юӧртан фильтр статус .
// @name:ky               Github билдирүүсү чыпка статусу
// @name:la               Gitub Notification Filter Status
// @name:lb               Github Notifikatioun Filter Status
// @name:lg               GITHUB Okumanyisa embeera y’okusengejja .
// @name:ln               GitHub notification Filtre Ezalela .
// @name:lo               ສະຖານະການກັ່ນຕອງແຈ້ງການ GIFHUB
// @name:lt               „GitHub“ pranešimo filtro būsena
// @name:lv               GitHub paziņojuma filtra statuss
// @name:mg               Sata fanivanana an’i Github
// @name:mh               Kōjjeļā eo an GitHub .
// @name:mi               Tūnga Tātaritanga GitHAB
// @name:mk               Статус на филтер за известување за GitHub
// @name:ml               GitHub Netivipion ഫിൽറ്റർ നില
// @name:mn               Github мэдэгдлийн шүүлтүүрийн статус
// @name:mo               Starea filtrului de notificare Github
// @name:mr               गीथब सूचना फिल्टर स्थिती
// @name:ms               Status penapis pemberitahuan github
// @name:mt               Status tal-filtru tan-notifika github
// @name:my               GitHub Notification filter status
// @name:nb               GitHub varslingsfilterstatus
// @name:ne               Githuub अधिसूचना फिल्टर स्थिति
// @name:nl               GitHub -meldingsfilterstatus
// @name:nr               Ukukhiqika Kukhiqiza .
// @name:ny               Mkhalidwe Wodziwitsa za Githob
// @name:oc               Estatut de filtre de notificacion GitHub .
// @name:om               Haala Filtara Beeksisa Github .
// @name:or               ଗିଥବ୍ ବିଜ୍ଞପ୍ତି ଫିଲ୍ଟର ସ୍ଥିତି |
// @name:os               GitHub хъусынгæнинаг фильтры статус
// @name:pa               ਗਿੱਟਬ ਨੋਟੀਫਿਕੇਸ਼ਨ ਫਿਲਟਰ ਸਥਿਤੀ
// @name:pl               Github Powiadomienie Status filtra
// @name:ps               د ګیټوب خبرتیا د فلټر حالت
// @name:pt               Status do filtro de notificação do github
// @name:pt-BR            Status do filtro de notificação do github
// @name:pt-PT            Status do filtro de notificação do github
// @name:qu               GitHub Willakuy Filtro estado .
// @name:rn               Imenyekanisha ry’Imenyekanisha rya GitHub
// @name:ro               Starea filtrului de notificare Github
// @name:ru               Статус фильтра GitHub
// @name:rw               Github Kumenyesha Filter
// @name:sa               Github अधिसूचना फ़िल्टर स्थिति .
// @name:sd               گٽب نوٽيفڪيشن فلٽر اسٽيٽس
// @name:se               GitHub-dieđihanfilterejeaddji stáhtus
// @name:sg               GitHub ti fango tënë Status .
// @name:sh               ГитХуб Статус пријаве за нотификацију
// @name:si               GitHub දැනුම්දීම් පෙරහන් තත්ත්වය
// @name:sk               Stav filtra github
// @name:sl               Status filtra za obveščanje GitHub
// @name:sm               GitBub Togafitiga Fimu Vaega
// @name:sn               GitHub inozivisa firita mamiriro
// @name:so               Heerka ogeysiinta Githab
// @name:sq               Statusi i filtrit të njoftimit GitHub
// @name:sr               ГитХуб Статус пријаве за нотификацију
// @name:ss               Simo Sekuhlunga Sesatiso se-GitHub
// @name:st               Boemo ba khale ba khalemelo
// @name:su               Status filter Github
// @name:sv               Github Notification Filter Status
// @name:sw               Hali ya Kichujio cha Arifa ya GitHub
// @name:ta               கிதுப் அறிவிப்பு வடிகட்டி நிலை
// @name:te               గితుబ్ నోటిఫికేషన్ ఫిల్టర్ స్థితి
// @name:tg               Ҳолати филтрии Github
// @name:th               สถานะตัวกรองการแจ้งเตือน GitHub
// @name:ti               ናይ GITHUB መፍለጢ መጽረዪ ኩነታት
// @name:tk               "Github" habarnamasy süzgüç ýagdaýy
// @name:tl               Katayuan ng filter ng GitHub
// @name:tn               Kitsiso ya Kitsiso ya GitHub
// @name:to               Tu’unga ’o e Faka’ilo ’o e GitHub
// @name:tr               GitHub Bildirim Filtresi Durumu
// @name:ts               Xiyimo xa xisefo xa xitiviso xa GitHub .
// @name:tt               Gitub notoration фильтр статусы
// @name:tw               GitHub amanneɛbɔ Filter tebea .
// @name:ty               GitHub Status
// @name:ug               GitHub ئۇقتۇرۇش سۈزگۈچ ھالىتى
// @name:uk               Статус фільтра повідомлення Github
// @name:ur               گٹ ہب نوٹیفیکیشن فلٹر کی حیثیت
// @name:uz               Github haqida xabar berish Filtrov holati
// @name:ve               Tshiimo tsha u Ṱoḓa tsha u Ḓivhadzwa nga GitHub
// @name:vi               Trạng thái bộ lọc thông báo GitHub
// @name:wo               Doxalinu leeralu yëgleb GitHub
// @name:xh               I-Githib yeSaziso seSimo seSiciko
// @name:yi               Github אָנזאָג פילטער סטאַטוס
// @name:yo               Ipo Ibaraẹnisọrọ Githib Pip
// @name:zh               GitHub 通知筛选状态
// @name:zh-CN            GitHub 通知筛选状态
// @name:zh-HK            GitHub 通知篩選狀態
// @name:zh-MO            GitHub 通知篩選狀態
// @name:zh-MY            GitHub 通知筛选状态
// @name:zh-SG            GitHub 通知筛选状态
// @name:zh-TW            GitHub 通知篩選狀態
// @name:zu               Isimo sokuhlunga sesaziso se-GitHub
// @description           GitHub 收件箱中隐藏或显示完成通知
// @description:aa        uluuluka-fokkaaqo-saqabi-taqabi-toggle daddosih bicsa
// @description:ab        github-рдырра-инбокс-тогл аҿиаратә версиа
// @description:af        GitHub-Notification-Inbox-Toggle Development Version
// @description:ak        GitHub-Notification-inbox-toggle nkɔso nkyerɛase .
// @description:am        የ Github- ማስታወቂያ-የገቢ መልእክት ሳጥን - የልማት ስሪት
// @description:ar        GitHub-Notification-Inbox-Toggle إصدار تطوير
// @description:as        Github-Notification-inbox-toggle বিকাশ সংস্কৰণ
// @description:av        github-notification-inbox-boggle развитие развития
// @description:ay        GitHub-Notificación-Inbox-Toggle Desarrollo ukax mä jach’a uñacht’äwiwa.
// @description:az        Github-bildiriş-Gələnlər qutusu - keçid inkişaf etiketi
// @description:ba        github-хәбәр итеү-инбокс-тоггл үҫеш версияһы
// @description:be        Версія распрацоўкі Thitub-Notification-Toggle-Toggle
// @description:bg        Версия за разработка на GitHub-Notification-inbox-toggle
// @description:bh        गिटहब-सूचना-इनबॉक्स-टॉगल विकास संस्करण 1।
// @description:bm        GitHub-Notification-Inbox-Toggle Development version .
// @description:bn        গিথুব-নোটিফিকেশন-ইনবক্স-টগল ডেভলপমেন্ট সংস্করণ
// @description:bo        གྷི་ཐབ་-བརྡ་ཐོ-ཡིག་སྒྲོམ་གྱི་འཕེལ་རྒྱས་ཐོན་རིམ།
// @description:br        stumm diorren gititub-kemenn-inbox-degemer
// @description:bs        GitHub-obavijest-inbox-toggle verzija za razvoj
// @description:ca        GitHub-Notification-Inbox-Toggle Versió
// @description:ce        github-нотификаци-инбокс-тог кхиоран верси
// @description:ceb       Ang bersyon sa pagpalambo sa Github-Inbox-Idgle-toggle
// @description:ch        gi inob-ma-notasion-ña i manma’gås-ña.
// @description:ckb       Github-Notification-Inbox-Toggle وەشان
// @description:co        GitHub-Notificazione Inbox-Toggle Formazioni di sviluppu
// @description:cs        Vývojová verze GitHub-Inbox-Toggle
// @description:cv        github-пĕлтерÿ-пĕлтерÿ-пĕлтерÿ-тÿрлетÿ версийĕн версийĕ
// @description:cy        Fersiwn Datblygu GitHub-Notification-Inbox-Toggle
// @description:da        Github-Notification-Inbox-Toggle Development Version
// @description:de        GitHub-Notification-in-Box-Toggle-Entwicklung Version
// @description:dv        ގިތަބް-ނޮޓިފިކޭޝަން-އިންބޮކްސް-ޓޮގްލް ޑިވެލޮޕްމަންޓް ވާޝަން
// @description:dz        གི་ཐུབ་-བརྡ་འཕྲིན་-inbox-Toggle གོང་འཕེལ་ཐོན་རིམ།
// @description:ee        github-nyatakaka-inbox-toggle ŋgɔyiyi ƒe tɔtrɔ .
// @description:el        Έκδοση ανάπτυξης GitHub-Notification-Inbox-Toggle
// @description:en        github-notification-inbox-toggle development version
// @description:en-GB     github-notification-inbox-toggle development version
// @description:eo        Github-Notification-Enkest-Toggle Development Version
// @description:es        Versión de desarrollo de github-notification-inbox-toggle
// @description:es-419    Versión de desarrollo de github-notification-inbox-toggle
// @description:et        GitHub-Notification-inbox-Toggle’i arendusversioon
// @description:eu        GitHub-notification-inbox-toggle garapen bertsioa
// @description:fa        نسخه توسعه GitHub-intification-inbox-toggle
// @description:ff        mbaydi ƴellitaare github-notific-toggle-toggle
// @description:fi        GitHub-Motification-Inbox-toggle-kehitysversio
// @description:fil       Github-Notification-Inbox-Toggle Development Bersyon
// @description:fj        githby sega ni vakadeitaki na kena mataqali .
// @description:fo        github-fráboðan-inbox-skifta menningarútgáva
// @description:fr        version de développement github-notification-inbox-toggle
// @description:fr-CA     version de développement github-notification-inbox-toggle
// @description:fy        GitHub-Notifikaasje-Postfek YN-TOGGLE UNDELVENTSFERSJE
// @description:ga        Leagan Forbartha GitHub-notification-inbox-toggle
// @description:gd        dreach leasachaidh a-steach-tog-tog-tog-toggle
// @description:gl        Versión de desenvolvemento de GitHub-Notification-Inbox-Toggle
// @description:gn        Versión desarrollo rehegua github-notification-inbox-toggle .
// @description:gsw-berne github-notification-inbox-toggle development version
// @description:gu        ગિટહબ-નોટિફિકેશન-ઇનબોક્સ-ટોગલ વિકાસ સંસ્કરણ
// @description:gv        keidjal-innigin-cowrey
// @description:ha        Github-sanarwar-shiga
// @description:he        גרסת פיתוח פיתוח של github-notification-in-box-toggle
// @description:hi        github-notification-inbox-toggle विकास संस्करण
// @description:hmn       Github-ceeb toom-inbox-toggle kev txhim kho version
// @description:hr        GitHub-notifical-inbox-toggle verzija za razvoj
// @description:ht        GitHub-Notifikasyon-Inbox-Toggle Devlopman Version
// @description:hu        GitHub-Notification-Inbox-Toggle fejlesztési változat
// @description:hy        GitHub-Notification-Inbox-Toggle Development տարբերակը
// @description:id        Versi Pengembangan GitHub-Notification-Inbox-Spry
// @description:ig        Gitb-Vinob-in Indox-iji usoro mmepe
// @description:is        Github-viti-inbox-Toggle þróunarútgáfa
// @description:it        GitHub-Notification-Inbox-Toggle Development Version
// @description:iu        github-ᒥᒃ ᖃᐅᔨᒃᑲᐃᔾᔪᑎ-ᐃᓗᐊᓂ ᐴᒃᓴᖅ ᐱᕙᓪᓕᐊᑎᑕᐅᓂᖓ
// @description:ja        github-notification-inbox-toggle開発バージョン
// @description:jv        Versi Pembangunan Github-Notification-Inbox-Toggle
// @description:ka        github-notification-inbox-toggle განვითარების ვერსია
// @description:kg        githhub-notification-inbox-toggle version
// @description:kk        GitHub-and Cookies-Inbox-ауыстырғышын дамыту нұсқасы
// @description:kl        github-notification-inbox-toggle-mik ineriartortitsinermut version
// @description:km        github-information-inform-inbox vooting កំណែអភិវឌ្ឍន៍
// @description:kn        ಗಿಟ್‌ಹಬ್-ಅಧಿಸೂಚನೆ-ಇನ್‌ಬಾಕ್ಸ್-ಟಾಗಲ್ ಅಭಿವೃದ್ಧಿ ಆವೃತ್ತಿ
// @description:ko        Github-Notification-onbox-Toggle 개발 버전
// @description:kr        github-notification-inbox-toggle fuwutəbe
// @description:ku        Guhertoya Pêşveçûna Github-Notification-Inbox-Toggle
// @description:kv        github-nofication-inbox-öдöн öтувтöм версия .
// @description:ky        Github-notification-Кирүүчү нуска алмашуу версиясы
// @description:la        GitHub-Notification-inbox-Toggle Development version
// @description:lb        Gititub-Notifikatioun-Inbox-Toggle Entwécklung Versioun
// @description:lg        GITHUB-notification-Inbox-Toggle Enkyusa y’okukulaakulanya .
// @description:ln        GitHub-notification-inbox-toggle version ya développement .
// @description:lo        ຮຸ່ນ Githbox-Notification-Inbox-Toggle-Toggle-toggle
// @description:lt        „GitHub-Notification-Inbox-Toggle Development“ versija
// @description:lv        Github-Notification-in-in-Toggle izstrādes versija
// @description:mg        Github-fampandrenesana-inbox-toggle Development Version
// @description:mh        ej āinwōt juon wāween eo em̧m̧an
// @description:mi        Githib-Whakaaturanga-Inbox-Ingook Whakaputanga Whakawhanake
// @description:mk        Github-Notification-In-Inbox-Toggle верзија за развој
// @description:ml        github-neation-inging-ingg-toggy വികസന പതിപ്പ്
// @description:mn        github-мэдэгдэл-Inbox-oxbox-toggle-ийн хөгжлийн хувилбар
// @description:mo        Versiunea de dezvoltare GitHub-Notification-Inbox-Toggle
// @description:mr        गीथब-नोटिफिकेशन-इनबॉक्स-टॉगल डेव्हलपमेंट आवृत्ती
// @description:ms        Versi Pembangunan Github-Notification-Inbox-Toggle
// @description:mt        Verżjoni ta ’Żvilupp ta’ GitHub-Notification-Inbox-Toggle
// @description:my        Gitub-Notification-Inbox-toggle ဖွံ့ဖြိုးရေးဗားရှင်း
// @description:nb        GitHub-Notification-Inbox-Toggle Development Version
// @description:ne        Github- notication-इनबक्स-टगल विकास संस्करण संस्करण
// @description:nl        GitHub-Notification-Inbox-Toggle Development-versie
// @description:nr        Vala i-6000.
// @description:ny        Mtundu wa Github-Noxbox-inbox
// @description:oc        github-notificacion-notificacion-boxa de desarrollo aleando .
// @description:om        github-nowfication-inbox-toggle development version .
// @description:or        Github-Ninblification-inboack-togle ବିକାଶ ସଂସ୍କରଣ |
// @description:os        github-хъусынгæнæг-инбокс-инбокс-æмæ æмдзу кæныны верси
// @description:pa        ਗੀਥਾਮ-ਨੋਟੀਫਿਕੇਸ਼ਨ-ਇਨਬੌਕਸ-ਟੌਗਲ ਡਿਵੈਲਪਮੈਂਟ ਵਰਜ਼ਨ
// @description:pl        Wersja programistyczna github-notification-inbox-toggle
// @description:ps        د ګیټوب - خبرتیا - ان باکس-تبایل پرمختیا نسخه
// @description:pt        Versão de desenvolvimento do Github-Notification-Inbox-Toggle
// @description:pt-BR     Versão de desenvolvimento do Github-Notification-Inbox-Toggle
// @description:pt-PT     Versão de desenvolvimento do Github-Notification-Inbox-Toggle
// @description:qu        GitHub-Notificación-Inbox-Toggle Desarrollo Versión .
// @description:rn        Igitero-imenyekanisha-imenyekanisha-imenyekanisha verisiyo
// @description:ro        Versiunea de dezvoltare GitHub-Notification-Inbox-Toggle
// @description:ru        github-notification-inbox-toggle версия разработки
// @description:rw        Github-Kumenyesha-inbox-Toggle verisiyo yiterambere
// @description:sa        Github-Notification-Inbox-टॉगल विकास संस्करण
// @description:sd        Github- اطلاع-انباڪس-ٽوگل ترقي جو نسخو
// @description:se        github-dieđihan-sisa-toggle ovddidanveršuvdna
// @description:sg        gi ti sara kua na github-notification-toggle .
// @description:sh        ГитХуб-Нотифицатион-инбок-тоцгле развојна верзија
// @description:si        GitHub-notification-inbox-toggle සංවර්ධන අනුවාදය
// @description:sk        Verzia vývoja github-notification-inbox-toggle
// @description:sl        GitHub-notification-Inbox-toggle Razvojna različica
// @description:sm        GitHub-Faasilasilaga-inbox-toggle Atinaʻe Atinaʻe
// @description:sn        GitHub-Ziviso-Inbox-Toggle Development Version
// @description:so        GitHub-Ogeysiiska-Inbox-Inbox-Inbogle Horumar
// @description:sq        GitHub-Notification-Inbox-Toggle Versioni i Zhvillimit
// @description:sr        ГитХуб-Нотифицатион-инбок-тоцгле развојна верзија
// @description:ss        github-satiso-inbox-toggle version
// @description:st        GOTHUB-TLALITED-Inbox-togggle deverver devet
// @description:su        Versi PROBLE-Bewara Grapbox
// @description:sv        Github-Notification-Inbox-Toggle Development Version
// @description:sw        Toleo la maendeleo la GitHub-Notification-Inbox-Toggle
// @description:ta        Github-notification-inabox-toggle மேம்பாட்டு பதிப்பு
// @description:te        గితుబ్-నోటిఫికేషన్-ఇన్బాక్స్-బోల్ డెవలప్‌మెంట్ వెర్షన్
// @description:tg        Нусхаи Рушд
// @description:th        GitHub-Notification-inbox-Toggle Development เวอร์ชัน
// @description:ti        github-notification-inbox-toggle development version
// @description:tk        Gitub-APCORAP-poçta gutusy-geçiş wersiýasy wersiýasy
// @description:tl        Github-Notification-Inbox-Toggle Development Bersyon
// @description:tn        github-kitsiso-inbox-toggle-toggle tlhabololo
// @description:to        github-fakatokanga-’i he puha-toggle ’a e fakalakalaka ’o e founga
// @description:tr        Github-Notification-Inbox-Toggle geliştirme sürümü
// @description:ts        GitHub-notification-inbox-toggle development version .
// @description:tt        github-нечкәлек-керү тартмасы үсеш версиясе
// @description:tw        GitHub-Notification-inbox-toggle nkɔso nkyerɛase .
// @description:ty        te hoê huriraa no te faahoturaa i te github-toggle
// @description:ug        GitHub-STOWNIBET-INBOP-inggletecepy تەرەققىيات نۇسخىسى
// @description:uk        Версія розробки GitHub-Notification-Inbox-Toggle
// @description:ur        گٹ ہب-نوٹیفیکیشن ان باکس-ٹوگل ڈویلپمنٹ ورژن
// @description:uz        Github-xabarnoma-Kirish qutisi - Rivojlanish versiyasi
// @description:ve        mbekanyamushumo ya mveledziso ya github-inbox-ya-inbox-toggle
// @description:vi        Phiên bản phát triển github-notification-inbox-toggle
// @description:wo        xeetu yokkute-ci-tegle-ci-toggle
// @description:xh        Isaziso se-Gilitib-Inbox
// @description:yi        Github-Nodification-Inbox-Toggle אנטוויקלונג ווערסיע
// @description:yo        Gittib-iwifunni-apo-apo-ọlẹ
// @description:zh        github-notification-inbox-toggle 开发版本
// @description:zh-CN     github-notification-inbox-toggle 开发版本
// @description:zh-HK     github-notification-inbox-toggle 開發版本
// @description:zh-MO     github-notification-inbox-toggle 開發版本
// @description:zh-MY     github-notification-inbox-toggle 开发版本
// @description:zh-SG     github-notification-inbox-toggle 开发版本
// @description:zh-TW     github-notification-inbox-toggle 開發版本
// @description:zu        I-GitHub-Isaziso-Inbox-TOGGVE TREENT Version
// @author                chancez,人民的勤务员 <[email protected]>
// @namespace             https://github.com/chancez/userscripts
// @supportURL            https://github.com/chancez/userscripts/issues
// @homepageURL           https://github.com/chancez/userscripts
// @license               MIT
// @match                 https://github.com/notifications*
// @icon                  https://raw.githubusercontent.com/ChinaGodMan/UserScriptsHistory/main/scriptsIcon/github-folder-downloader.png
// @compatible            chrome
// @compatible            firefox
// @compatible            edge
// @compatible            opera
// @compatible            safari
// @compatible            kiwi
// @compatible            qq
// @compatible            via
// @compatible            brave
// @version               2025.6.2.1
// @created               2025-06-02 12:01:10
// ==/UserScript==
(function () {
    'use strict'

    // Retrieve initial states from sessionStorage or set defaults
    let isHidden = sessionStorage.getItem('isHidden') === 'true'
    let showDoneOnly = sessionStorage.getItem('showDoneOnly') === 'true'
    const doneSelectors = [
        'svg.octicon-issue-closed',
        'svg.octicon-git-pull-request-closed',
        'svg.octicon-git-merge',
        'svg.octicon-x',
        'svg.octicon-stop',
        'svg.octicon-rocket',
        'svg.octicon-check'
    ]

    const createButton = (text, positionY) => {
        const button = document.createElement('button')
        button.textContent = text
        button.style.position = 'fixed'
        button.style.left = '50%'
        button.style.transform = 'translateX(-50%)'
        button.style.zIndex = '1000'
        button.style.padding = '5px 10px'
        button.style.border = '1px solid #ccc'
        button.style.borderRadius = '4px'
        button.style.cursor = 'pointer'
        button.style.transition = 'background-color 0.3s, color 0.3s'
        button.style.top = `${positionY}px`
        button.style.backgroundColor = 'rgba(255, 255, 255, 0.9)'
        button.style.color = '#333'
        button.addEventListener('click', (event) => {
            event.preventDefault()
            if (text === 'Toggle Hidden Notifications') {
                isHidden = !isHidden
                showDoneOnly = false
            } else if (text === 'Show Only Done Notifications') {
                showDoneOnly = !showDoneOnly
                isHidden = false
            }
            saveFilterState()
            updateVisibleNotifications()
        })
        return button
    }

    const toggleVisibilityButton = createButton('Toggle Hidden Notifications', 10)
    const toggleShowDoneButton = createButton('Show Only Done Notifications', 50)
    document.body.appendChild(toggleVisibilityButton)
    document.body.appendChild(toggleShowDoneButton)

    function updateButtonState(button, isActive) {
        button.style.backgroundColor = isActive ? '#4caf50' : 'rgba(255, 255, 255, 0.9)'
        button.style.color = isActive ? '#fff' : '#333'
    }

    function updateVisibleNotifications() {
        const items = document.querySelectorAll('.js-navigation-container li.notifications-list-item')
        items.forEach(item => {
            const isVisible = getComputedStyle(item).display !== 'none'
            const isDone = item.querySelector(':not(.notification-list-item)').querySelector(doneSelectors)
            const shouldShow = showDoneOnly ? isDone : !isHidden || !isDone
            if (isVisible && !shouldShow) {
                item.style.display = 'none' // Hide if it shouldn't be displayed
            } else if (!isVisible && shouldShow) {
                item.style.display = '' // Show if it isnt' visible but should be
            }
        })

        updateButtonState(toggleVisibilityButton, isHidden)
        updateButtonState(toggleShowDoneButton, showDoneOnly)
    }

    function saveFilterState() {
        sessionStorage.setItem('isHidden', isHidden)
        sessionStorage.setItem('showDoneOnly', showDoneOnly)
    }

    // Initial call to update visibility
    updateVisibleNotifications()

    // Observe for changes in the notification list
    const observer = new MutationObserver(() => {
        updateVisibleNotifications()
    })

    const targetNode = document.querySelector('.js-navigation-container')
    if (targetNode) {
        observer.observe(targetNode, { childList: true, subtree: true })
    }

    // Add a MutationObserver to catch changes in the document
    const pageObserver = new MutationObserver(() => {
        updateVisibleNotifications() // Apply visibility immediately
    })

    // Observe the body for when new notifications are loaded
    pageObserver.observe(document.body, { childList: true, subtree: true })

    // Clear observers on unload
    window.addEventListener('beforeunload', () => {
        observer.disconnect()
        pageObserver.disconnect()
    })
})()