FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
AtCoderVirtualContestTimer/background.js at master · NMLibrary/AtCoderVirtualContestTimer · GitHub
NMLibrary
/
AtCoderVirtualContestTimer
Public
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Issues
0
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
AtCoderVirtualContestTimer
/
background.js
Copy path
More file actions
More file actions
Latest commit
History
History
History
34 lines (28 loc) · 923 Bytes
Breadcrumbs
AtCoderVirtualContestTimer
/
background.js
Copy path
File metadata and controls
34 lines (28 loc) · 923 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
'use strict'
;
chrome
.
runtime
.
onInstalled
.
addListener
(
function
(
)
{
chrome
.
storage
.
sync
.
set
(
{
number
:
1
}
,
function
(
)
{
}
)
;
}
)
;
function
express
(
)
{
let
time
=
new
Date
(
)
;
let
year
=
time
.
getYear
(
)
;
let
month
=
time
.
getMonth
(
)
+
1
;
let
day
=
time
.
getDate
(
)
;
let
hour
=
time
.
getHours
(
)
;
let
minute
=
time
.
getMinutes
(
)
;
let
second
=
time
.
getSeconds
(
)
;
year
+=
1900
;
alert
(
year
+
"年"
+
month
+
"月"
+
day
+
"日"
+
hour
+
"時"
+
minute
+
"分"
+
second
+
"秒"
)
;
}
;
function
updateIcon
(
)
{
chrome
.
storage
.
sync
.
get
(
'number'
,
function
(
data
)
{
let
current
=
data
.
number
;
}
)
;
//setInterval(express, 120000);
}
;
chrome
.
browserAction
.
onClicked
.
addListener
(
updateIcon
)
;
updateIcon
(
)
;
Back
|
FazBrowse Home
|
New Git URL