Repository: Naramsim/GithubOriginalStreak
Branch: master
Commit: 3e0bf6d4a727
Files: 387
Total size: 54.5 KB
Directory structure:
gitextract_wmnai4tg/
├── .editorconfig
├── .gitignore
├── .travis.yml
├── LICENSE.md
├── README.md
├── chrome/
│ ├── _locales/
│ │ └── en/
│ │ └── messages.json
│ └── manifest.json
├── code-of-conduct.md
├── contributing.md
├── database/
│ ├── 0nlyoung7
│ ├── 4dams
│ ├── 88250
│ ├── AbdelrahmanHafez
│ ├── AlexKVal
│ ├── AlexMathew
│ ├── AnandChowdhary
│ ├── Anuken
│ ├── AppleDash
│ ├── BaseMax
│ ├── BaseMaxFollows you
│ ├── Bryan-Rojas
│ ├── CSSEGISandData
│ ├── CaesiumY
│ ├── Chion82
│ ├── ChristopherJamesN
│ ├── CorentinB
│ ├── Dacrol
│ ├── DanielRuf
│ ├── Darklg
│ ├── DrkSephy
│ ├── ErikBoesen
│ ├── ErikBoesenFollows you
│ ├── Eros
│ ├── Eurus-Holmes
│ ├── FlorianWoelki
│ ├── Froren
│ ├── GeorgH93
│ ├── Gizmotronn
│ ├── HansSchouten
│ ├── Harmon758
│ ├── Haroenv
│ ├── HenrikBengtsson
│ ├── HsiangHo
│ ├── IamMHC
│ ├── InnoFang
│ ├── IonicaBizau
│ ├── Ir1d
│ ├── IrisDroidology
│ ├── Ivshti
│ ├── JB1905
│ ├── JJ
│ ├── JakeJMattson
│ ├── JarateKing
│ ├── JedWatson
│ ├── JonnieWayy
│ ├── Kehvarl
│ ├── KenanSulayman
│ ├── KonradLinkowski
│ ├── KyleBanks
│ ├── LTLA
│ ├── LeonTG
│ ├── MU001999
│ ├── MacKentoch
│ ├── ManrajGrover
│ ├── Matt-Gleich
│ ├── MichaelHillcox
│ ├── Mihir-Achyuta
│ ├── NLDev
│ ├── Naramsim
│ ├── Nasdin
│ ├── NishkarshRaj
│ ├── Octopus
│ ├── OvidijusParsiunas
│ ├── PeterDaveHello
│ ├── Pratham82
│ ├── PuRonglong
│ ├── RapidTheNerd
│ ├── SamueleDassatti
│ ├── SangChan
│ ├── Sanjays2402
│ ├── SilverRainZ
│ ├── TDA
│ ├── TheDoctor0
│ ├── TomasHubelbauer
│ ├── TomasVotruba
│ ├── ToruNiina
│ ├── Tyriar
│ ├── Wuon
│ ├── WyriHaximus
│ ├── YujiSoftware
│ ├── aaron7pm
│ ├── aarondancer
│ ├── abetomo
│ ├── abo-abo
│ ├── abranhe
│ ├── adamalston
│ ├── aeneasr
│ ├── ahmadawais
│ ├── ahribori
│ ├── ajlopez
│ ├── akerl
│ ├── albertyw
│ ├── aldi
│ ├── alexdevero
│ ├── algernon
│ ├── alsamzu
│ ├── alstn2468
│ ├── andyljones
│ ├── ani03sha
│ ├── anvaka
│ ├── aofei
│ ├── aschkenasy
│ ├── aycabta
│ ├── azu
│ ├── barclayd
│ ├── bcongdon
│ ├── bennetgallein
│ ├── benoitvallon
│ ├── bigeasy
│ ├── bkaradzic
│ ├── bkeepers
│ ├── bors
│ ├── bouzuya
│ ├── br-lemes
│ ├── brackeen
│ ├── brammool
│ ├── briandfoy
│ ├── brianshumate
│ ├── brunocvcunha
│ ├── bt
│ ├── c41x
│ ├── calebcartwright
│ ├── christopho
│ ├── cixtor
│ ├── clarketm
│ ├── clementmihailescu
│ ├── compnerd
│ ├── conorhastings
│ ├── cosmo0920
│ ├── crisbeto
│ ├── curranoi
│ ├── cutsea110
│ ├── dalance
│ ├── davidsneighbour
│ ├── davinkevin
│ ├── dgryski
│ ├── dgw
│ ├── dhruvdutt
│ ├── dirk-thomas
│ ├── dkandalov
│ ├── docker-library-bot
│ ├── domix
│ ├── donnemartin
│ ├── doowb
│ ├── dorayakikun
│ ├── dougwilson
│ ├── duncan3dc
│ ├── edavis10
│ ├── eddelbuettel
│ ├── electron-bot
│ ├── erlaninfo
│ ├── fadyehabamer
│ ├── felixonmars
│ ├── franznkemaka
│ ├── freeatnet
│ ├── fy0
│ ├── g-harel
│ ├── gambuzzi
│ ├── gapry
│ ├── getify
│ ├── githubsaturn
│ ├── grigoryvp
│ ├── hacknug
│ ├── halfrost
│ ├── harady
│ ├── hczhcz
│ ├── heavywatal
│ ├── hemanth
│ ├── hiqsol
│ ├── hongsii
│ ├── icanhasjonas
│ ├── igr
│ ├── ijjk
│ ├── ilovezfs
│ ├── indigolain
│ ├── indoors3
│ ├── inureyes
│ ├── ionan
│ ├── itsAlexNguyen
│ ├── ivoputzer
│ ├── jaceklaskowski
│ ├── jackytck
│ ├── jacogr
│ ├── jamesroutley
│ ├── jaywcjlove
│ ├── jbcrail
│ ├── jdalton
│ ├── jeanpaulsio
│ ├── jeaye
│ ├── jedisct1
│ ├── jehyunlee
│ ├── jeremy
│ ├── jeresig
│ ├── jessety
│ ├── jlopp
│ ├── joehand
│ ├── jojoldu
│ ├── josevalim
│ ├── jshuadvd
│ ├── junho85
│ ├── justEhmadSaeed
│ ├── jwasham
│ ├── jxv
│ ├── k8s-ci-robot
│ ├── kaiorosa1
│ ├── kanzure
│ ├── kazenetu
│ ├── kazupon
│ ├── kbroman
│ ├── kbrsh
│ ├── keitakn
│ ├── khirayama
│ ├── kimeshan
│ ├── kiorky
│ ├── kkeisuke
│ ├── klaernie
│ ├── klinker24
│ ├── koic
│ ├── koudaiii
│ ├── kovidgoyal
│ ├── kroitor
│ ├── ksoichiro
│ ├── kyun2024
│ ├── lacker
│ ├── lambtron
│ ├── lee-seul
│ ├── leee
│ ├── leny
│ ├── linuxandchill
│ ├── ljharb
│ ├── ljungmark
│ ├── lpinca
│ ├── lucadelu
│ ├── mahmoud
│ ├── manwar
│ ├── maoberlehner
│ ├── marc2332
│ ├── marianzburlea
│ ├── mazipan
│ ├── mdda
│ ├── mgechev
│ ├── michalbe
│ ├── minozzi
│ ├── mitchellkrogza
│ ├── mojavelinux
│ ├── moonrailgun
│ ├── moul
│ ├── mrk21
│ ├── msaaddev
│ ├── msantos
│ ├── nathanchapman
│ ├── nelsonic
│ ├── neotamoe
│ ├── newbold
│ ├── ngosang
│ ├── niranjan94
│ ├── notomo
│ ├── nwtgck
│ ├── oestrich
│ ├── ooeunz
│ ├── orisano
│ ├── pacientes
│ ├── pakinja
│ ├── passy
│ ├── pat-s
│ ├── pavane90
│ ├── peppy
│ ├── petrozavodsky
│ ├── pfalcon
│ ├── pharzan
│ ├── phodal
│ ├── piratebayproxy
│ ├── pkrumins
│ ├── pneugebala
│ ├── ponyopoppo
│ ├── pqt
│ ├── praveenjuge
│ ├── priyansh19
│ ├── progfay
│ ├── promie
│ ├── pvnr0082t
│ ├── pwaddles
│ ├── rajeshwarpatlolla
│ ├── ratson
│ ├── rayriffy
│ ├── rchaser53
│ ├── remarkablemark
│ ├── renpytom
│ ├── reporobot
│ ├── rhysd
│ ├── rich-iannone
│ ├── rivy
│ ├── rkn
│ ├── rmariuzzo
│ ├── robert-strandh
│ ├── robertdebock
│ ├── rondevera
│ ├── roxstack
│ ├── rtivital
│ ├── ruanyf
│ ├── rust-highfive
│ ├── ryanrhymes
│ ├── sahat
│ ├── sakurano
│ ├── samber
│ ├── samkelleher
│ ├── sartak
│ ├── sbmx
│ ├── scriptex
│ ├── scripting
│ ├── sharjeelyunus
│ ├── shonumi
│ ├── shun-shobon
│ ├── soichisumi
│ ├── soumyadip007
│ ├── soumyajit4419
│ ├── spences10
│ ├── steveklabnik
│ ├── suguru03
│ ├── sugyan
│ ├── susisu
│ ├── sy-records
│ ├── taegon
│ ├── taisukef
│ ├── takecy
│ ├── tao12345666333
│ ├── technote-space
│ ├── textbrowser
│ ├── theochan62
│ ├── theriley106
│ ├── thesephist
│ ├── tianon
│ ├── timakin
│ ├── timothycrosley
│ ├── tokenrove
│ ├── tommyettinger
│ ├── toxtli
│ ├── unixorn
│ ├── unixpickle
│ ├── utilForever
│ ├── utkarsh2102
│ ├── vaibhavsagar
│ ├── vednoc
│ ├── victoriadrake
│ ├── vinayakkulkarni
│ ├── vincentmvdm
│ ├── vipulnaik
│ ├── vkarpov15
│ ├── vsoch
│ ├── vstakhov
│ ├── vvscode
│ ├── wbraswell
│ ├── webistomin
│ ├── wjdrbs96
│ ├── xvitaly
│ ├── y-yagi
│ ├── yhdesai
│ ├── yihui
│ ├── yoo2001818
│ ├── yosuke-furukawa
│ ├── yourtion
│ ├── yutiansut
│ ├── yuzumone
│ ├── zackexplosion
│ ├── zeke
│ ├── zhanglintc
│ ├── zilkey
│ ├── zmughal
│ └── zzsza
├── package.json
├── src/
│ ├── change-color.js
│ ├── index.css
│ ├── index.js
│ ├── inject.js
│ ├── node.js
│ └── store.js
└── webpack.config.js
================================================
FILE CONTENTS
================================================
================================================
FILE: .editorconfig
================================================
# editorconfig.org
root = true
[*]
indent_style = space
indent_size = 4
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
[{package.json,.travis.yml}]
indent_style = space
indent_size = 2
================================================
FILE: .gitignore
================================================
# Windows image file caches
Thumbs.db
ehthumbs.db
# Folder config file
Desktop.ini
# Recycle Bin used on file shares
$RECYCLE.BIN/
# Windows Installer files
*.cab
*.msi
*.msm
*.msp
# Windows shortcuts
*.lnk
# =========================
# Operating System Files
# =========================
# OSX
# =========================
.DS_Store
.AppleDouble
.LSOverride
# Thumbnails
._*
# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk
*.zip
node_modules
.xpi
.nex
build
chrome/src/
firefox/data
src/secret.json
# Logs and databases #
######################
logs
*.log
*.sql
*.sqlite
================================================
FILE: .travis.yml
================================================
language: node_js
cache:
directories:
- node_modules
notifications:
email: false
node_js:
- stable
before_install:
- npm i -g npm@^3.0.0
before_script:
- npm prune
script:
- npm test
branches:
- only
- master
================================================
FILE: LICENSE.md
================================================
Mozilla Public License Version 2.0
==================================
1. Definitions
--------------
1.1. "Contributor"
means each individual or legal entity that creates, contributes to
the creation of, or owns Covered Software.
1.2. "Contributor Version"
means the combination of the Contributions of others (if any) used
by a Contributor and that particular Contributor's Contribution.
1.3. "Contribution"
means Covered Software of a particular Contributor.
1.4. "Covered Software"
means Source Code Form to which the initial Contributor has attached
the notice in Exhibit A, the Executable Form of such Source Code
Form, and Modifications of such Source Code Form, in each case
including portions thereof.
1.5. "Incompatible With Secondary Licenses"
means
(a) that the initial Contributor has attached the notice described
in Exhibit B to the Covered Software; or
(b) that the Covered Software was made available under the terms of
version 1.1 or earlier of the License, but not also under the
terms of a Secondary License.
1.6. "Executable Form"
means any form of the work other than Source Code Form.
1.7. "Larger Work"
means a work that combines Covered Software with other material, in
a separate file or files, that is not Covered Software.
1.8. "License"
means this document.
1.9. "Licensable"
means having the right to grant, to the maximum extent possible,
whether at the time of the initial grant or subsequently, any and
all of the rights conveyed by this License.
1.10. "Modifications"
means any of the following:
(a) any file in Source Code Form that results from an addition to,
deletion from, or modification of the contents of Covered
Software; or
(b) any new file in Source Code Form that contains any Covered
Software.
1.11. "Patent Claims" of a Contributor
means any patent claim(s), including without limitation, method,
process, and apparatus claims, in any patent Licensable by such
Contributor that would be infringed, but for the grant of the
License, by the making, using, selling, offering for sale, having
made, import, or transfer of either its Contributions or its
Contributor Version.
1.12. "Secondary License"
means either the GNU General Public License, Version 2.0, the GNU
Lesser General Public License, Version 2.1, the GNU Affero General
Public License, Version 3.0, or any later versions of those
licenses.
1.13. "Source Code Form"
means the form of the work preferred for making modifications.
1.14. "You" (or "Your")
means an individual or a legal entity exercising rights under this
License. For legal entities, "You" includes any entity that
controls, is controlled by, or is under common control with You. For
purposes of this definition, "control" means (a) the power, direct
or indirect, to cause the direction or management of such entity,
whether by contract or otherwise, or (b) ownership of more than
fifty percent (50%) of the outstanding shares or beneficial
ownership of such entity.
2. License Grants and Conditions
--------------------------------
2.1. Grants
Each Contributor hereby grants You a world-wide, royalty-free,
non-exclusive license:
(a) under intellectual property rights (other than patent or trademark)
Licensable by such Contributor to use, reproduce, make available,
modify, display, perform, distribute, and otherwise exploit its
Contributions, either on an unmodified basis, with Modifications, or
as part of a Larger Work; and
(b) under Patent Claims of such Contributor to make, use, sell, offer
for sale, have made, import, and otherwise transfer either its
Contributions or its Contributor Version.
2.2. Effective Date
The licenses granted in Section 2.1 with respect to any Contribution
become effective for each Contribution on the date the Contributor first
distributes such Contribution.
2.3. Limitations on Grant Scope
The licenses granted in this Section 2 are the only rights granted under
this License. No additional rights or licenses will be implied from the
distribution or licensing of Covered Software under this License.
Notwithstanding Section 2.1(b) above, no patent license is granted by a
Contributor:
(a) for any code that a Contributor has removed from Covered Software;
or
(b) for infringements caused by: (i) Your and any other third party's
modifications of Covered Software, or (ii) the combination of its
Contributions with other software (except as part of its Contributor
Version); or
(c) under Patent Claims infringed by Covered Software in the absence of
its Contributions.
This License does not grant any rights in the trademarks, service marks,
or logos of any Contributor (except as may be necessary to comply with
the notice requirements in Section 3.4).
2.4. Subsequent Licenses
No Contributor makes additional grants as a result of Your choice to
distribute the Covered Software under a subsequent version of this
License (see Section 10.2) or under the terms of a Secondary License (if
permitted under the terms of Section 3.3).
2.5. Representation
Each Contributor represents that the Contributor believes its
Contributions are its original creation(s) or it has sufficient rights
to grant the rights to its Contributions conveyed by this License.
2.6. Fair Use
This License is not intended to limit any rights You have under
applicable copyright doctrines of fair use, fair dealing, or other
equivalents.
2.7. Conditions
Sections 3.1, 3.2, 3.3, and 3.4 are conditions of the licenses granted
in Section 2.1.
3. Responsibilities
-------------------
3.1. Distribution of Source Form
All distribution of Covered Software in Source Code Form, including any
Modifications that You create or to which You contribute, must be under
the terms of this License. You must inform recipients that the Source
Code Form of the Covered Software is governed by the terms of this
License, and how they can obtain a copy of this License. You may not
attempt to alter or restrict the recipients' rights in the Source Code
Form.
3.2. Distribution of Executable Form
If You distribute Covered Software in Executable Form then:
(a) such Covered Software must also be made available in Source Code
Form, as described in Section 3.1, and You must inform recipients of
the Executable Form how they can obtain a copy of such Source Code
Form by reasonable means in a timely manner, at a charge no more
than the cost of distribution to the recipient; and
(b) You may distribute such Executable Form under the terms of this
License, or sublicense it under different terms, provided that the
license for the Executable Form does not attempt to limit or alter
the recipients' rights in the Source Code Form under this License.
3.3. Distribution of a Larger Work
You may create and distribute a Larger Work under terms of Your choice,
provided that You also comply with the requirements of this License for
the Covered Software. If the Larger Work is a combination of Covered
Software with a work governed by one or more Secondary Licenses, and the
Covered Software is not Incompatible With Secondary Licenses, this
License permits You to additionally distribute such Covered Software
under the terms of such Secondary License(s), so that the recipient of
the Larger Work may, at their option, further distribute the Covered
Software under the terms of either this License or such Secondary
License(s).
3.4. Notices
You may not remove or alter the substance of any license notices
(including copyright notices, patent notices, disclaimers of warranty,
or limitations of liability) contained within the Source Code Form of
the Covered Software, except that You may alter any license notices to
the extent required to remedy known factual inaccuracies.
3.5. Application of Additional Terms
You may choose to offer, and to charge a fee for, warranty, support,
indemnity or liability obligations to one or more recipients of Covered
Software. However, You may do so only on Your own behalf, and not on
behalf of any Contributor. You must make it absolutely clear that any
such warranty, support, indemnity, or liability obligation is offered by
You alone, and You hereby agree to indemnify every Contributor for any
liability incurred by such Contributor as a result of warranty, support,
indemnity or liability terms You offer. You may include additional
disclaimers of warranty and limitations of liability specific to any
jurisdiction.
4. Inability to Comply Due to Statute or Regulation
---------------------------------------------------
If it is impossible for You to comply with any of the terms of this
License with respect to some or all of the Covered Software due to
statute, judicial order, or regulation then You must: (a) comply with
the terms of this License to the maximum extent possible; and (b)
describe the limitations and the code they affect. Such description must
be placed in a text file included with all distributions of the Covered
Software under this License. Except to the extent prohibited by statute
or regulation, such description must be sufficiently detailed for a
recipient of ordinary skill to be able to understand it.
5. Termination
--------------
5.1. The rights granted under this License will terminate automatically
if You fail to comply with any of its terms. However, if You become
compliant, then the rights granted under this License from a particular
Contributor are reinstated (a) provisionally, unless and until such
Contributor explicitly and finally terminates Your grants, and (b) on an
ongoing basis, if such Contributor fails to notify You of the
non-compliance by some reasonable means prior to 60 days after You have
come back into compliance. Moreover, Your grants from a particular
Contributor are reinstated on an ongoing basis if such Contributor
notifies You of the non-compliance by some reasonable means, this is the
first time You have received notice of non-compliance with this License
from such Contributor, and You become compliant prior to 30 days after
Your receipt of the notice.
5.2. If You initiate litigation against any entity by asserting a patent
infringement claim (excluding declaratory judgment actions,
counter-claims, and cross-claims) alleging that a Contributor Version
directly or indirectly infringes any patent, then the rights granted to
You by any and all Contributors for the Covered Software under Section
2.1 of this License shall terminate.
5.3. In the event of termination under Sections 5.1 or 5.2 above, all
end user license agreements (excluding distributors and resellers) which
have been validly granted by You or Your distributors under this License
prior to termination shall survive termination.
************************************************************************
* *
* 6. Disclaimer of Warranty *
* ------------------------- *
* *
* Covered Software is provided under this License on an "as is" *
* basis, without warranty of any kind, either expressed, implied, or *
* statutory, including, without limitation, warranties that the *
* Covered Software is free of defects, merchantable, fit for a *
* particular purpose or non-infringing. The entire risk as to the *
* quality and performance of the Covered Software is with You. *
* Should any Covered Software prove defective in any respect, You *
* (not any Contributor) assume the cost of any necessary servicing, *
* repair, or correction. This disclaimer of warranty constitutes an *
* essential part of this License. No use of any Covered Software is *
* authorized under this License except under this disclaimer. *
* *
************************************************************************
************************************************************************
* *
* 7. Limitation of Liability *
* -------------------------- *
* *
* Under no circumstances and under no legal theory, whether tort *
* (including negligence), contract, or otherwise, shall any *
* Contributor, or anyone who distributes Covered Software as *
* permitted above, be liable to You for any direct, indirect, *
* special, incidental, or consequential damages of any character *
* including, without limitation, damages for lost profits, loss of *
* goodwill, work stoppage, computer failure or malfunction, or any *
* and all other commercial damages or losses, even if such party *
* shall have been informed of the possibility of such damages. This *
* limitation of liability shall not apply to liability for death or *
* personal injury resulting from such party's negligence to the *
* extent applicable law prohibits such limitation. Some *
* jurisdictions do not allow the exclusion or limitation of *
* incidental or consequential damages, so this exclusion and *
* limitation may not apply to You. *
* *
************************************************************************
8. Litigation
-------------
Any litigation relating to this License may be brought only in the
courts of a jurisdiction where the defendant maintains its principal
place of business and such litigation shall be governed by laws of that
jurisdiction, without reference to its conflict-of-law provisions.
Nothing in this Section shall prevent a party's ability to bring
cross-claims or counter-claims.
9. Miscellaneous
----------------
This License represents the complete agreement concerning the subject
matter hereof. If any provision of this License is held to be
unenforceable, such provision shall be reformed only to the extent
necessary to make it enforceable. Any law or regulation which provides
that the language of a contract shall be construed against the drafter
shall not be used to construe this License against a Contributor.
10. Versions of the License
---------------------------
10.1. New Versions
Mozilla Foundation is the license steward. Except as provided in Section
10.3, no one other than the license steward has the right to modify or
publish new versions of this License. Each version will be given a
distinguishing version number.
10.2. Effect of New Versions
You may distribute the Covered Software under the terms of the version
of the License under which You originally received the Covered Software,
or under the terms of any subsequent version published by the license
steward.
10.3. Modified Versions
If you create software not governed by this License, and you want to
create a new license for such software, you may create and use a
modified version of this License if you rename the license and remove
any references to the name of the license steward (except to note that
such modified license differs from this License).
10.4. Distributing Source Code Form that is Incompatible With Secondary
Licenses
If You choose to distribute Source Code Form that is Incompatible With
Secondary Licenses under the terms of this version of the License, the
notice described in Exhibit B of this License must be attached.
Exhibit A - Source Code Form License Notice
-------------------------------------------
This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this
file, You can obtain one at http://mozilla.org/MPL/2.0/.
If it is not possible or desirable to put the notice in a particular
file, then You may include the notice in a location (such as a LICENSE
file in a relevant directory) where a recipient would be likely to look
for such a notice.
You may add additional accurate notices of copyright ownership.
Exhibit B - "Incompatible With Secondary Licenses" Notice
---------------------------------------------------------
This Source Code Form is "Incompatible With Secondary Licenses", as
defined by the Mozilla Public License, v. 2.0.
================================================
FILE: README.md
================================================
# GithubOriginalStreak 
[](https://travis-ci.org/Naramsim/GithubOriginalStreak)
Reverts GitHub contributions and streak. A browser extension.
- [x] Total Contributions
- [x] Longest Streak
- [x] Current Streak
- [x] Streaks no more limited to one year
- [x] New GitHub Design compatible
- [x] Compatible with the new dark theme
## Browser support
[](https://chrome.google.com/webstore/detail/github-original-streak/jgfeifpakohnblfnjdpigclinhbkocja)
[](https://addons.mozilla.org/en-US/firefox/addon/github-original-streak/)
[](https://addons.opera.com/it/extensions/details/github-original-streak/)
To download the extensions just click on the badges above, they will bring you to the appropriate store.

## Contributing
Please refer [Contributing guidelines](contributing.md) to enhance your contribution experience.
## Install
```sh
npm i --legacy-peer-deps
npm run build
npm run package
```
## Contributors
[Naramsim](https://github.com/Naramsim) and [sarbbottam](https://github.com/sarbbottam)
================================================
FILE: chrome/_locales/en/messages.json
================================================
{
"l10nTabName": {
"message":"Localization"
,"description":"name of the localization tab"
}
,"l10nHeader": {
"message":"It does localization too! (this whole tab is, actually)"
,"description":"Header text for the localization section"
}
,"l10nIntro": {
"message":"'L10n' refers to 'Localization' - 'L' an 'n' are obvious, and 10 comes from the number of letters between those two. It is the process/whatever of displaying something in the language of choice. It uses 'I18n', 'Internationalization', which refers to the tools / framework supporting L10n. I.e., something is internationalized if it has I18n support, and can be localized. Something is localized for you if it is in your language / dialect."
,"description":"introduce the basic idea."
}
,"l10nProd": {
"message":"You <strong>are</strong> planning to allow localization, right? You have <em>no idea</em> who will be using your extension! You have no idea who will be translating it! At least support the basics, it's not hard, and having the framework in place will let you transition much more easily later on."
,"description":"drive the point home. It's good for you."
}
,"l10nFirstParagraph": {
"message":"When the options page loads, elements decorated with <strong>data-l10n</strong> will automatically be localized!"
,"description":"inform that <el data-l10n='' /> elements will be localized on load"
}
,"l10nSecondParagraph": {
"message":"If you need more complex localization, you can also define <strong>data-l10n-args</strong>. This should contain <span class='code'>$containerType$</span> filled with <span class='code'>$dataType$</span>, which will be passed into Chrome's i18n API as <span class='code'>$functionArgs$</span>. In fact, this paragraph does just that, and wraps the args in mono-space font. Easy!"
,"description":"introduce the data-l10n-args attribute. End on a lame note."
,"placeholders": {
"containerType": {
"content":"$1"
,"example":"'array', 'list', or something similar"
,"description":"type of the args container"
}
,"dataType": {
"content":"$2"
,"example":"string"
,"description":"type of data in each array index"
}
,"functionArgs": {
"content":"$3"
,"example":"arguments"
,"description":"whatever you call what you pass into a function/method. args, params, etc."
}
}
}
,"l10nThirdParagraph": {
"message":"Message contents are passed right into innerHTML without processing - include any tags (or even scripts) that you feel like. If you have an input field, the placeholder will be set instead, and buttons will have the value attribute set."
,"description":"inform that we handle placeholders, buttons, and direct HTML input"
}
,"l10nButtonsBefore": {
"message":"Different types of buttons are handled as well. <button> elements have their html set:"
}
,"l10nButton": {
"message":"in a <strong>button</strong>"
}
,"l10nButtonsBetween": {
"message":"while <input type='submit'> and <input type='button'> get their 'value' set (note: no HTML):"
}
,"l10nSubmit": {
"message":"a <strong>submit</strong> value"
}
,"l10nButtonsAfter": {
"message":"Awesome, no?"
}
,"l10nExtras": {
"message":"You can even set <span class='code'>data-l10n</span> on things like the <title> tag, which lets you have translatable page titles, or fieldset <legend> tags, or anywhere else - the default <span class='code'>Boil.localize()</span> behavior will check every tag in the document, not just the body."
,"description":"inform about places which may not be obvious, like <title>, etc"
}
}
================================================
FILE: chrome/manifest.json
================================================
{
"name": "Github Original Streak",
"short_name": "Github Streak",
"version": "1.16.0",
"version_name": "1.16.0",
"manifest_version": 3,
"description": "Re-builds former current and longest streaks on Github profiles",
"homepage_url": "https://github.com/Naramsim/GithubOriginalStreak",
"author": "Naramsim",
"icons": {
"16": "icons/g16.png",
"48": "icons/g48.png",
"128": "icons/g128.png"
},
"default_locale": "en",
"offline_enabled": true,
"permissions": [
"storage"
],
"host_permissions": [
"https://github.com/*",
"https://api.github.com/*"
],
"content_scripts": [
{
"matches": [
"*://github.com/*"
],
"all_frames": false,
"run_at": "document_idle",
"js": [
"src/inject.js"
]
}
]
}
================================================
FILE: code-of-conduct.md
================================================
# Contributor Covenant Code of Conduct
## Our Pledge
In the interest of fostering an open and welcoming environment, we as contributors and maintainers pledge to making participation in our project and our community a harassment-free experience for everyone, regardless of age, body size, disability, ethnicity, gender identity and expression, level of experience, nationality, personal appearance, race, religion, or sexual identity and orientation.
## Our Standards
Examples of behavior that contributes to creating a positive environment include:
- Using welcoming and inclusive language
- Being respectful of differing viewpoints and experiences
- Gracefully accepting constructive criticism
- Focusing on what is best for the community
- Showing empathy towards other community members
Examples of unacceptable behavior by participants include:
- The use of sexualized language or imagery and unwelcome sexual attention or advances
- Trolling, insulting/derogatory comments, and personal or political attacks
- Public or private harassment
- Publishing others' private information, such as a physical or electronic address, without explicit permission
- Other conduct which could reasonably be considered inappropriate in a professional setting
## Our Responsibilities
Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
## Scope
This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.
## Enforcement
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at igougi.ui@gmail.com. All complaints will be reviewed and investigated and will result in a response that is deemed necessary and appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.
## Attribution
This Code of Conduct is adapted from the Contributor Covenant, version 1.4, available at http://contributor-covenant.org/version/1/4.
================================================
FILE: contributing.md
================================================
# Contributing to github-original-streak
✨ Thanks for contributing ✨
Please note that this project is released with a [Contributor Code of Conduct](code-of-conduct.md). By participating in this project you agree to abide by its terms.
## Conventions
### Pull Request
- Address only one use case in one PR.
- Ensure test compliance
- Keep the PR as short as possible
- Write readable code
- Avoid confusing one liners
### Commit messages
- Please follow [this commit message convention](https://github.com/angular/angular.js/blob/master/CONTRIBUTING.md#-git-commit-guidelines)
- If you like to ease the process, you can use [commitizen](https://github.com/commitizen/cz-cli#conventional-commit-messages-as-a-global-utility)
- Please add [`[ci skip]`](https://docs.travis-ci.com/user/customizing-the-build/#Skipping-a-build) to the commit messages for documentation only changes
### Setup
1. Fork the repo
2. Clone your fork
3. Make a branch for your feature/fix/etc.
4. Run `npm install` (make sure you have node and npm installed first)
5. Run `npm run build:watch`, it will watch for changes and generate the bundles at `chrome/src` & `firefox/data`
6. Test the extension locally
- Navigate to `chrome://extensions`
- Check `Developer mode`
- Click `Load unpacked extension`
- Navigate to local folder
- And follow the instruction
7. Commit the changes, run `npm run commit`
- Follow the instruction displayed in the prompt
8. Push your branch to your fork
9. Create a pull request from your branch on your fork to master on this repo.
10. Get merged! 🎉 🎊
================================================
FILE: database/0nlyoung7
================================================
#2015-09-13
================================================
FILE: database/4dams
================================================
2017-04-23#2017-04-23@1
================================================
FILE: database/88250
================================================
2018-06-03#2018-06-03@1
================================================
FILE: database/AbdelrahmanHafez
================================================
2020-04-12#2020-04-12@0
================================================
FILE: database/AlexKVal
================================================
2019-05-12#2019-05-12@1
================================================
FILE: database/AlexMathew
================================================
#2020-04-12
================================================
FILE: database/AnandChowdhary
================================================
2019-04-14#2019-04-14@1
================================================
FILE: database/Anuken
================================================
2020-05-24#2020-05-24@0
================================================
FILE: database/AppleDash
================================================
2017-10-29#2017-10-29@1
================================================
FILE: database/BaseMax
================================================
2017-12-31#2017-12-31@1
================================================
FILE: database/BaseMaxFollows you
================================================
2017-01-01#2017-01-01@1
================================================
FILE: database/Bryan-Rojas
================================================
#2019-01-20
================================================
FILE: database/CSSEGISandData
================================================
2020-03-08#2020-03-08@0
================================================
FILE: database/CaesiumY
================================================
2020-01-05#2020-01-05@0
================================================
FILE: database/Chion82
================================================
2017-03-05#2017-03-05@1
================================================
FILE: database/ChristopherJamesN
================================================
2018-03-04#2018-03-04@1
================================================
FILE: database/CorentinB
================================================
2017-12-10#2017-12-10@1
================================================
FILE: database/Dacrol
================================================
2018-12-02#2018-12-02@1
================================================
FILE: database/DanielRuf
================================================
#2018-06-17
================================================
FILE: database/Darklg
================================================
2018-12-30#2018-12-30@1
================================================
FILE: database/DrkSephy
================================================
2014-12-28#2014-12-28@1
================================================
FILE: database/ErikBoesen
================================================
#2017-12-31
================================================
FILE: database/ErikBoesenFollows you
================================================
2017-12-31#2017-12-31@1
================================================
FILE: database/Eros
================================================
2016-09-18#2016-09-18@1
================================================
FILE: database/Eurus-Holmes
================================================
2020-04-12#2020-04-12@0
================================================
FILE: database/FlorianWoelki
================================================
2019-12-29#2019-12-29@1
================================================
FILE: database/Froren
================================================
2018-05-06#2018-05-06@1
================================================
FILE: database/GeorgH93
================================================
#2019-04-28
================================================
FILE: database/Gizmotronn
================================================
2019-04-28#2019-04-28@1
================================================
FILE: database/HansSchouten
================================================
2020-04-12#2020-04-12@0
================================================
FILE: database/Harmon758
================================================
2018-05-20#2018-05-20@0
================================================
FILE: database/Haroenv
================================================
2017-01-08#2017-01-08@1
================================================
FILE: database/HenrikBengtsson
================================================
2017-06-18#2017-06-18@1
================================================
FILE: database/HsiangHo
================================================
#2019-07-28
================================================
FILE: database/IamMHC
================================================
#2019-11-17
================================================
FILE: database/InnoFang
================================================
2017-08-20#2017-08-20@1
================================================
FILE: database/IonicaBizau
================================================
2013-12-29#2013-12-29@1
================================================
FILE: database/Ir1d
================================================
#2018-10-28
================================================
FILE: database/IrisDroidology
================================================
2019-03-17#2019-03-17@1
================================================
FILE: database/Ivshti
================================================
2016-01-10#2016-01-10@1
================================================
FILE: database/JB1905
================================================
2019-12-29#2019-12-29@1
================================================
FILE: database/JJ
================================================
#2020-04-05
================================================
FILE: database/JakeJMattson
================================================
#2018-08-12
================================================
FILE: database/JarateKing
================================================
2017-12-10#2017-12-10@1
================================================
FILE: database/JedWatson
================================================
2015-08-02#2015-08-02@1
================================================
FILE: database/JonnieWayy
================================================
2019-11-17#2019-11-17@1
================================================
FILE: database/Kehvarl
================================================
2020-02-23#2020-02-23@0
================================================
FILE: database/KenanSulayman
================================================
#2015-09-20
================================================
FILE: database/KonradLinkowski
================================================
2019-12-08#2019-12-08@1
================================================
FILE: database/KyleBanks
================================================
2020-05-10#2020-05-10@0
================================================
FILE: database/LTLA
================================================
#2019-02-10
================================================
FILE: database/LeonTG
================================================
2015-09-12#2015-09-12@1
================================================
FILE: database/MU001999
================================================
2018-04-08#2018-04-08@1
================================================
FILE: database/MacKentoch
================================================
2016-10-16#2016-10-16@1
================================================
FILE: database/ManrajGrover
================================================
2016-05-22#2016-05-22@1
================================================
FILE: database/Matt-Gleich
================================================
2019-05-26#2019-05-26@1
================================================
FILE: database/MichaelHillcox
================================================
2019-08-11#2019-08-11@1
================================================
FILE: database/Mihir-Achyuta
================================================
#2020-05-31
================================================
FILE: database/NLDev
================================================
2019-09-29#2019-09-29@1
================================================
FILE: database/Naramsim
================================================
2015-09-21#2015-09-21@1
================================================
FILE: database/Nasdin
================================================
2019-08-04#2019-08-04@1
================================================
FILE: database/NishkarshRaj
================================================
#2019-07-21
================================================
FILE: database/Octopus
================================================
2014-12-23
================================================
FILE: database/OvidijusParsiunas
================================================
2019-07-21#2019-07-21@1
================================================
FILE: database/PeterDaveHello
================================================
#2015-07-19
================================================
FILE: database/Pratham82
================================================
2020-01-12#2020-01-12@0
================================================
FILE: database/PuRonglong
================================================
#2015-09-27
================================================
FILE: database/RapidTheNerd
================================================
2016-08-28#2016-08-28@1
================================================
FILE: database/SamueleDassatti
================================================
2018-12-23#2018-12-23@1
================================================
FILE: database/SangChan
================================================
2015-07-05#2015-07-05
================================================
FILE: database/Sanjays2402
================================================
2020-05-10#2020-05-10@0
================================================
FILE: database/SilverRainZ
================================================
2016-01-03#2016-01-03@0
================================================
FILE: database/TDA
================================================
2015-06-02#2015-06-02@0
================================================
FILE: database/TheDoctor0
================================================
2020-04-12#2020-04-12@0
================================================
FILE: database/TomasHubelbauer
================================================
2020-04-12#2020-04-12@0
================================================
FILE: database/TomasVotruba
================================================
2020-03-22#2020-03-22@0
================================================
FILE: database/ToruNiina
================================================
2019-09-29#2019-09-29@0
================================================
FILE: database/Tyriar
================================================
#2016-11-27
================================================
FILE: database/Wuon
================================================
#2018-12-30
================================================
FILE: database/WyriHaximus
================================================
2019-06-16#2019-06-16@0
================================================
FILE: database/YujiSoftware
================================================
2015-12-20#2015-12-20@0
================================================
FILE: database/aaron7pm
================================================
2015-01-01#2015-01-01
================================================
FILE: database/aarondancer
================================================
#2015-09-13
================================================
FILE: database/abetomo
================================================
2018-06-10#2018-06-10@0
================================================
FILE: database/abo-abo
================================================
#2020-04-12
================================================
FILE: database/abranhe
================================================
#2017-11-19
================================================
FILE: database/adamalston
================================================
2020-05-31#2020-05-31@0
================================================
FILE: database/aeneasr
================================================
2020-04-19#2020-04-19@0
================================================
FILE: database/ahmadawais
================================================
2016-09-18#2016-09-18@0
================================================
FILE: database/ahribori
================================================
2019-04-28#2019-04-28@0
================================================
FILE: database/ajlopez
================================================
2015-12-27#2015-12-27@0
================================================
FILE: database/akerl
================================================
2017-07-02#2017-07-02@0
================================================
FILE: database/albertyw
================================================
2013-02-12#2013-02-12@0
================================================
FILE: database/aldi
================================================
2019-07-07#2019-07-07@0
================================================
FILE: database/alexdevero
================================================
2019-05-05#2019-05-05@0
================================================
FILE: database/algernon
================================================
2018-10-14#2018-10-14@0
================================================
FILE: database/alsamzu
================================================
#2018-01-07
================================================
FILE: database/alstn2468
================================================
#2020-04-12
================================================
FILE: database/andyljones
================================================
2019-04-21#2019-04-21@0
================================================
FILE: database/ani03sha
================================================
2018-10-14#2018-10-14@0
================================================
FILE: database/anvaka
================================================
#2016-01-17
================================================
FILE: database/aofei
================================================
#2017-11-19
================================================
FILE: database/aschkenasy
================================================
2020-03-29#2020-03-29@0
================================================
FILE: database/aycabta
================================================
2020-05-10#2020-05-10@0
================================================
FILE: database/azu
================================================
#2013-11-06
================================================
FILE: database/barclayd
================================================
2019-11-17#2019-11-17@0
================================================
FILE: database/bcongdon
================================================
#2016-11-27
================================================
FILE: database/bennetgallein
================================================
#2017-10-01
================================================
FILE: database/benoitvallon
================================================
2017-02-19#2017-02-19@0
================================================
FILE: database/bigeasy
================================================
2017-07-02#2017-07-02@0
================================================
FILE: database/bkaradzic
================================================
#2015-11-22
================================================
FILE: database/bkeepers
================================================
#2017-09-10
================================================
FILE: database/bors
================================================
2015-12-20#2015-12-20@0
================================================
FILE: database/bouzuya
================================================
2020-04-12#2020-04-12@0
================================================
FILE: database/br-lemes
================================================
2018-01-28#2018-01-28@0
================================================
FILE: database/brackeen
================================================
2016-12-18#2016-12-18@0
================================================
FILE: database/brammool
================================================
2019-09-15#2019-09-15@0
================================================
FILE: database/briandfoy
================================================
2019-09-01#2019-09-01@0
================================================
FILE: database/brianshumate
================================================
#2015-12-27
================================================
FILE: database/brunocvcunha
================================================
#2017-12-24
================================================
FILE: database/bt
================================================
2017-02-19#2017-02-19@0
================================================
FILE: database/c41x
================================================
#2014-11-14
================================================
FILE: database/calebcartwright
================================================
2020-03-08#2020-03-08@0
================================================
FILE: database/christopho
================================================
#2015-08-03
================================================
FILE: database/cixtor
================================================
2013-12-29#2013-12-29@0
================================================
FILE: database/clarketm
================================================
2017-05-28#2017-05-28@0
================================================
FILE: database/clementmihailescu
================================================
#2019-08-18
================================================
FILE: database/compnerd
================================================
2019-08-04#2019-08-04@0
================================================
FILE: database/conorhastings
================================================
#2015-08-30
================================================
FILE: database/cosmo0920
================================================
2020-03-15#2020-03-15@0
================================================
FILE: database/crisbeto
================================================
2017-02-05#2017-02-05@0
================================================
FILE: database/curranoi
================================================
2017-04-02#2017-04-02@0
================================================
FILE: database/cutsea110
================================================
2018-06-24#2018-06-24@0
================================================
FILE: database/dalance
================================================
2019-12-15#2019-12-15@0
================================================
FILE: database/davidsneighbour
================================================
2020-05-24#2020-05-24@0
================================================
FILE: database/davinkevin
================================================
2017-09-24#2017-09-24@0
================================================
FILE: database/dgryski
================================================
2015-12-27#2015-12-27@0
================================================
FILE: database/dgw
================================================
#2015-07-24
================================================
FILE: database/dhruvdutt
================================================
#2018-03-11
================================================
FILE: database/dirk-thomas
================================================
2015-11-15#2015-11-15@0
================================================
FILE: database/dkandalov
================================================
#2017-01-15
================================================
FILE: database/docker-library-bot
================================================
2018-10-28#2018-10-28@0
================================================
FILE: database/domix
================================================
#2020-04-19
================================================
FILE: database/donnemartin
================================================
2016-03-06#2016-03-06@0
================================================
FILE: database/doowb
================================================
#2017-05-14
================================================
FILE: database/dorayakikun
================================================
#2018-10-28
================================================
FILE: database/dougwilson
================================================
#2016-09-25
================================================
FILE: database/duncan3dc
================================================
#2016-11-12
================================================
FILE: database/edavis10
================================================
2019-03-10#2019-03-10@0
================================================
FILE: database/eddelbuettel
================================================
2013-10-12#2013-10-12@1
================================================
FILE: database/electron-bot
================================================
2020-03-22#2020-03-22@0
================================================
FILE: database/erlaninfo
================================================
2019-06-16#2019-06-16@0
================================================
FILE: database/fadyehabamer
================================================
2020-05-24#2020-05-24@0
================================================
FILE: database/felixonmars
================================================
2019-01-27#2019-01-27@0
================================================
FILE: database/franznkemaka
================================================
2020-05-03#2020-05-03@0
================================================
FILE: database/freeatnet
================================================
2017-02-12#2017-02-12@0
================================================
FILE: database/fy0
================================================
2016-01-03#2016-01-03@0
================================================
FILE: database/g-harel
================================================
2020-04-12#2020-04-12@0
================================================
FILE: database/gambuzzi
================================================
2016-05-01#2016-05-01@0
================================================
FILE: database/gapry
================================================
2018-04-15#2018-04-15@0
================================================
FILE: database/getify
================================================
2013-12-29#2013-12-29@0
================================================
FILE: database/githubsaturn
================================================
2020-06-14#2020-06-14@0
================================================
FILE: database/grigoryvp
================================================
2019-12-22#2019-12-22@0
================================================
FILE: database/hacknug
================================================
2020-01-26#2020-01-26@0
================================================
FILE: database/halfrost
================================================
2017-05-28#2017-05-28@0
================================================
FILE: database/harady
================================================
#2015-03-01
================================================
FILE: database/hczhcz
================================================
#2015-11-01
================================================
FILE: database/heavywatal
================================================
2017-10-15#2017-10-15@0
================================================
FILE: database/hemanth
================================================
#2015-07-19
================================================
FILE: database/hiqsol
================================================
2017-09-03#2017-09-03@0
================================================
FILE: database/hongsii
================================================
2019-07-14#2019-07-14@0
================================================
FILE: database/icanhasjonas
================================================
2019-08-18#2019-08-18@0
================================================
FILE: database/igr
================================================
2020-05-17#2020-05-17@0
================================================
FILE: database/ijjk
================================================
#2019-05-05
================================================
FILE: database/ilovezfs
================================================
2017-02-19#2017-02-19@0
================================================
FILE: database/indigolain
================================================
2020-05-17#2020-05-17@0
================================================
FILE: database/indoors3
================================================
2019-04-07#2019-04-07@0
================================================
FILE: database/inureyes
================================================
#2017-12-10
================================================
FILE: database/ionan
================================================
2020-03-29#2020-03-29@0
================================================
FILE: database/itsAlexNguyen
================================================
#2017-08-13
================================================
FILE: database/ivoputzer
================================================
2017-01-01#2017-01-01@0
================================================
FILE: database/jaceklaskowski
================================================
#2018-04-08
================================================
FILE: database/jackytck
================================================
2016-12-11#2016-12-11@0
================================================
FILE: database/jacogr
================================================
2020-02-02#2020-02-02@0
================================================
FILE: database/jamesroutley
================================================
2020-05-24#2020-05-24@0
================================================
FILE: database/jaywcjlove
================================================
#2019-12-22
================================================
FILE: database/jbcrail
================================================
2013-08-15#2013-08-15@0
================================================
FILE: database/jdalton
================================================
#2015-09-27
================================================
FILE: database/jeanpaulsio
================================================
#2017-01-08
================================================
FILE: database/jeaye
================================================
2015-08-09#2015-08-09
================================================
FILE: database/jedisct1
================================================
#2015-12-27
================================================
FILE: database/jehyunlee
================================================
2020-04-05#2020-04-05@0
================================================
FILE: database/jeremy
================================================
#2015-06-28
================================================
FILE: database/jeresig
================================================
2014-12-28#2014-12-28@0
================================================
FILE: database/jessety
================================================
2020-04-12#2020-04-12@0
================================================
FILE: database/jlopp
================================================
2020-02-16#2020-02-16@0
================================================
FILE: database/joehand
================================================
2016-09-18#2016-09-18@0
================================================
FILE: database/jojoldu
================================================
2017-04-30#2017-04-30@0
================================================
FILE: database/josevalim
================================================
#2020-04-05
================================================
FILE: database/jshuadvd
================================================
#2015-12-06
================================================
FILE: database/junho85
================================================
2019-01-13#2019-01-13@0
================================================
FILE: database/justEhmadSaeed
================================================
2020-04-12#2020-04-12@0
================================================
FILE: database/jwasham
================================================
#2016-03-13
================================================
FILE: database/jxv
================================================
2017-05-16#2017-05-16@0
================================================
FILE: database/k8s-ci-robot
================================================
2018-01-07#2018-01-07@0
================================================
FILE: database/kaiorosa1
================================================
2019-05-26#2019-05-26@0
================================================
FILE: database/kanzure
================================================
2015-12-27#2015-12-27@0
================================================
FILE: database/kazenetu
================================================
2018-10-21#2018-10-21@0
================================================
FILE: database/kazupon
================================================
#2016-02-07
================================================
FILE: database/kbroman
================================================
#2015-11-01
================================================
FILE: database/kbrsh
================================================
#2017-01-01
================================================
FILE: database/keitakn
================================================
2018-09-02#2018-09-02@0
================================================
FILE: database/khirayama
================================================
2016-11-27#2016-11-27@0
================================================
FILE: database/kimeshan
================================================
#2016-12-04
================================================
FILE: database/kiorky
================================================
2020-01-26#2020-01-26@0
================================================
FILE: database/kkeisuke
================================================
2019-09-08#2019-09-08@0
================================================
FILE: database/klaernie
================================================
2020-05-17#2020-05-17@0
================================================
FILE: database/klinker24
================================================
2017-06-11#2017-06-11@0
================================================
FILE: database/koic
================================================
2020-05-10#2020-05-10@0
================================================
FILE: database/koudaiii
================================================
2017-03-12#2017-03-12@0
================================================
FILE: database/kovidgoyal
================================================
2020-04-12#2020-04-12@0
================================================
FILE: database/kroitor
================================================
#2017-07-02
================================================
FILE: database/ksoichiro
================================================
#2016-09-11
================================================
FILE: database/kyun2024
================================================
2020-02-23#2020-02-23@0
================================================
FILE: database/lacker
================================================
2016-07-10#2016-07-10@0
================================================
FILE: database/lambtron
================================================
2016-09-25#2016-09-25@0
================================================
FILE: database/lee-seul
================================================
2018-11-11#2018-11-11@0
================================================
FILE: database/leee
================================================
2020-05-17#2020-05-17@0
================================================
FILE: database/leny
================================================
2019-04-28#2019-04-28@0
================================================
FILE: database/linuxandchill
================================================
2015-12-27#2015-12-27@0
================================================
FILE: database/ljharb
================================================
2014-04-16#2014-04-16@1
================================================
FILE: database/ljungmark
================================================
2018-10-14#2018-10-14@0
================================================
FILE: database/lpinca
================================================
2019-06-30#2019-06-30@0
================================================
FILE: database/lucadelu
================================================
2016-01-17#2016-01-17@0
================================================
FILE: database/mahmoud
================================================
2016-08-21#2016-08-21@0
================================================
FILE: database/manwar
================================================
#2016-07-10
================================================
FILE: database/maoberlehner
================================================
2016-06-05#2016-06-05@0
================================================
FILE: database/marc2332
================================================
2020-04-12#2020-04-12@0
================================================
FILE: database/marianzburlea
================================================
2019-02-03#2019-02-03@0
================================================
FILE: database/mazipan
================================================
2020-04-26#2020-04-26@0
================================================
FILE: database/mdda
================================================
2018-01-21#2018-01-21@0
================================================
FILE: database/mgechev
================================================
#2019-06-02
================================================
FILE: database/michalbe
================================================
#2014-12-28
================================================
FILE: database/minozzi
================================================
2016-06-10#2016-06-10@0
================================================
FILE: database/mitchellkrogza
================================================
2018-05-20#2018-05-20@0
================================================
FILE: database/mojavelinux
================================================
2015-11-30#2015-11-30@1
================================================
FILE: database/moonrailgun
================================================
2020-05-17#2020-05-17@0
================================================
FILE: database/moul
================================================
2014-12-28#2014-12-28@0
================================================
FILE: database/mrk21
================================================
2015-08-09#2015-08-09@1
================================================
FILE: database/msaaddev
================================================
2019-12-29#2019-12-29@0
================================================
FILE: database/msantos
================================================
2016-05-01#2016-05-01@0
================================================
FILE: database/nathanchapman
================================================
#2017-08-13
================================================
FILE: database/nelsonic
================================================
2015-06-14
================================================
FILE: database/neotamoe
================================================
#2018-06-10
================================================
FILE: database/newbold
================================================
2020-02-02#2020-02-02@0
================================================
FILE: database/ngosang
================================================
2019-05-05#2019-05-05@0
================================================
FILE: database/niranjan94
================================================
#2017-02-12
================================================
FILE: database/notomo
================================================
2019-12-08#2019-12-08@0
================================================
FILE: database/nwtgck
================================================
#2019-03-10
================================================
FILE: database/oestrich
================================================
#2018-01-14
================================================
FILE: database/ooeunz
================================================
#2019-10-06
================================================
FILE: database/orisano
================================================
2019-09-22#2019-09-22@0
================================================
FILE: database/pacientes
================================================
2019-11-24#2019-11-24@0
================================================
FILE: database/pakinja
================================================
2019-10-06#2019-10-06@0
================================================
FILE: database/passy
================================================
2015-08-30#2015-08-30@0
================================================
FILE: database/pat-s
================================================
2019-12-08#2019-12-08@0
================================================
FILE: database/pavane90
================================================
2019-02-24#2019-02-24@0
================================================
FILE: database/peppy
================================================
2020-03-29#2020-03-29@0
================================================
FILE: database/petrozavodsky
================================================
2020-02-02#2020-02-02@0
================================================
FILE: database/pfalcon
================================================
2016-01-10#2016-01-10@0
================================================
FILE: database/pharzan
================================================
2017-10-01#2017-10-01@0
================================================
FILE: database/phodal
================================================
2014-12-28#2014-12-28@0
================================================
FILE: database/piratebayproxy
================================================
2019-11-03#2019-11-03@0
================================================
FILE: database/pkrumins
================================================
2015-12-27#2015-12-27@0
================================================
FILE: database/pneugebala
================================================
#2017-10-29
================================================
FILE: database/ponyopoppo
================================================
2019-09-08#2019-09-08@0
================================================
FILE: database/pqt
================================================
2019-04-14#2019-04-14@0
================================================
FILE: database/praveenjuge
================================================
2019-11-24#2019-11-24@0
================================================
FILE: database/priyansh19
================================================
2019-12-15#2019-12-15@0
================================================
FILE: database/progfay
================================================
2020-04-12#2020-04-12@0
================================================
FILE: database/promie
================================================
2020-04-12#2020-04-12@0
================================================
FILE: database/pvnr0082t
================================================
#2016-04-10
================================================
FILE: database/pwaddles
================================================
#2016-05-15
================================================
FILE: database/rajeshwarpatlolla
================================================
2015-08-02#2015-08-02
================================================
FILE: database/ratson
================================================
2015-06-28
================================================
FILE: database/rayriffy
================================================
2017-06-25#2017-06-25@0
================================================
FILE: database/rchaser53
================================================
2017-05-28#2017-05-28@0
================================================
FILE: database/remarkablemark
================================================
2020-06-14#2020-06-14@0
================================================
FILE: database/renpytom
================================================
2020-04-05#2020-04-05@0
================================================
FILE: database/reporobot
================================================
2016-01-17#2016-01-17@0
================================================
FILE: database/rhysd
================================================
2015-09-20#2015-09-20@0
================================================
FILE: database/rich-iannone
================================================
2015-10-25#2015-10-25@0
================================================
FILE: database/rivy
================================================
2020-05-24#2020-05-24@0
================================================
FILE: database/rkn
================================================
2017-03-26#2017-03-26@0
================================================
FILE: database/rmariuzzo
================================================
2020-03-29#2020-03-29@0
================================================
FILE: database/robert-strandh
================================================
2016-12-04#2016-12-04@0
================================================
FILE: database/robertdebock
================================================
2018-06-10#2018-06-10@0
================================================
FILE: database/rondevera
================================================
2013-05-19#2013-05-19@0
================================================
FILE: database/roxstack
================================================
2019-06-16#2019-06-16@0
================================================
FILE: database/rtivital
================================================
#2017-12-31
================================================
FILE: database/ruanyf
================================================
#2017-03-05
================================================
FILE: database/rust-highfive
================================================
2019-11-24#2019-11-24@0
================================================
FILE: database/ryanrhymes
================================================
2016-12-11#2016-12-11@0
================================================
FILE: database/sahat
================================================
2015-06-28
================================================
FILE: database/sakurano
================================================
2019-12-22#2019-12-22@0
================================================
FILE: database/samber
================================================
#2020-02-09
================================================
FILE: database/samkelleher
================================================
2016-06-19#2016-06-19@0
================================================
FILE: database/sartak
================================================
2012-12-30#2012-12-30@0
================================================
FILE: database/sbmx
================================================
2017-11-19#2017-11-19@0
================================================
FILE: database/scriptex
================================================
2020-06-14#2020-06-14@0
================================================
FILE: database/scripting
================================================
2019-09-15#2019-09-15@0
================================================
FILE: database/sharjeelyunus
================================================
2020-04-12#2020-04-12@0
================================================
FILE: database/shonumi
================================================
2016-11-06#2016-11-06@0
================================================
FILE: database/shun-shobon
================================================
2020-06-28#2020-06-28@0
================================================
FILE: database/soichisumi
================================================
2020-05-24#2020-05-24@0
================================================
FILE: database/soumyadip007
================================================
2019-06-23#2019-06-23@0
================================================
FILE: database/soumyajit4419
================================================
2020-06-28#2020-06-28@0
================================================
FILE: database/spences10
================================================
2016-12-26#2016-12-26@1
================================================
FILE: database/steveklabnik
================================================
2015-10-11#2015-10-11@0
================================================
FILE: database/suguru03
================================================
2018-06-17#2018-06-17@0
================================================
FILE: database/sugyan
================================================
2015-11-08#2015-11-08@0
================================================
FILE: database/susisu
================================================
2016-12-11#2016-12-11@0
================================================
FILE: database/sy-records
================================================
2020-01-12#2020-01-12@0
================================================
FILE: database/taegon
================================================
2020-06-21#2020-06-21@0
================================================
FILE: database/taisukef
================================================
2020-05-17#2020-05-17@0
================================================
FILE: database/takecy
================================================
2016-05-29#2016-05-29@0
================================================
FILE: database/tao12345666333
================================================
2015-12-13#2015-12-13@0
================================================
FILE: database/technote-space
================================================
2019-10-27#2019-10-27@0
================================================
FILE: database/textbrowser
================================================
2017-01-01#2017-01-01@0
================================================
FILE: database/theochan62
================================================
2016-06-26#2016-06-26@0
================================================
FILE: database/theriley106
================================================
2018-04-08#2018-04-08@0
================================================
FILE: database/thesephist
================================================
2020-04-12#2020-04-12@0
================================================
FILE: database/tianon
================================================
#2018-02-25
================================================
FILE: database/timakin
================================================
2020-01-19#2020-01-19@0
================================================
FILE: database/timothycrosley
================================================
2019-08-18#2019-08-18@0
================================================
FILE: database/tokenrove
================================================
#2017-01-01
================================================
FILE: database/tommyettinger
================================================
2014-06-14
================================================
FILE: database/toxtli
================================================
2017-04-09#2017-04-09@0
================================================
FILE: database/unixorn
================================================
2014-08-25#2014-08-25@0
================================================
FILE: database/unixpickle
================================================
2017-03-12#2017-03-12@0
================================================
FILE: database/utilForever
================================================
2020-06-21#2020-06-21@0
================================================
FILE: database/utkarsh2102
================================================
2020-05-31#2020-05-31@0
================================================
FILE: database/vaibhavsagar
================================================
2017-02-26#2017-02-26@0
================================================
FILE: database/vednoc
================================================
2019-01-01#2019-01-01@0
================================================
FILE: database/victoriadrake
================================================
2020-03-15#2020-03-15@0
================================================
FILE: database/vinayakkulkarni
================================================
2020-04-05#2020-04-05@0
================================================
FILE: database/vincentmvdm
================================================
#2017-05-28
================================================
FILE: database/vipulnaik
================================================
2018-05-06#2018-05-06@0
================================================
FILE: database/vkarpov15
================================================
#2017-03-05
================================================
FILE: database/vsoch
================================================
2017-12-03#2017-12-03@0
================================================
FILE: database/vstakhov
================================================
2020-05-03#2020-05-03@0
================================================
FILE: database/vvscode
================================================
2017-11-26#2017-11-26@0
================================================
FILE: database/wbraswell
================================================
2014-08-05
================================================
FILE: database/webistomin
================================================
2020-04-12#2020-04-12@0
================================================
FILE: database/wjdrbs96
================================================
2020-04-05#2020-04-05@0
================================================
FILE: database/xvitaly
================================================
2020-03-22#2020-03-22@0
================================================
FILE: database/y-yagi
================================================
2016-04-03#2016-04-03@0
================================================
FILE: database/yhdesai
================================================
#2019-11-17
================================================
FILE: database/yihui
================================================
#2017-08-06
================================================
FILE: database/yoo2001818
================================================
2018-04-29#2018-04-29@0
================================================
FILE: database/yosuke-furukawa
================================================
2020-06-28#2020-06-28@0
================================================
FILE: database/yourtion
================================================
2016-03-20#2016-03-20@0
================================================
FILE: database/yutiansut
================================================
#2016-07-10
================================================
FILE: database/yuzumone
================================================
2016-12-25#2016-12-25@0
================================================
FILE: database/zackexplosion
================================================
2017-09-24#2017-09-24@0
================================================
FILE: database/zeke
================================================
#2016-08-28
================================================
FILE: database/zhanglintc
================================================
#2015-09-13
================================================
FILE: database/zilkey
================================================
2018-05-20#2018-05-20@0
================================================
FILE: database/zmughal
================================================
2015-06-28#2015-06-28
================================================
FILE: database/zzsza
================================================
2020-05-31#2020-05-31@0
================================================
FILE: package.json
================================================
{
"name": "github-original-streak",
"version": "0.16.0",
"description": "Get back longest and current streak on Github profiles",
"scripts": {
"commit": "git-cz",
"test": "xo",
"prebuild": "rimraf chrome/src/ firefox/data/ build",
"prepackage": "rimraf build",
"build": "webpack",
"build:watch": "webpack --watch",
"package": "mkdirp build && cd ./chrome && zip -r ../build/chrome.zip ./* && cd ../build && cp chrome.zip chrome.nex"
},
"repository": {
"type": "git",
"url": "git+https://github.com/Naramsim/GithubOriginalStreak.git"
},
"keywords": [
"github",
"streak",
"original"
],
"author": "Naramsim",
"license": "MPL-2.0",
"bugs": {
"url": "https://github.com/Naramsim/GithubOriginalStreak/issues"
},
"homepage": "https://github.com/Naramsim/GithubOriginalStreak#readme",
"devDependencies": {
"babel-core": "^6.26.3",
"babel-loader": "^6.4.1",
"babel-preset-es2015": "^6.24.1",
"commitizen": "^3.1.2",
"css-loader": "^3.6.0",
"cz-conventional-changelog": "^2.1.0",
"eslint": "^5.16.0",
"jpm": "^1.3.1",
"json-loader": "^0.5.7",
"mkdirp": "^1.0.4",
"rimraf": "^2.7.1",
"style-loader": "^0.23.1",
"webpack": "^1.15.0",
"xo": "^0.24.0"
},
"xo": {
"envs": [
"browser"
],
"ignores": [
"chrome/**/*",
"firefox/**/*"
],
"esnext": true,
"space": 4,
"rules": {
"linebreak-style": 0,
"max-lines": 0
}
},
"config": {
"commitizen": {
"path": "cz-conventional-changelog"
}
},
"dependencies": {
"moment": "^2.30.1",
"github-api": "^3.4.0"
}
}
================================================
FILE: src/change-color.js
================================================
/* change github streak color functionality */
function updateStyle(selector, property, value) {
[...document.querySelectorAll(selector)].forEach(node => {
node.style[property] = value;
});
}
function changeContributionsColor() {
const color = localStorage.getItem('colorScheme');
const colorSchemes = {
'blue-sky': {
'ebedf0': 'ebedf0',
'c6e48b': '9DC1F6',
'7bc96f': '629DF3',
'239a3b': '2B7BF2',
'196127': '0363F0'
},
'halloween': {
'ebedf0': 'ebedf0',
'c6e48b': 'FFEE58',
'7bc96f': 'FFCA28',
'239a3b': 'EF6C00',
'196127': '000000'
}
};
if (color && colorSchemes[color]) {
Object.keys(colorSchemes[color]).forEach(key => {
const currentColorScheme = colorSchemes[color];
updateStyle(`rect[fill='#${key}']`, 'fill', `#${currentColorScheme[key]}`);
updateStyle(`li[style='background-color: #${key}']`, 'backgroundColor', `#${currentColorScheme[key]}`);
});
}
}
module.exports = changeContributionsColor;
================================================
FILE: src/index.css
================================================
.contrib-column {
text-align: center;
font-size: 11px;
padding: 15px 0px;
}
.contrib-column-first {
border-left: 0px;
}
.table-column {
display: table-cell;
width: 1%;
padding-right: 10px;
padding-left: 10px;
vertical-align: top;
}
.text-muted {
color: var(--color-text-secondary);
}
.contrib-number {
font-weight: 300;
line-height: 1.3em;
font-size: 24px;
display: block;
color: var(--color-text-primary);
}
.text-muted {
color: var(--color-text-secondary);
}
.glowing {
outline: none;
border-color: #c29eed;
box-shadow: 0 0 10px #bfbfff;
}
.mb-5.border.border-gray-dark.rounded-1.py-3 {
padding-bottom: 0px !important;
}
================================================
FILE: src/index.js
================================================
require('./index.css');
const inject = require('./inject');
const {qs, qsa} = require('./node');
// const changeContributionsColor = require('./change-color');
// invoke inject function
inject();
// invoke changeColor function
// changeContributionsColor();
// attach click handler to navs
// attachNavClickHandler();
// function navClickHandler() {
// /**
// * look for changes in the progress-pjax-loader-bar
// * and invoke inject function
// * to inject github streak container
// */
// const observer = new MutationObserver(mutations => {
// mutations.forEach(mutation => {
// if (mutation.oldValue) {
// if (mutation.target.classList.contains('selected')) {
// // stop observing
// //observer.disconnect();
// setTimeout(() => {
// // invoke inject function
// inject();
// // invoke changeColor function
// changeContributionsColor();
// // attach clickHandler to nav as it has been detached
// attachNavClickHandler();
// }, 3000);
// }
// }
// });
// });
// /**
// * observe pjaxLoaderBar for changes in attributes
// */
// const pjaxLoaderBar = qs('#overview-tab', true);
// const yearsList = qs('.filter-list.small', false);
// const orgsNav = qs('.js-org-filter-links-container > nav', false);
// const config = {
// attributes: true,
// attributeOldValue: true,
// subtree: true
// };
// if (pjaxLoaderBar) {
// observer.observe(pjaxLoaderBar, config);
// }
// if (yearsList) {
// observer.observe(yearsList, config);
// }
// if (orgsNav) {
// observer.observe(orgsNav, config);
// }
// }
// function attachNavClickHandler() {
// const navs = qsa('nav, .profile-timeline-year-list.js-sticky');
// if (navs.length > 0) {
// navs.forEach(nav => {
// // resets and adds a click handler
// // since the page is rewritten
// nav.removeEventListener('click', navClickHandler, false);
// nav.addEventListener('click', navClickHandler, false);
// });
// }
// }
================================================
FILE: src/inject.js
================================================
const moment = require('moment');
const store = require('./store');
const {qs, qsa} = require('./node');
const now = moment();
function updateContributionsHeading(contributionsCalendar) {
const contributionsHeadingContainer = contributionsCalendar.previousElementSibling.childNodes;
let contributionsHeading;
if (contributionsHeadingContainer.length === 1) {
contributionsHeading = contributionsHeadingContainer[0];
} else {
contributionsHeading = contributionsHeadingContainer[2];
}
contributionsHeading.textContent = 'Contributions';
}
function getTotalContributionsText(firstContributionDate, lastContributionDate, moreThan1Year = false) {
let contributionText = '';
if (moreThan1Year) {
contributionText = `${moment(lastContributionDate).subtract(1, 'year').format('MMM D YYYY')} - ${moment(lastContributionDate).format('MMM D YYYY')}`;
} else {
contributionText = `${moment(firstContributionDate).format('MMM D YYYY')} - ${moment(lastContributionDate).format('MMM D YYYY')}`;
}
return contributionText;
}
function getLongestStreakText(longestStreakStartingDate, longestStreakEndingDate, format = 'MMM D') {
return `${moment(longestStreakStartingDate).format(format)} - ${moment(longestStreakEndingDate).format(format)}`;
}
function getCurrentStreakText(contributionDate = '', noContributionsToday, format = 'MMM D') {
if (noContributionsToday) {
contributionDate = `${moment(contributionDate).format(format)} - ${now.subtract(1, 'days').format(format)}`;
} else {
contributionDate = `${moment(contributionDate).format(format)} - ${now.format(format)}`;
}
return contributionDate;
}
function getLastContributionText(contributionDate) {
return `Last contributed <time>${moment(contributionDate).fromNow(true)} ago</time>`;
}
function getStreakHTML(data) {
return data.map((item, index) => {
return `
<div class="contrib-column table-column ${index === 0 ? 'contrib-column-first' : ''}">
<span class="text-muted">${item[0]}</span>
<span class="contrib-number">${item[1].toLocaleString()}</span>
<span class="text-muted">${item[2]}</span>
</div>
`;
}).join('\n');
}
function while_2s() {
setInterval(() => {
inject()
}, 2000);
}
function inject() {
let currentProfile = false;
let days = false;
let totalContributions = 0;
let currentStreak = 0;
let longestStreak = 0;
let currentLongestStreak = 0;
let nonContributingDays = 0;
let isCurrentStreak = true;
let initialStreakDateGivenByUser = false;
let totalContributionsText = '';
let longestStreakText = '';
let currentStreakText = '';
let lastContributionText = '';
let firstContributionDate = '';
let lastContributionDate = '';
let longestStreakStartingDate = '';
let longestStreakEndingDate = '';
let contributionsCalendar = qsa('.graph-before-activity-overview')[0];
if (! contributionsCalendar) {
return 0
}
if (document.querySelector('.original-streak')) {
return 0
}
const daysSelector = qsa('.ContributionCalendar-grid .ContributionCalendar-day');
if (daysSelector.length > 0) {
days = Array.from(daysSelector).reverse();
}
currentProfile = window.location.pathname.substring(1);
if (contributionsCalendar && currentProfile) {
parse();
// if probably has a full calendar
// retrieve custom start streak date
if (nonContributingDays <= 30) {
// invoke and wait data retrieval
store.get(currentProfile).then(userData => {
if (userData) {
const match = userData.data.match(/^(\d{4}-\d{2}-\d{2})?(?:#(\d{4}-\d{2}-\d{2}))?(?:@([01]))?$/);
if (match) {
initialStreakDateGivenByUser = match[1];
// initialStreakDateGivenByUserBkp = match[2]; // Deprecated
// customStartStreakDateWasSetByUser = (match[3] === '1'); // Deprecated
}
}
build();
});
} else {
build();
}
}
function parse() {
updateContributionsHeading(contributionsCalendar);
// the line below is for testing
// days[23].attributes['data-count'].value = 0
// for each day from last day (current day) to first available day
days.forEach((day, index) => {
// Attribute patching/DOM surgery because it looks like GitHub has removed the 'data-count' attribute :(
const day_id = day.id;
if (! day_id.startsWith('contribution-day-component') ) {
return 0
}
const parseContributionCount = () => {
let contributionCount = 0
let day_contributions = parseInt(qs(`tool-tip[for=${day_id}]`).textContent.split(' ')[0]) // parseInt inteprets 0 as false
if (day_contributions) {
contributionCount += day_contributions
} else {
contributionCount += 0 // Unnecessary
}
return contributionCount;
}
const extractedContributionCount = parseContributionCount();
var count = undefined;
if (day.attributes['data-count']) {
count = parseInt(day.attributes['data-count'].value, 10);
}
if (typeof count === 'undefined') {
days[index].setAttribute('data-count', extractedContributionCount);
}
var contributionCount = extractedContributionCount;
if (!contributionCount) {
contributionCount = 0;
}
var contributionDate = undefined;
if (day.attributes['data-date']) {
contributionDate = day.attributes['data-date'].value;
}
var noContributionToday = contributionCount === 0;
if (contributionCount) {
totalContributions += contributionCount;
firstContributionDate = contributionDate;
// dont update lastContributionDate once it is set
if (!lastContributionDate) {
lastContributionDate = contributionDate;
}
currentLongestStreak += 1;
} else {
currentLongestStreak = 0;
nonContributingDays += 1;
}
// when ever currentLongestStreak is more than longestStreak
// set longestStreak to currentLongestStreak
if (currentLongestStreak > longestStreak) {
longestStreak = currentLongestStreak;
// since the day array is reversed
// longestStreakStartingDate is set to contributionDate
longestStreakStartingDate = contributionDate;
// and longestStreakEndingDate is calculated as longestStreakStartingDate + longestStreak days
longestStreakEndingDate = moment(contributionDate).add(longestStreak - 1, 'days');
}
if (contributionCount && isCurrentStreak) {
currentStreak += 1;
} else if (isCurrentStreak) {
// since contributionCount is 0
// end currentStreak and
// set isCurrentStreak to false
// only if we are not processing the very last day
// check that the contribution date isn't undefined (this an artefact from the fact that the legend now makes its way into the array of contribution squares.)
if (index !== 0 && contributionDate) {
if (firstContributionDate) {
currentStreakText = getCurrentStreakText(firstContributionDate, noContributionToday);
}
isCurrentStreak = false;
}
}
// if lastContributionDate is not empty
// but not currentStreak and lastContributionText is empty
// implies contributionDate is the lastContributionDate
if (lastContributionDate && !isCurrentStreak && !lastContributionText) {
lastContributionText = getLastContributionText(contributionDate);
}
});
}
function build() {
const noContributionToday = Number(days[0].attributes['data-count'].value) === 0;
const fullCalendar = nonContributingDays === 0;
const fullCalendarApartToday = (nonContributingDays === 1) && noContributionToday;
// if has submitted a custom start streak date
// and the calendar is full
if (initialStreakDateGivenByUser && (fullCalendar || fullCalendarApartToday)) {
// if he doesn't contributed today
// remove a day from currentStreak
if (noContributionToday) {
// update current streak
currentStreak = now.diff(moment(initialStreakDateGivenByUser, 'YYYY-MM-DD').add(1, 'days'), 'days');
} else {
// update current streak
currentStreak = now.diff(moment(initialStreakDateGivenByUser, 'YYYY-MM-DD'), 'days');
}
firstContributionDate = initialStreakDateGivenByUser;
}
// if has submitted a custom start streak date
// and the calendar is full
// or the user hasn'n committed anything today (but the calendar is full)
if (initialStreakDateGivenByUser && (fullCalendar || fullCalendarApartToday)) {
// update longest streak
longestStreak = now.diff(moment(initialStreakDateGivenByUser, 'YYYY-MM-DD'), 'days') - nonContributingDays;
longestStreakStartingDate = initialStreakDateGivenByUser;
}
// if has contributed at least one time
if (firstContributionDate) {
// if isCurrentStreak is not false
// then the getCurrentStreakText w.r.t firstContributionDate
if (isCurrentStreak) {
if (currentStreak < 365) {
currentStreakText = getCurrentStreakText(firstContributionDate, noContributionToday);
} else {
currentStreakText = getCurrentStreakText(firstContributionDate, noContributionToday, 'MMM D YYYY');
}
}
// if currentStreakText is empty
// set currentStreak as lastContributionText
if (!currentStreakText) {
currentStreakText = lastContributionText;
}
if (longestStreak < 365) {
longestStreakText = getLongestStreakText(longestStreakStartingDate, longestStreakEndingDate);
totalContributionsText = getTotalContributionsText(firstContributionDate, lastContributionDate);
} else {
longestStreakText = getLongestStreakText(longestStreakStartingDate, longestStreakEndingDate, 'MMM D YYYY');
totalContributionsText = getTotalContributionsText(firstContributionDate, lastContributionDate, true);
}
const data = [
[
'Contributions in the last year',
`${totalContributions.toLocaleString()} total`,
totalContributionsText
], [
'Longest streak',
`${longestStreak.toLocaleString()} ${longestStreak == 1 ? 'day' : 'days'}`,
longestStreakText
], [
'Current streak',
`${currentStreak.toLocaleString()} ${currentStreak == 1 ? 'day' : 'days'}`,
currentStreakText
]
];
const container = document.createElement('div');
container.innerHTML = getStreakHTML(data);
container.classList.add('original-streak')
if (!qs('.original-streak')) {
contributionsCalendar.appendChild(container);
}
}
}
}
module.exports = while_2s;
================================================
FILE: src/node.js
================================================
function printMissingNode(selector) {
console.log(`Node '${selector}' not found. GitHubOriginalStreak might break.`)
}
function qs(selector, mandatory=true) {
const node = document.querySelector(selector)
if ((node === null) && mandatory) {
printMissingNode(selector)
}
return node
}
function qsa(selector, mandatory=true) {
const node = document.querySelectorAll(selector)
if ((node && node.length === 0) && mandatory) {
printMissingNode(selector)
}
return node
}
module.exports = {qs, qsa}
================================================
FILE: src/store.js
================================================
const GitHub = require('github-api');
const secret = require('./secret.json');
const gh = new GitHub({
token: secret.token
});
const repo = gh.getRepo('Naramsim', 'GithubOriginalStreak');
function get(user) {
return repo.getContents('master', `database/${user}`, true)
}
module.exports = {get};
================================================
FILE: webpack.config.js
================================================
const webpack = require('webpack');
module.exports = {
entry: {
'chrome/src/inject': './src/index.js',
'firefox/data/inject': './src/index.js'
},
output: {
libraryTarget: 'umd',
path: '.',
filename: '[name].js'
},
module: {
loaders: [
{
test: /\.css$/,
loader: 'style!css'
},
{
test: /\.jsx?$/,
exclude: /(node_modules|bower_components)/,
loader: 'babel?presets[]=es2015'
},
{
test: /\.json$/,
loader: 'json-loader'
}
]
},
plugins: [
new webpack.ContextReplacementPlugin(/moment[\\\/]locale$/, /^\.\/(en)$/)
]
};
gitextract_wmnai4tg/ ├── .editorconfig ├── .gitignore ├── .travis.yml ├── LICENSE.md ├── README.md ├── chrome/ │ ├── _locales/ │ │ └── en/ │ │ └── messages.json │ └── manifest.json ├── code-of-conduct.md ├── contributing.md ├── database/ │ ├── 0nlyoung7 │ ├── 4dams │ ├── 88250 │ ├── AbdelrahmanHafez │ ├── AlexKVal │ ├── AlexMathew │ ├── AnandChowdhary │ ├── Anuken │ ├── AppleDash │ ├── BaseMax │ ├── BaseMaxFollows you │ ├── Bryan-Rojas │ ├── CSSEGISandData │ ├── CaesiumY │ ├── Chion82 │ ├── ChristopherJamesN │ ├── CorentinB │ ├── Dacrol │ ├── DanielRuf │ ├── Darklg │ ├── DrkSephy │ ├── ErikBoesen │ ├── ErikBoesenFollows you │ ├── Eros │ ├── Eurus-Holmes │ ├── FlorianWoelki │ ├── Froren │ ├── GeorgH93 │ ├── Gizmotronn │ ├── HansSchouten │ ├── Harmon758 │ ├── Haroenv │ ├── HenrikBengtsson │ ├── HsiangHo │ ├── IamMHC │ ├── InnoFang │ ├── IonicaBizau │ ├── Ir1d │ ├── IrisDroidology │ ├── Ivshti │ ├── JB1905 │ ├── JJ │ ├── JakeJMattson │ ├── JarateKing │ ├── JedWatson │ ├── JonnieWayy │ ├── Kehvarl │ ├── KenanSulayman │ ├── KonradLinkowski │ ├── KyleBanks │ ├── LTLA │ ├── LeonTG │ ├── MU001999 │ ├── MacKentoch │ ├── ManrajGrover │ ├── Matt-Gleich │ ├── MichaelHillcox │ ├── Mihir-Achyuta │ ├── NLDev │ ├── Naramsim │ ├── Nasdin │ ├── NishkarshRaj │ ├── Octopus │ ├── OvidijusParsiunas │ ├── PeterDaveHello │ ├── Pratham82 │ ├── PuRonglong │ ├── RapidTheNerd │ ├── SamueleDassatti │ ├── SangChan │ ├── Sanjays2402 │ ├── SilverRainZ │ ├── TDA │ ├── TheDoctor0 │ ├── TomasHubelbauer │ ├── TomasVotruba │ ├── ToruNiina │ ├── Tyriar │ ├── Wuon │ ├── WyriHaximus │ ├── YujiSoftware │ ├── aaron7pm │ ├── aarondancer │ ├── abetomo │ ├── abo-abo │ ├── abranhe │ ├── adamalston │ ├── aeneasr │ ├── ahmadawais │ ├── ahribori │ ├── ajlopez │ ├── akerl │ ├── albertyw │ ├── aldi │ ├── alexdevero │ ├── algernon │ ├── alsamzu │ ├── alstn2468 │ ├── andyljones │ ├── ani03sha │ ├── anvaka │ ├── aofei │ ├── aschkenasy │ ├── aycabta │ ├── azu │ ├── barclayd │ ├── bcongdon │ ├── bennetgallein │ ├── benoitvallon │ ├── bigeasy │ ├── bkaradzic │ ├── bkeepers │ ├── bors │ ├── bouzuya │ ├── br-lemes │ ├── brackeen │ ├── brammool │ ├── briandfoy │ ├── brianshumate │ ├── brunocvcunha │ ├── bt │ ├── c41x │ ├── calebcartwright │ ├── christopho │ ├── cixtor │ ├── clarketm │ ├── clementmihailescu │ ├── compnerd │ ├── conorhastings │ ├── cosmo0920 │ ├── crisbeto │ ├── curranoi │ ├── cutsea110 │ ├── dalance │ ├── davidsneighbour │ ├── davinkevin │ ├── dgryski │ ├── dgw │ ├── dhruvdutt │ ├── dirk-thomas │ ├── dkandalov │ ├── docker-library-bot │ ├── domix │ ├── donnemartin │ ├── doowb │ ├── dorayakikun │ ├── dougwilson │ ├── duncan3dc │ ├── edavis10 │ ├── eddelbuettel │ ├── electron-bot │ ├── erlaninfo │ ├── fadyehabamer │ ├── felixonmars │ ├── franznkemaka │ ├── freeatnet │ ├── fy0 │ ├── g-harel │ ├── gambuzzi │ ├── gapry │ ├── getify │ ├── githubsaturn │ ├── grigoryvp │ ├── hacknug │ ├── halfrost │ ├── harady │ ├── hczhcz │ ├── heavywatal │ ├── hemanth │ ├── hiqsol │ ├── hongsii │ ├── icanhasjonas │ ├── igr │ ├── ijjk │ ├── ilovezfs │ ├── indigolain │ ├── indoors3 │ ├── inureyes │ ├── ionan │ ├── itsAlexNguyen │ ├── ivoputzer │ ├── jaceklaskowski │ ├── jackytck │ ├── jacogr │ ├── jamesroutley │ ├── jaywcjlove │ ├── jbcrail │ ├── jdalton │ ├── jeanpaulsio │ ├── jeaye │ ├── jedisct1 │ ├── jehyunlee │ ├── jeremy │ ├── jeresig │ ├── jessety │ ├── jlopp │ ├── joehand │ ├── jojoldu │ ├── josevalim │ ├── jshuadvd │ ├── junho85 │ ├── justEhmadSaeed │ ├── jwasham │ ├── jxv │ ├── k8s-ci-robot │ ├── kaiorosa1 │ ├── kanzure │ ├── kazenetu │ ├── kazupon │ ├── kbroman │ ├── kbrsh │ ├── keitakn │ ├── khirayama │ ├── kimeshan │ ├── kiorky │ ├── kkeisuke │ ├── klaernie │ ├── klinker24 │ ├── koic │ ├── koudaiii │ ├── kovidgoyal │ ├── kroitor │ ├── ksoichiro │ ├── kyun2024 │ ├── lacker │ ├── lambtron │ ├── lee-seul │ ├── leee │ ├── leny │ ├── linuxandchill │ ├── ljharb │ ├── ljungmark │ ├── lpinca │ ├── lucadelu │ ├── mahmoud │ ├── manwar │ ├── maoberlehner │ ├── marc2332 │ ├── marianzburlea │ ├── mazipan │ ├── mdda │ ├── mgechev │ ├── michalbe │ ├── minozzi │ ├── mitchellkrogza │ ├── mojavelinux │ ├── moonrailgun │ ├── moul │ ├── mrk21 │ ├── msaaddev │ ├── msantos │ ├── nathanchapman │ ├── nelsonic │ ├── neotamoe │ ├── newbold │ ├── ngosang │ ├── niranjan94 │ ├── notomo │ ├── nwtgck │ ├── oestrich │ ├── ooeunz │ ├── orisano │ ├── pacientes │ ├── pakinja │ ├── passy │ ├── pat-s │ ├── pavane90 │ ├── peppy │ ├── petrozavodsky │ ├── pfalcon │ ├── pharzan │ ├── phodal │ ├── piratebayproxy │ ├── pkrumins │ ├── pneugebala │ ├── ponyopoppo │ ├── pqt │ ├── praveenjuge │ ├── priyansh19 │ ├── progfay │ ├── promie │ ├── pvnr0082t │ ├── pwaddles │ ├── rajeshwarpatlolla │ ├── ratson │ ├── rayriffy │ ├── rchaser53 │ ├── remarkablemark │ ├── renpytom │ ├── reporobot │ ├── rhysd │ ├── rich-iannone │ ├── rivy │ ├── rkn │ ├── rmariuzzo │ ├── robert-strandh │ ├── robertdebock │ ├── rondevera │ ├── roxstack │ ├── rtivital │ ├── ruanyf │ ├── rust-highfive │ ├── ryanrhymes │ ├── sahat │ ├── sakurano │ ├── samber │ ├── samkelleher │ ├── sartak │ ├── sbmx │ ├── scriptex │ ├── scripting │ ├── sharjeelyunus │ ├── shonumi │ ├── shun-shobon │ ├── soichisumi │ ├── soumyadip007 │ ├── soumyajit4419 │ ├── spences10 │ ├── steveklabnik │ ├── suguru03 │ ├── sugyan │ ├── susisu │ ├── sy-records │ ├── taegon │ ├── taisukef │ ├── takecy │ ├── tao12345666333 │ ├── technote-space │ ├── textbrowser │ ├── theochan62 │ ├── theriley106 │ ├── thesephist │ ├── tianon │ ├── timakin │ ├── timothycrosley │ ├── tokenrove │ ├── tommyettinger │ ├── toxtli │ ├── unixorn │ ├── unixpickle │ ├── utilForever │ ├── utkarsh2102 │ ├── vaibhavsagar │ ├── vednoc │ ├── victoriadrake │ ├── vinayakkulkarni │ ├── vincentmvdm │ ├── vipulnaik │ ├── vkarpov15 │ ├── vsoch │ ├── vstakhov │ ├── vvscode │ ├── wbraswell │ ├── webistomin │ ├── wjdrbs96 │ ├── xvitaly │ ├── y-yagi │ ├── yhdesai │ ├── yihui │ ├── yoo2001818 │ ├── yosuke-furukawa │ ├── yourtion │ ├── yutiansut │ ├── yuzumone │ ├── zackexplosion │ ├── zeke │ ├── zhanglintc │ ├── zilkey │ ├── zmughal │ └── zzsza ├── package.json ├── src/ │ ├── change-color.js │ ├── index.css │ ├── index.js │ ├── inject.js │ ├── node.js │ └── store.js └── webpack.config.js
SYMBOL INDEX (14 symbols across 4 files)
FILE: src/change-color.js
function updateStyle (line 2) | function updateStyle(selector, property, value) {
function changeContributionsColor (line 8) | function changeContributionsColor() {
FILE: src/inject.js
function updateContributionsHeading (line 7) | function updateContributionsHeading(contributionsCalendar) {
function getTotalContributionsText (line 19) | function getTotalContributionsText(firstContributionDate, lastContributi...
function getLongestStreakText (line 28) | function getLongestStreakText(longestStreakStartingDate, longestStreakEn...
function getCurrentStreakText (line 32) | function getCurrentStreakText(contributionDate = '', noContributionsToda...
function getLastContributionText (line 41) | function getLastContributionText(contributionDate) {
function getStreakHTML (line 45) | function getStreakHTML(data) {
function while_2s (line 57) | function while_2s() {
function inject (line 63) | function inject() {
FILE: src/node.js
function printMissingNode (line 1) | function printMissingNode(selector) {
function qs (line 5) | function qs(selector, mandatory=true) {
function qsa (line 13) | function qsa(selector, mandatory=true) {
FILE: src/store.js
function get (line 10) | function get(user) {
Condensed preview — 387 files, each showing path, character count, and a content snippet. Download the .json file or copy for the full structured content (76K chars).
[
{
"path": ".editorconfig",
"chars": 233,
"preview": "# editorconfig.org\nroot = true\n\n[*]\nindent_style = space\nindent_size = 4\nend_of_line = lf\ncharset = utf-8\ntrim_trailing_"
},
{
"path": ".gitignore",
"chars": 799,
"preview": "# Windows image file caches\nThumbs.db\nehthumbs.db\n\n# Folder config file\nDesktop.ini\n\n# Recycle Bin used on file shares\n$"
},
{
"path": ".travis.yml",
"chars": 231,
"preview": "language: node_js\ncache:\n directories:\n - node_modules\nnotifications:\n email: false\nnode_js:\n - stable\nbefore_inst"
},
{
"path": "LICENSE.md",
"chars": 16724,
"preview": "Mozilla Public License Version 2.0\n==================================\n\n1. Definitions\n--------------\n\n1.1. \"Contributor\""
},
{
"path": "README.md",
"chars": 1511,
"preview": "# GithubOriginalStreak 
About this extraction
This page contains the full source code of the Naramsim/GithubOriginalStreak GitHub repository, extracted and formatted as plain text for AI agents and large language models (LLMs). The extraction includes 387 files (54.5 KB), approximately 24.1k tokens, and a symbol index with 14 extracted functions, classes, methods, constants, and types. Use this with OpenClaw, Claude, ChatGPT, Cursor, Windsurf, or any other AI tool that accepts text input. You can copy the full output to your clipboard or download it as a .txt file.
Extracted by GitExtract — free GitHub repo to text converter for AI. Built by Nikandr Surkov.