Skip to content

Commit

Permalink
Revert login check.
Browse files Browse the repository at this point in the history
  • Loading branch information
zacyu committed Jan 8, 2018
1 parent 4502547 commit b020182
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/background.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,16 +88,16 @@ URL.prototype.__defineGetter__('query', function() {
});
return parsedObj;
});
// chrome.cookies.get({
// url: 'https://www.bilibili.com',
// name: 'bili_jct',
// }, function(cookie) {
// if (cookie) {
// CRSF = cookie.value;
// hasLogin = true;
// addWatchLater(1913027);
// }
// });
chrome.cookies.get({
url: 'https://www.bilibili.com',
name: 'bili_jct',
}, function(cookie) {
if (cookie) {
CRSF = cookie.value;
hasLogin = true;
// addWatchLater(1913027);
}
});

// let randomIP = function(fakeip) {
// let ip_addr = '220.181.111.';
Expand Down

0 comments on commit b020182

Please sign in to comment.