You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 16, 2020. It is now read-only.
Repository navigation
This repository was archived by the owner on Oct 16, 2020. It is now read-only.
(Obsolete) Old Edge (EdgeHTML) build discussion thread #40
You've probably already seen it, but in case you haven't, check out uBlock-Edge.
Although it hasn't been updated since July, nikrolls (the maintainer) did find some workarounds for Edge's incompatibility issues, which you might be able to integrate into Nano for Edge.
I know that repo, and I plan on looking at it, I just added a 2 lines shim to see how well it performs.
Update: I quickly looked over his code and I don't really like how he did it. I probably will go read the doc and put together a shim from scratch, we'll see how it goes.
Hi, @jspenguin2017 . A few days ago I copied your project to my computer and tried to use nano adblocker on Edge. I used platform\chromium to modify.
This my way.
In manifest.json
default_icon,Change "128": ""img/browsericons/38_on.png"" to "38": "img/browsericons/128_on.png" .This change will make Icons show up.
icons add "16": "img/128_on.png", . This make context menu icon show up.
background add "persistent":true.
If you want publish to Windows Store, you need to add "minimum_edge_version": "41.16299.15.0",
In vapi-common.js and vapi-background.js
Change var chrome = self.chrome; to var chrome = self.browser;
In vapi-client.js
Change chrome.runtime.connect to browser.runtime.connect
In vapi-webrequest.js
Change wrApi = chrome.webRequest; to wrApi = browser.webRequest;
Edge will get exception Property 'path': 'tabId' is not a valid property in the dictionary if use path: iconPaths[status === 'on' ? 1 : 0]
In tools folder add make-edge.sh . You can copy from make-chromium.sh. But you need to add this line sed -i "s/'fullwide',\s*//g" $DES/js/*.js after rm $DES/js/vapi-usercss.js. Because time.toLocaleString('fullwide', timeOptions); Edge will get exception with 'fullwide' parameter. this code is to remove 'fullwide' parameter.
This my screen shot.
dashboard page
background page not get exception.
[Update by jspenguin2017: Folding this post as it is long and already resolved]
The file list different from platform\chromium are
manifest.json
vapi-common.js
vapi-background.js
vapi-client.js
vapi-webrequest.js
cloud-ui.js
cloud-ui.js need change becouse Edge syncs data in the background, so this callback is very fast. It's
often faster than initialisation, meaning there's a race condition where the UI is not always ready for the assumptions this function makes. This change is what I found from uBlock-Edge.
Microsoft is slowly but surely adding more extensions to their store. It couldn't hurt to submit Nano AdBlocker and/or Nano Defender for review just to get in the queue.
They've added 10 more extensions and are now up to 80 total, which at least shows that they're moving forward with it.
I understand if you wanted to add more polish/features/etc. first.
Not to end. I added your rule now and when I go on site download some program on dobreprogramy.pl, ads Avast hided. But after refresh that site, again showed that frustrated ads Avast. If I know good, that problem is only on Microsoft Edge. You know what is reason "why" ?
Not to end. I added your rule now and when I go on site download some program on dobreprogramy.pl, ads Avast hided. But after refresh that site, again showed that frustrated ads Avast. If I know good, that problem is only on Microsoft Edge. You know what is reason "why" ?
What is your version of Windows? Is 1809 build 17763? If so, it is an edge bug that has now been fixed in 19H1 Insider preview.
I was thinking about making one last build for the old Edge, but unfortunately the latest upstream requires TextDecoder, which the old Edge does not have. It shouldn't be too hard to find a polyfill but considering the new Edge is probably only a few weeks away, I don't think it's worth the time.
changed the title [-]Nano Adblocker / Defender for Edge issues mega thread[/-][+](Obsolete) Old Edge (EdgeHTML) build discussion thread[/+]on Mar 17, 2019
Activity
https://github.com/NanoAdblocker/NanoCore/issues/40
reunicorn commentedon Dec 15, 2017
You've probably already seen it, but in case you haven't, check out uBlock-Edge.
Although it hasn't been updated since July, nikrolls (the maintainer) did find some workarounds for Edge's incompatibility issues, which you might be able to integrate into Nano for Edge.
jspenguin2017 commentedon Dec 15, 2017
I know that repo, and I plan on looking at it, I just added a 2 lines shim to see how well it performs.
Update: I quickly looked over his code and I don't really like how he did it. I probably will go read the doc and put together a shim from scratch, we'll see how it goes.
kevin12314 commentedon Dec 16, 2017
Details
Hi, @jspenguin2017 . A few days ago I copied your project to my computer and tried to use nano adblocker on Edge. I used platform\chromium to modify.
This my way.
In
manifest.jsondefault_icon,Change"128": ""img/browsericons/38_on.png""to"38": "img/browsericons/128_on.png".This change will make Icons show up.iconsadd"16": "img/128_on.png",. This make context menu icon show up.backgroundadd "persistent":true.If you want publish to Windows Store, you need to add
"minimum_edge_version": "41.16299.15.0",In
vapi-common.jsandvapi-background.jsvar chrome = self.chrome;tovar chrome = self.browser;In
vapi-client.jschrome.runtime.connecttobrowser.runtime.connectIn
vapi-webrequest.jswrApi = chrome.webRequest;towrApi = browser.webRequest;In
vapi-background.jsvar onTabReady = function(tab, status, badge), addto
Edge will get exception
Property 'path': 'tabId' is not a valid property in the dictionaryif usepath: iconPaths[status === 'on' ? 1 : 0]In tools folder add
make-edge.sh. You can copy frommake-chromium.sh. But you need to add this linesed -i "s/'fullwide',\s*//g" $DES/js/*.jsafterrm $DES/js/vapi-usercss.js. Becausetime.toLocaleString('fullwide', timeOptions);Edge will get exception with 'fullwide' parameter. this code is to remove'fullwide'parameter.This my screen shot.

