Commit Graph

1699 Commits

Author SHA1 Message Date
Chris c255f02f0f Way simplify vAPI closePopup for Safari 2015-01-13 13:55:52 -07:00
Deathamns 7bf0113db9 Firefox: fix tooltip animation 2015-01-13 21:33:26 +01:00
Deathamns bcc1c0da11 Fix prorblems caused by vAPI.insertHTML 2015-01-13 20:25:10 +01:00
gorhill 31e2b1ac03 Merge branch 'master' of github.com:gorhill/uBlock 2015-01-13 11:55:02 -05:00
gorhill b436f8e829 this fixes #490 2015-01-13 11:54:54 -05:00
Deathamns 7d2fe49eb0 Fix popup tooltips and sizing for Firefox 2015-01-13 17:20:16 +01:00
Deathamns b4ea545412 Implement vAPI.insertHTML
The purpose of this API is basically to satisfy AMO reviewers in the
future, since the use of innerHTML with variables (i.e., not plain text) will
be rejected without any questions.

Since this is not a problem for browsers other than Firefox, they will
use simple innerHTML assignment, however safe-parsing could be implemented
for them too.
2015-01-13 07:30:07 +01:00
Deathamns 3522f0414d Firefox: remove unloading from vAPI 2015-01-13 07:30:05 +01:00
Deathamns e0f214961d Miscellaneous changes 2015-01-13 07:30:04 +01:00
Deathamns a71c967613 Firefox: fixed content scripts? 2015-01-13 07:30:03 +01:00
Deathamns 687d226ce9 Firefox: improvements for content scripts 2015-01-13 07:30:01 +01:00
Deathamns d0de3d0d72 Firefox,Safari: implement vAPI.tabs.reload 2015-01-13 07:30:00 +01:00
Deathamns a31c30d55e Firefox: simplify vAPI.app.restart 2015-01-13 07:29:59 +01:00
Deathamns 41ac8ad39f Firefox: workaround for the e10s crash 2015-01-13 07:29:57 +01:00
Deathamns 8a9165daa2 Firefox: blocking improvements / other fixes
- Implement pop-up blocking
- Support blocking redirected requests
- Fix Local mirroring and inline-script blocking
- Block content on data: and about:blank pages
2015-01-13 07:29:56 +01:00
Deathamns 05bcc070a9 Firefox: popup size for menu-panel 2015-01-13 07:29:54 +01:00
Deathamns f0ad21fcf5 Safari: code styling 2015-01-13 07:29:53 +01:00
Deathamns a8e02d4dfa Firefox: fix copy-paste memory leak 2015-01-13 07:29:51 +01:00
Deathamns fbd2f74eb5 Firefox: implement vAPI.app.restart 2015-01-13 07:29:50 +01:00
Deathamns 5e55ba772d Code styling 2015-01-13 07:29:49 +01:00
Deathamns 9169388849 Firefox: ownsWeak=true for observers, +minor mods 2015-01-13 07:29:47 +01:00
Deathamns b8c943d539 Make vAPI.setIcon less Chromium specific 2015-01-13 07:29:46 +01:00
Deathamns b301ac031e Popup related changes 2015-01-13 07:29:44 +01:00
Deathamns dbfacad8a6 Firefox: new method for request handling
Now both nsIContentPolicy and on-http-* observers are used for net request
monitoring.

Reasons:
 - In many cases, nsIContentPolicy.shouldLoad is invoked twice for the same
   resource, because of the speculative parsing.
 - nsIContentPolicy.shouldLoad don't have information about the channel,
   so it can't redirect the request, nor change its headers, however
   on-http-opening-request can.

