1
0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2024-12-22 12:50:36 +01:00

445 Commits

Author SHA1 Message Date
kkapsner
cba5680406 First working webExtesion. 2017-06-25 22:33:12 +02:00
kkapsner
4ea073132d Changed library functions that may work in both types.
Added helper scripts for webExtension.
2017-06-25 22:22:17 +02:00
kkapsner
4d75ad4ca1 Fixed ask mode with input mode. 2017-06-25 21:14:13 +02:00
kkapsner
a6e1b05045 WebExtension: added embedded WebExtension to store the preferences for the transition 2017-05-21 13:17:35 +02:00
kkapsner
a9c7d97708 Prevented error when wrong object is passed to the faked functions.
Solves the fourth problem in #114.
2017-05-05 09:18:11 +02:00
kkapsner
231e33ffb7 Relative paths did no longer work for remoteRequire in nightly.
Also fixes #113 (first tab after restoration did not load frame script) - no clue why.
2017-04-23 00:27:40 +02:00
kkapsner
6fdf13bd10 Prevented error when canvas has size zero
Solves the third problem in #114
2017-04-19 19:32:37 +02:00
kkapsner
e55d0078d5 Modified functions need type.
Fixes #109
2017-03-03 00:55:32 +01:00
kkapsner
f85303065c Only interfecpt constructors that are present.
Fixes #108.
2017-02-22 17:46:17 +01:00
kkapsner
a8611230b1 Added option to store data for persistent rng.
Fixes #102.
2017-02-10 17:37:35 +01:00
kkapsner
b968e3e7a0 Firefox 45.7.0 (ESR) complained about function in block.
Fixes #105.
2017-02-10 17:29:38 +01:00
kkapsner
66536113e8 Fixed mode "fake at input". 2017-02-10 16:30:11 +01:00
kkapsner
6636e1d68b window objects of <frame>s with no url do get the "about:blank" too late -> treat blank URL the same way. 2017-02-01 11:15:05 +01:00
kkapsner
eb6494eca5 Shared persistent rnd between processes.
Fixes #103.
2017-02-01 10:49:33 +01:00
kkapsner
602d5a6bfd Switch from frameScript to require("sdk/remote/...").
Fixes #98. Fixes #100.
2017-01-31 21:51:08 +01:00
kkapsner
9c7e842f4b Prevented error message when notifications where triggered on preview, which is not possible. 2017-01-31 20:03:48 +01:00
kkapsner
ec1ae73cda about:blank pages are treated with respect to the opening page 2017-01-31 20:00:02 +01:00
kkapsner
b563a9d3ca removed error message when notification can not be closed 2017-01-30 11:31:04 +01:00
kkapsner
960f3c4f36 Only alter last bit also in non persistent rng mode.
Fixes #99.
2017-01-18 08:46:45 +01:00
kkapsner
6d7a9fc22a Removed bug with faking webgl and added readPixels for webgl2.
Fixes #96 and #97.
2016-12-26 14:36:01 +01:00
kkapsner
0eeaf84826 Improved performance for getImageData. 2016-12-03 17:29:30 +01:00
kkapsner
7b7583afe0 Performance increase when canvas bigger than maxSize.
Fixes #93.
2016-12-01 20:40:28 +01:00
kkapsner
c3c6c7a2e9 Fixes bug in fake function for readPixels.
Fixes #92.
2016-11-26 17:37:52 +01:00
kkapsner
d8a5cf2283 Dynamic notification id from message id. 2016-11-22 08:30:57 +01:00
kkapsner
fc07961c6b Completely remove function monitoring for white listed sites.
Fixes #84.
2016-11-19 15:35:00 +01:00
kkapsner
749b088fe9 Added button in options site to display release notes.
Fixes #83
2016-11-13 15:34:33 +01:00
kkapsner
82bb25d0f2 Monitoring only the necessary functions -> changes of the mode or the white/black lists only affects new loaded pages.
Fixes #84.
2016-11-13 15:09:03 +01:00
kkapsner
b2823cbd8d Added internal type handling for getContext.
Fixes #86
2016-11-13 14:55:42 +01:00
kkapsner
e4c65d415e Made checkStack available during interception. 2016-11-13 14:51:58 +01:00
kkapsner
d122f90655 Added notification display time.
Fixes #85.
2016-11-11 00:19:25 +01:00
kkapsner
26dcc31f5b Moved "use strict" to be ECMA 2016 compliant.
Fixes #80.
2016-10-31 16:43:49 +01:00
kkapsner
dc98a92e8f Direct access to exportFunction in intercept.js 2016-10-24 22:30:57 +02:00
kkapsner
a2fa00fb98 First implementation of the fakeInput mode. (And other improvements.) 2016-10-23 22:12:12 +02:00
kkapsner
b6d08459a5 Preworks for the new "fake-input" mode. 2016-10-22 13:32:48 +02:00
kkapsner
fcedf34b9f Fake notification was not shown in all cases. 2016-10-12 00:08:53 +02:00
kkapsner
827fd3124c Minor bug fixing and commenting in lib/randomSupplies.js
Fixes #76
2016-08-15 13:27:28 +02:00
kkapsner
1b2c4cb487 Added preference to control rng type. 2016-08-06 19:17:36 +02:00
kkapsner
447ff54222 Made random changes constant within the same domain. 2016-05-18 08:55:21 +02:00
kkapsner
699698f529 Improved faking performance. 2016-05-14 19:12:45 +02:00
kkapsner
37fd9f7a36 Suppressed notification if maxFakeSize triggers. 2016-05-11 08:58:45 +02:00
kkapsner
b8ba76300e Introduced maxFakeSize. 2016-05-10 08:01:21 +02:00
kkapsner
8240bf6007 .nodeName not readable on HTMLCanvasElementPrototype.
Fixes #66.
2016-04-30 15:05:20 +02:00
kkapsner
4465ff8435 Disabled faking in getImageData for bigger areas. 2016-04-21 23:54:48 +02:00
kkapsner
6ce7b81124 Code cleanup. 2016-02-13 12:48:22 +01:00
kkapsner
951277e922 e10s ready!
Fixes #60 and #42
2016-02-13 12:28:36 +01:00
kkapsner
424b88f04f Prevented bypass with empty <iframe>.
Fixes #58
2016-01-28 23:46:39 +01:00
kkapsner
d2f5a0cca1 Introduced stackList. 2015-12-31 13:37:27 +01:00
kkapsner
6c806583f0 Removed bug with "add to ignore list"-button & added translations for prompts.
Fixes #41.
2015-10-24 10:44:51 +02:00
kkapsner
0f575a7aed Added also prompt for adding to ignore list. 2015-10-11 13:56:28 +02:00
kkapsner
9255fb5813 Added prompts for domain and URL whitelist adding in notification as mentioned in issue #40. 2015-10-08 17:17:02 +02:00
kkapsner
5fe5ec1d64 Added support for webgl2 (?) 2015-09-10 01:58:38 +02:00
kkapsner
0640008459 Fixed bug with webgl-canvas. 2015-09-10 01:35:49 +02:00
kkapsner
0904d8e2a6 Linted all files. 2015-09-08 11:42:32 +02:00
kkapsner
6c46d28593 Reintroduced ask modes. 2015-09-08 11:41:33 +02:00
kkapsner
c10b382c93 Version 0.2.0
Reenabled notifications
Code cleanup.
2015-09-06 15:40:34 +02:00
kkapsner
97e0c6b9cd Removed pageMod and many not needed features.
Notifications not working.
2015-09-06 12:26:50 +02:00
kkapsner
4ed4bb759b Changed notification not to show full URL but only domain. Added button to show full URL.
Fixes #33
2015-09-01 21:40:30 +02:00
kkapsner
f6e09a9b1a Removed bypass option with non content windos. 2015-08-26 18:12:12 +02:00
kkapsner
519f6a4c58 Changed require calls for own modules. Otherwise the harness-options.json will contain wrong module names. 2015-06-23 13:14:50 +02:00
kkapsner
9676f3f5b1 Changed preferencePane styling to self hosted module. 2015-05-15 11:21:14 +02:00
kkapsner
0a4b92508a Reenabled "whitelist URL"
Added proper escaping to the URL.