dashboard page

background page not get exception.

[Update by jspenguin2017: Folding this post as it is long and already resolved]
jspenguin2017 commentedon Dec 16, 2017
Amazing! Can you post your changes? Like a patch file or a repo commits?
kevin12314 commentedon Dec 17, 2017
nano adblocker edge.zip
The file list different from platform\chromium are
manifest.json
vapi-common.js
vapi-background.js
vapi-client.js
vapi-webrequest.js
cloud-ui.js
cloud-ui.js need change becouse Edge syncs data in the background, so this callback is very fast. It's
often faster than initialisation, meaning there's a race condition where the UI is not always ready for the assumptions this function makes. This change is what I found from uBlock-Edge.
jspenguin2017 commentedon Dec 17, 2017
OK, cool, as Microsoft Store is still full according to Microsoft, we might have to wait a while, I'll start with new Dashboard.
reunicorn commentedon Dec 18, 2017
Microsoft is slowly but surely adding more extensions to their store. It couldn't hurt to submit Nano AdBlocker and/or Nano Defender for review just to get in the queue.
They've added 10 more extensions and are now up to 80 total, which at least shows that they're moving forward with it.
I understand if you wanted to add more polish/features/etc. first.
jspenguin2017 commentedon Dec 18, 2017
If I submit it now, can I update it when it's in the review queue?
jspenguin2017 commentedon Dec 18, 2017
@kevin12314 Can you copy-paste your custom filters? Something doesn't feel right about the syntax highlighter.
kevin12314 commentedon Dec 19, 2017
jspenguin2017 commentedon Dec 19, 2017
Unicode 8206...??
http://www.fileformat.info/info/unicode/char/200e/index.htm
kevin12314 commentedon Dec 19, 2017
Those filters were generated through uBlock Origin Block element. If I key in filter like
! 2017年5月20日 下午10:41:01 https://docs.google.com/document/u/0/
It seems that it did not add Unicode 8206.
jspenguin2017 commentedon Dec 19, 2017
Yea, the guy who did the translation had some weird stuff going on with his IDE.Actually, it's a quirk in Edge.154 remaining items
seba2282 commentedon Jan 31, 2019
Not to end. I added your rule now and when I go on site download some program on dobreprogramy.pl, ads Avast hided. But after refresh that site, again showed that frustrated ads Avast. If I know good, that problem is only on Microsoft Edge. You know what is reason "why" ?
kevin12314 commentedon Jan 31, 2019
What is your version of Windows? Is 1809 build 17763? If so, it is an edge bug that has now been fixed in 19H1 Insider preview.
I'm trying to use this
in the new 19H1 build 18323, and refresh that site, ads Avast is not shown.
krystian3w commentedon Jan 31, 2019
@kevin12314 css also works?
www.dobreprogramy.pl###phContent_avastBadge:style(visibility: hidden !important;)www.dobreprogramy.pl###phContent_avastBadge:style(visibility: hidden;)seba2282 commentedon Jan 31, 2019
I still have Windows 10 1809.
krystian3w commentedon Jan 31, 2019
Because it is now ending January, we will wait for a nasty 19H1.
kevin12314 commentedon Jan 31, 2019
The two were hidden at first, but then re-displayed after about 15 seconds.
jspenguin2017 commentedon Mar 17, 2019
The extensions store for Chromium-based Edge is up now: https://www.microsoft.com/en-us/microsoft-edge/insider-addons/detail/epbkapkgcmdmfpogenoebpdeibmfinpf
I was thinking about making one last build for the old Edge, but unfortunately the latest upstream requires
TextDecoder, which the old Edge does not have. It shouldn't be too hard to find a polyfill but considering the new Edge is probably only a few weeks away, I don't think it's worth the time.[-]Nano Adblocker / Defender for Edge issues mega thread[/-][+](Obsolete) Old Edge (EdgeHTML) build discussion thread[/+]jspenguin2017 commentedon Mar 17, 2019
New thread: #253