Also, local mirroring and inline-script blocking has been implemented.
2015-01-13 07:29:43 +01:00
Deathamns 720794357c Safari: get appinfo from tooltip 2015-01-13 07:29:41 +01:00
Deathamns 7815455aca Fix build scipts' shebang, let -> const 2015-01-13 07:29:40 +01:00
Deathamns 7ade0ec7e8 Firefox: better way to get the messageManager 2015-01-13 07:29:39 +01:00
Deathamns 5c2af95c73 Firefox: proper cleanup for context-menu item 2015-01-13 07:29:37 +01:00
Deathamns d4b2b81ae8 Firefox: move callback to last call 2015-01-13 07:29:36 +01:00
Deathamns 1bb074211c Firefox: saved prefs were overwritten by defaults 2015-01-13 07:29:34 +01:00
Deathamns 16a7bcb3d8 Firefox: add missing vAPI.onLoadAllCompleted 2015-01-13 07:29:33 +01:00
Deathamns 8a19f32373 Remove duplicate 'use strict'; 2015-01-13 07:29:30 +01:00
Deathamns 85ee514ebc Firefox: improve vAPI.tabs.getTabId 2015-01-13 07:29:28 +01:00
Deathamns c45b7c75e2 Firefox: implement vAPI.contextMenu 2015-01-13 07:29:26 +01:00
Deathamns 0d28d19a4e Chrome,Safari: fix typo and quotes 2015-01-13 07:29:25 +01:00
Deathamns 782f8d441d Firefox: revert previous change
Initializing the extension with AddonManager takes too long (at least for
this extension).
When starting the browser, tabs loaded before the extension could, and
because of that, blocking didn't work.
It works better, if it's initialized when the window's DOM is ready.
2015-01-13 07:29:22 +01:00
Deathamns e61514b9b1 Firefox,Safari: fill vAPI.app in a different way
Pass the extension data (name and version) as the fragment of the URL
for the background script, so vAPI.app can be filled without using XHR
to read the manifest files.
2015-01-13 07:29:21 +01:00
Deathamns 20bd1287cf Firefox: location.host isntead of app.cleanName 2015-01-13 07:29:19 +01:00
Deathamns ecdee65fda Add license headers, plus some code styling 2015-01-13 07:29:16 +01:00
Deathamns 8bb0d3276b Firefox: minor changes 2015-01-13 07:29:15 +01:00
Deathamns e20458a00f Firefox: fix script injection 2015-01-13 07:29:14 +01:00
Deathamns f74f07e092 Firefox: implement vAPI.tabs.injectScript 2015-01-13 07:29:12 +01:00
Deathamns 0e7122edf4 Firefox: 'load' -> 'DOMContentLoaded' 2015-01-13 07:29:11 +01:00
Deathamns 1eb81e4083 Firefox: fix 'main_frame' for e10s 2015-01-13 07:29:09 +01:00
Deathamns d13769b4a9 Firefox: initialize buttons when DOM is ready 2015-01-13 07:29:07 +01:00
Deathamns 45137c2be9 Firefox: update manifest files when building 2015-01-13 07:29:06 +01:00
Deathamns ec69a50101 Firefox: observe main_frame requests too 2015-01-13 07:29:05 +01:00
Deathamns 892e2fe45a Firefox: fix styling for toolbar button 2015-01-13 07:29:03 +01:00
Deathamns cb5d860725 Firefox: implement toolbar button and popup 2015-01-13 07:29:01 +01:00
Deathamns e4329b7dfe Firefox: blocking and content scripts for e10s 2015-01-13 07:29:00 +01:00
Deathamns 0f771e94d1 Firefox: add basic blocking + some fixes 2015-01-13 07:28:59 +01:00
Deathamns 3c76c61f61 Firefox: partial vAPI.tabs implementation 2015-01-13 07:28:57 +01:00
Deathamns 8297014700 Firefox: implement vAPI.storage via SQLite 2015-01-13 07:28:56 +01:00
Deathamns 98e5645ab5 Firefox: implement content scripts 2015-01-13 07:28:54 +01:00
Deathamns 67f18d023c Initial Firefox port (base, messaging, locales) 2015-01-13 07:28:52 +01:00
gorhill a617e195fe new revision 2015-01-12 10:12:10 -05:00
Chris e287e4643f Fix Safari i18n function (default to '' if no localized string found) 2015-01-11 20:37:49 -07:00
Raymond Hill 3982bd6de9 Merge pull request #478 from chrisaljoudi/master
Safari: remove extra call to popup resize -- now smoother
2015-01-11 21:43:01 -05:00
gorhill 159159321c bump revision for opera version 2015-01-11 21:41:26 -05:00
Chris 1c60434977 Safari: remove extra call to popup resize -- now smoother 2015-01-11 19:37:10 -07:00
gorhill b5d8c0ed52 standard comment header 2015-01-11 21:18:24 -05:00
Chris 0bd245803f Abstract out platform-specific popup UI JavaScript 2015-01-11 19:07:25 -07:00
Chris b57d04231d Merge branch 'master' of github.com:gorhill/uBlock 2015-01-11 18:41:38 -07:00
gorhill 336db7f997 platform-specific code for popup UI 2015-01-11 20:32:58 -05:00
Chris 0d03499858 Better Safari popover sizing, no mutation events 2015-01-11 18:06:29 -07:00
gorhill c8b5111101 new revision 2015-01-11 08:34:14 -05:00
gorhill 1597ce7fd9 lot of work related to dynamic filtering + new net requests logger 2015-01-06 08:01:15 -05:00
gorhill e8045d154b bringing changes from master 2015-01-02 14:19:12 -05:00
gorhill f5ec54f497 new revision 2015-01-02 13:45:54 -05:00
gorhill 00995992d2 this fixes #455 2015-01-02 13:42:35 -05:00
gorhill b1143614fb new revision 2015-01-01 21:24:06 -05:00
gorhill 2d05d51664 code review for #456 2015-01-01 21:14:53 -05:00
gorhill 2a7e9f8d98 this fixes #456: another unrelated bug unveil from previous fix 2015-01-01 20:58:19 -05:00
gorhill f3e22070d8 new revision 2015-01-01 19:15:00 -05:00
gorhill d5c3c2d6a6 new revision 2015-01-01 07:42:37 -05:00
gorhill 3c941f8309 another round of work re dynamic filtering 2014-12-31 17:26:17 -05:00
gorhill 60d8464d05 new revision 2014-12-25 07:28:54 -05:00
gorhill e286ad1ecb new revision 2014-12-22 14:49:13 -05:00
gorhill 5f1eeeda3f new revision 2014-12-20 15:47:46 -05:00
gorhill 5019f241df this fixes #418; also remove last chrome API reference from portable code 2014-12-17 08:02:37 -05:00
gorhill 67686c1d98 new version 2014-12-15 11:27:10 -05:00
Deathamns 857acaf2d2 Safari: auto-update *.plist files when building 2014-12-11 16:47:51 +01:00
Deathamns 8602c744c1 Safari: fetch data from Info.plist for vAPI.app 2014-12-08 15:44:13 +01:00
Deathamns 326ed213b0 Safari: fix tooltips for dynamic filtering 2014-12-08 09:40:26 +01:00
Deathamns 25cf80838b Safari: small locale improvements
Since there is no API for localization in Safari, we read the locale files
every time when an extension page opens.
This commit adds a new file "make-locale-safari.py", which will make the
size of the locale files smaller.
2014-12-08 08:15:08 +01:00
Raymond Hill 00c662d3dd bumping up version because of chrome store mess 2014-12-07 18:30:37 -02:00
Raymond Hill ec4077665c new revision 2014-12-06 15:09:24 -02:00
Raymond Hill 0e12797709 extension restart is platform-dependent 2014-12-02 14:02:17 -02:00
Deathamns 2a26448734 Safari: slightly better pop-up blocking 2014-12-01 21:09:25 +01:00
Deathamns d93d70b4ae Safari: vAPI.tabs.close() to vAPI.tabs.remove() 2014-12-01 20:47:29 +01:00
Deathamns f3bb101310 Safari: (semi)support vAPI.tabs.onUpdated() 2014-12-01 20:47:25 +01:00
Deathamns c0e11d8182 Safari: fix vAPI.tabs.close() + cleanup 2014-12-01 20:47:23 +01:00
Raymond Hill 2e4c0a2bfe remove depending on vapi-appinfo.js 2014-12-01 14:25:33 -02:00
Raymond Hill 012eb98f0e new version 2014-12-01 13:51:11 -02:00
Raymond Hill 6294dea81d "platform" is more accurate 2014-11-29 17:51:19 -02:00
Raymond Hill a087190847 code review, fixes #383 2014-11-29 01:00:45 -02:00
Raymond Hill 151c26da5c this fixes #380 2014-11-28 16:13:56 -02:00
Raymond Hill f149b2e340 jshint 2014-11-24 20:20:21 -02:00
Raymond Hill a430e526b6 use "platform" as suggested in #360 2014-11-24 14:49:11 -02:00