File tree Expand file tree Collapse file tree 1 file changed +0
-23
lines changed
Expand file tree Collapse file tree 1 file changed +0
-23
lines changed Original file line number Diff line number Diff line change @@ -49,27 +49,4 @@ onBrowse(async () => {
4949 ctr . appendChild ( gen ) ;
5050 }
5151 }
52-
53- const pageHeadActions = document . querySelectorAll ( ".pagehead-actions > *" ) ;
54- if ( pageHeadActions . length === 3 || pageHeadActions . length === 4 ) {
55- const Repo = document . querySelector ( '[itemprop="name"] a' ) ;
56- if ( Repo ) {
57- let page_head = document . getElementsByClassName ( "pagehead-actions" ) ;
58- if ( page_head . length > 0 ) {
59- page_head = page_head [ 0 ] ;
60- const a = document . createElement ( "a" ) ;
61- a . className = "btn-sm btn" ;
62- a . href = `${ Repo . href } /watchers` ;
63- a . textContent = "Watchers" ;
64-
65- const a2 = document . createElement ( "a" ) ;
66- a2 . className = "btn-sm btn" ;
67- a2 . href = `${ Repo . href } /stargazers` ;
68- a2 . textContent = "Stargazers" ;
69-
70- page_head . appendChild ( a ) ;
71- page_head . appendChild ( a2 ) ;
72- }
73- }
74- }
7552} ) ;
You can’t perform that action at this time.
0 commit comments