This fixes #28
2015-05-11 10:55:12 +02:00
kkapsner
d1cf450ce5 Disabled "whitelist URL" in notification
Referres to #28
2015-05-11 10:47:50 +02:00
kkapsner
dc38d922c3 Better input in lists by notification buttons. 2015-05-11 10:45:04 +02:00
kkapsner
233cfd1f6a Preferences changes
Changed translations, reordered preferences and added a "disable
notifications" button to the notifications.

Fixed #24, #25 and #26
2015-05-06 23:59:36 +02:00
kkapsner
b6ac2248f3 Added proference to disable notifications 2015-05-03 13:39:27 +02:00
kkapsner
7ce54a25c9 Simplified translations in inject.js 2015-04-24 01:04:14 +02:00
kkapsner
475c28483f Added ignore list. 2015-04-23 10:04:20 +02:00
kkapsner
af47ee8d87 Code cleanup and removed blockAll bug
blockAll did not block readout-API. This could be relevant if a user
changes the setting and an open tab still holds a reference to a
canvas-context.
2015-04-22 11:55:31 +02:00
kkapsner
30407e71a0 Added fake for readPixels and removed new tab bug
Bug description: if a new tab is opened the wrong blockmode could be
used.
2015-04-22 11:18:26 +02:00
kkapsner
a8f636ba6f Merge remote-tracking branch 'origin/master' into notificationOnFakeReadout
Conflicts:
	canvasblocker.xpi
	data/inject.js
	lib/main.js
