dhowe / chinaeye Goto Github PK
View Code? Open in Web Editor NEWExperience the web as if you were living in China...
License: Artistic License 2.0
Experience the web as if you were living in China...
License: Artistic License 2.0
https://github.com/dhowe/ChinaEye/blob/master/js/background.js#L290
The icon should be updated whenever the current tab changes, but it doesn't make sense to run through the keyword and page check again to get the blocking status of a specific tab that has already been loaded.
tabId:
{
tabUrl : url,
blockingStatus: status
}
It is not consistent that yahoo/bing are allowed/blocked...
Currently if the search keyword matches the triggers, the page won't be checked and the menu displays the server info as OK.
However, this would be very strange if the search engine url fails the server tests, which means that the server result displayed is 'ok' if the keywords is blocked, and 'fail' if the keyword is not blocked.
One way to avoid this is to always check server for the webpage.
in fact, maybe this should just replace what we have now, as most blocks will be related to sites, rather than specific pages
but, if it is a search, then we should disable only for that search.
so we need lists (in local storage) for whitelistedSites, whitelistedPages (?), and whitelistedSearches
I'm not sure how this should work exactly, but there needs to be an option for users (if they so choose) to keep CE enabled, but still view their favorite websites without redaction, even if they are blocked. This is sort of an info-only mode: CE still checks the page, but only changes the icon if blocked (and if the menu is clicked, shows the various server responses).
In this case, on Chrome, ChinaEye shows the page redacted, but GFW shows 'timeout'. Is this a valid response?
If so, perhaps it should get a yellow color, but not redacted? Same I think for anytime ANY of the servers is not green.
https://www.google.com.hk/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=grass+mud+horse
Might be related to when the font is loaded.
For publication in Chrome/Opera stores
Basics Functions:
1.Test blocked keywords on Search Engines: Google/Bing/Yahoo (Both text and image search)
2.Test sites that are blocked in China: Facebook,Youtube etc.
Background:
Please check the following content with background.html opened and
Check that ChinaEye gets Triggers from local when installed
Check that ChinaEye gets Triggers from local storage when reopened
Check that Trigger List can be successfully updated (By changing CheckInterval in background.js )
Features:
UI:
Pop up
1.Mode Switch
2.Servers Info
2.Buttons
also add link and 'supported by' credit...
Blocked on #65
Result in wrong display of server info and buttons.
This seems to happen consistently on certain pages, such as:
https://hk.yahoo.com/?p=us
For example: https://citizenlab.org/2017/04/we-cant-chat-709-crackdown-discussions-blocked-on-weibo-and-wechat/
@jasonqng's list has not been updated in quite some time
High priority as web is pretty unusable with the plugin until this is fixed (continually having to press disable for the same web sites)
For example, visit nytimes.com, click 'disable for site', then return 20 minutes later, and content is blocked again
Also, what about the case where a search engine is blocked (eg Google) and one actually wants to whitelist the site, not the search... This doesn't seem to work, though it may just be the problem above
Hi there,
Is this meant to be an educational tool to emphasize the importance of privacy and an open web? What browser is this for? It sounds fascinating in any case.
Thanks for your time.
not sure design-wise, but I think we need 2 or 3 versions of the icon:
Are we disabling for the site or for the search query?
No response to changes within the tab: click a link or type in a search keyword and hit enter
I don't get a mouse-over and nothing appears to happen when I click...
more accurate than GFW
E.g., chrome://
pages. Doesn't work to say 'pending' as the wait would be forever...
Since we know such pages are not blocked, we might want to just show green for servers, but perhaps with some kind of note?
Another option (below) would be to simply hide (in the content-script) the server options for such pages (I think I like this better, as the other could be misleading).
Should first call:
Cache.clear(key);
And then treat as a normal request (since the cache is cleared, the real server request will then be made)
Yes, I suppose this makes sense.
some questions, some suggested changes... some for discussion
Cache server checks so that we never recheck a server unless t seconds have passed
This will probably require a 'recheck now' button on the menu
so that they remain disabled after browser is restarted...
If the testing url is https://developer.chrome.com/extensions/tabs#method-get
,
Great Firewall of China returns "An error occured - please try again later. If the error continues to occur, please contact the webmaster."
If I try the same page with http instead of https, the page work.
But when I tried other pages with https (Facebook, gmail...), I don't see this error.
Show list of active blocked words
Could be accessible from menu, or from an options page, or both
Not sure if an actual problem:
Uncaught Error: Attempting to use a disconnected port object
at PortImpl.postMessage (extensions::messaging:60:13)
at Port.publicClassPrototype.(anonymous function) [as postMessage] (extensions::utils:149:26)
at responseCallback (extensions::messaging:166:16)
at Object.success (chrome-extension://bmlfgnkacjnbhefiokiheiohpeiomidk/js/background.js:129:7)
at i (chrome-extension://bmlfgnkacjnbhefiokiheiohpeiomidk/js/jquery-2.2.3.js:2:27151)
at Object.fireWith [as resolveWith] (chrome-extension://bmlfgnkacjnbhefiokiheiohpeiomidk/js/jquery-2.2.3.js:2:27914)
at z (chrome-extension://bmlfgnkacjnbhefiokiheiohpeiomidk/js/jquery-2.2.3.js:4:12120)
at XMLHttpRequest.<anonymous> (chrome-extension://bmlfgnkacjnbhefiokiheiohpeiomidk/js/jquery-2.2.3.js:4:15680)
1.Test blocked keywords on Search Engines: Google/Bing/Yahoo (Both text and image search)
2.Test sites that are blocked in China: Facebook,Youtube etc.
Background:
Please check the following content with background.html opened and
Check that ChinaEye gets Triggers from local when installed
Check that ChinaEye gets Triggers from local storage when reopened
Check that Trigger List can be successfully updated (By changing CheckInterval in background.js )
Features:
UI:
Pop up
1.Mode Switch
2.Servers Info
2.Buttons
chinese and english only for now
To reproduce:
1.Go to page https://www.google.com.hk/search?q=grass+mud+horse&biw=1076&bih=948&source=lnms&sa=X&ved=0ahUKEwjl5rv7w4LSAhVIpJQKHT5UDJEQ_AUIBygA&dpr=1
2.The page should be in redacted mode. Click "Disable on this page" in menu.
3.The page is back to normal. And the button in menu should be "Resume on this page"
4.Go to another tab and come back to the page, the button in menu is disabled. (Should still be an active "Resume on this page" button)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.