-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* bump manifest versions to 0.2.3 * revert firefox manifest to v2 * add block interval timeout config and slider * update makefile zip commands to not be single line and more readable * fix slider thumb on chrome * stop processing queue when the user is logged out * add a logstr to the start of every log
- Loading branch information
Showing
10 changed files
with
239 additions
and
96 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# built package files | ||
*.zip |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,17 @@ | ||
import { api, ClearCache, DefaultOptions, SetOptions, HandleInstructionsResponse, HandleHomeTimeline } from './shared.js'; | ||
import { logstr, ClearCache, HandleInstructionsResponse, HandleHomeTimeline } from './shared.js'; | ||
|
||
document.addEventListener("blue-blocker-event", function (e) { | ||
ClearCache(); | ||
|
||
// retrieve option | ||
api.storage.sync.get(DefaultOptions, items => { | ||
SetOptions(items); | ||
const body = JSON.parse(e.detail.body); | ||
|
||
switch (e.detail.parsedUrl[1]) { | ||
case "HomeLatestTimeline": | ||
case "HomeTimeline": | ||
case "UserTweets": | ||
case "TweetDetail": | ||
return HandleInstructionsResponse(e, body); | ||
case "timeline/home.json": | ||
return HandleHomeTimeline(e, body); | ||
default: | ||
console.error("found an unexpected url that we don't know how to handle:", e.detail.url); | ||
} | ||
}); | ||
const body = JSON.parse(e.detail.body); | ||
switch (e.detail.parsedUrl[1]) { | ||
case "HomeLatestTimeline": | ||
case "HomeTimeline": | ||
case "UserTweets": | ||
case "TweetDetail": | ||
return HandleInstructionsResponse(e, body); | ||
case "timeline/home.json": | ||
return HandleHomeTimeline(e, body); | ||
default: | ||
console.error(logstr, "found an unexpected url that we don't know how to handle:", e.detail.url); | ||
} | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.