2015-04-15 12:11:51 +02:00
kkapsner
460da0f642 Functional notifications in right tab! 2015-04-15 12:02:21 +02:00
kkapsner
e639b863dd Simplified PDF checking 2015-04-15 11:39:35 +02:00
kkapsner
8524301655 Added translations 2015-04-15 11:33:10 +02:00
kkapsner
f0e3a6a874 First function notifications
may open notification on wrong tab...
2015-04-15 10:08:01 +02:00
kkapsner
ba524a896e Removed bug introduced with "about:" sites 2015-04-14 01:28:49 +02:00
kkapsner
0a88d47609 First notification steps - NOT FUNCTIONAL! 2015-04-14 01:26:04 +02:00
kkapsner
a6d58a3941 Added MPL 2015-01-16 13:01:01 +01:00
kkapsner
ab8a88ef66 Merge from master 2014-12-15 19:32:02 +01:00
kkapsner
1c0dc233a9 Added preferences to display caller(s) 2014-12-15 18:43:47 +01:00
kkapsner
caba7e33d0 First implementation 2014-12-04 23:34:41 +01:00
kkapsner
f5a2c46f24 Further code cleanup 2014-10-14 01:06:11 +02:00
kkapsner
74e86d5d12 Added separate fakeReadout option 2014-10-13 01:37:13 +02:00
kkapsner
7da2a94030 Added askReadout 2014-10-11 01:46:47 +02:00
kkapsner
3c96a9e3f5 More flexible list checking 2014-10-11 00:07:51 +02:00
kkapsner
147a2893c4 Changed to getter approach
- no "visible vs. invisible" possible
2014-10-09 00:26:36 +02:00
kkapsner
b2f6aee8f9 Added askOnlyOnce and blockReadout and major code changes 2014-10-08 03:16:23 +02:00
kkapsner
77ea4f4b6d Finally removed memory leak? 2014-10-05 15:08:01 +02:00
kkapsner
70a16e55a6 Removed memory leak 2014-10-04 14:26:05 +02:00
kkapsner
40d059311a Changed settings 2014-08-20 10:21:38 +02:00
kkapsner
430a9226dc Separated invisible and visible canvas asking 2014-08-17 23:32:23 +02:00
kkapsner
8098c9177c Removed Blacklist typo 2014-08-11 18:05:56 +02:00
kkapsner
124d0a73a5 Fixed PDF bug + added full RegExp support. 2014-08-10 18:03:58 +02:00
kkapsner
f185ad443b PDF canvas support 2014-08-04 17:02:42 +02:00
kkapsner
ebe1d66ad5 Added black list and ask. 2014-08-01 12:03:23 +02:00
kkapsner
0ab4f1b7d3 Initial Commit 2014-07-31 03:05:51 +02:00