Skip to content
This repository was archived by the owner on Oct 16, 2020. It is now read-only.
This repository was archived by the owner on Oct 16, 2020. It is now read-only.

(Obsolete) Old Edge (EdgeHTML) build discussion thread #40

Closed

Description

@jspenguin2017

For Chromium-based Edge: https://www.microsoft.com/en-us/microsoft-edge/insider-addons/detail/epbkapkgcmdmfpogenoebpdeibmfinpf

New thread: #253


Nano Adblocker is published: https://www.microsoft.com/store/productId/9NSXDX2TDB3V

Nano Defender is in review since May 2018...

Knows issues

Edge does not support listening to web_accessible_resources requests...

Details

image
image

 

Edge restores (un-maximize) when browser.tabs.reload or browser.tabs.select is called.

Opening Logger in InPrivate mode breaks cosmetic filtering.

Activity

  1. reunicorn commented on Dec 15, 2017

    @reunicorn

    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.

  2. jspenguin2017 commented on Dec 15, 2017

    @jspenguin2017
    MemberAuthor

    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.

  3. kevin12314 commented on Dec 16, 2017

    @kevin12314
    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.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;

    In vapi-background.js

    • comment out
     /*var iconPaths = [
     	    {
     	        '128': 'img/browsericons/128_off.png'
     	    },
     	    {
     	        '128': 'img/browsericons/38_on.png'
     	    }
    	]; */
    • In var onTabReady = function(tab, status, badge) , add
    var iconPaths = status === 'on' ?
    	   { '38': 'img/browsericons/38_on.png' } :
    	   { '38': 'img/browsericons/38_off.png' };
    • Change
     browserAction.setIcon({
                    tabId: tab.id,
                    path: iconPaths[status === 'on' ? 1 : 0]
                });

    to

     browserAction.setIcon({
    	    tabId: tab.id,
    	    path: iconPaths
    	});

    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.
    image

    image

    image

    dashboard page
    image

    background page not get exception.
    image

    [Update by jspenguin2017: Folding this post as it is long and already resolved]

  4. jspenguin2017 commented on Dec 16, 2017

    @jspenguin2017
    MemberAuthor

    Amazing! Can you post your changes? Like a patch file or a repo commits?

  5. kevin12314 commented on Dec 17, 2017

    @kevin12314

    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.

  6. jspenguin2017 commented on Dec 17, 2017

    @jspenguin2017
    MemberAuthor

    OK, cool, as Microsoft Store is still full according to Microsoft, we might have to wait a while, I'll start with new Dashboard.

  7. reunicorn commented on Dec 18, 2017

    @reunicorn

    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.

  8. jspenguin2017 commented on Dec 18, 2017

    @jspenguin2017
    MemberAuthor

    If I submit it now, can I update it when it's in the review queue?

  9. jspenguin2017 commented on Dec 18, 2017

    @jspenguin2017
    MemberAuthor

    @kevin12314 Can you copy-paste your custom filters? Something doesn't feel right about the syntax highlighter.

  10. kevin12314 commented on Dec 19, 2017

    @kevin12314
    @@/showads.js$domain=shink.in
    avlang2.info##div.tac
    ck101.com##div.fuckBlockCover>div.playerCover
    cool18.com##div.body_center[style='width:1000px;height:270px;']
    @@||fas.li^$generichide
    !@@||btrll.com^$third-party 
    @@|http://$subdocument,domain=iqiyi.com
    
    !UDN購物
    @@shopping.udn.com/mall/images/spacer.gif?
    
    !ASUS
    @@||googletagmanager.com/gtm.js?$third-party,domain=asus.com
    
    ! Windows Central Youtube Block Workaround
    @@|blob:$domain=windowscentral.com 
    
    ! ‎2017‎年‎2‎月‎9‎日‎ ‎下午‎ ‎11‎:‎39‎:‎12 http://www.hclips.com/videos/18-year-old-japanese-teen-recorded-fucking-her-boyfriend/?promo=1102
    www.hclips.com##.pl_1
    
    ! ‎2017‎年‎3‎月‎29‎日‎ ‎下午‎ ‎10‎:‎07‎:‎55 https://gnn.gamer.com.tw/0/145260.html
    gamer.com.tw###BH-bigbanner
    
    ! ‎2017‎年‎4‎月‎18‎日‎ ‎下午‎ ‎11‎:‎44‎:‎51 https://9song.me/2017/04/17/%e7%be%8e%e9%ba%97%e6%9c%aa%e4%ba%a1%e4%ba%ba/
    9song.me##a[href^="http://gdot.h978.com/index.phtml"]
    
    ! ‎2017‎年‎4‎月‎18‎日‎ ‎下午‎ ‎11‎:‎45‎:‎27 https://9song.me/2017/04/17/%e7%be%8e%e9%ba%97%e6%9c%aa%e4%ba%a1%e4%ba%ba/
    9song.me##.entry-inner > .post
    
    ! ‎2017‎年‎5‎月‎21‎日‎ ‎下午‎ ‎10‎:‎05‎:‎15 https://www.google.com.tw/search?q=%E5%B7%B4%E5%93%88%E5%A7%86%E7%89%B9&ie=&oe=
    google.*##.pdp-psy
    
    ! ‎2017‎年‎5‎月‎21‎日‎ ‎下午‎ ‎10‎:‎36‎:‎44 https://www.google.com.tw/maps/@25.005939,121.4565846,13z
    www.google.com.tw###pushdown
    
    ! ‎2017‎年‎5‎月‎21‎日‎ ‎下午‎ ‎10‎:‎41‎:‎01 https://docs.google.com/document/u/0/
    docs.google.com##.gb_g.gb_Mc.gb_Kc.gb_Lc
    
  11. kevin12314 commented on Dec 19, 2017

    @kevin12314

    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.

  12. jspenguin2017 commented on Dec 19, 2017

    @jspenguin2017
    MemberAuthor

    Yea, the guy who did the translation had some weird stuff going on with his IDE. Actually, it's a quirk in Edge.

  13. 154 remaining items

  14. seba2282 commented on Jan 31, 2019

    @seba2282

    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" ?

  15. kevin12314 commented on Jan 31, 2019

    @kevin12314
          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'm trying to use this

    dobreprogramy.pl##+js(nano-remove-elements-onready.js, #phContent_avastBadge)

    in the new 19H1 build 18323, and refresh that site, ads Avast is not shown.

  16. krystian3w commented on Jan 31, 2019

    @krystian3w

    @kevin12314 css also works?

    www.dobreprogramy.pl###phContent_avastBadge:style(visibility: hidden !important;)
    www.dobreprogramy.pl###phContent_avastBadge:style(visibility: hidden;)

  17. seba2282 commented on Jan 31, 2019

    @seba2282

    I still have Windows 10 1809.

  18. krystian3w commented on Jan 31, 2019

    @krystian3w

    Because it is now ending January, we will wait for a nasty 19H1.

  19. kevin12314 commented on Jan 31, 2019

    @kevin12314
    www.dobreprogramy.pl###phContent_avastBadge:style(visibility: hidden !important;)
    www.dobreprogramy.pl###phContent_avastBadge:style(visibility: hidden;)
    

    The two were hidden at first, but then re-displayed after about 15 seconds.

  20. jspenguin2017 commented on Mar 17, 2019

    @jspenguin2017
    MemberAuthor

    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.

  21. unpinned this issue on Mar 17, 2019
  22. changed the title [-]Nano Adblocker / Defender for Edge issues mega thread[/-] [+](Obsolete) Old Edge (EdgeHTML) build discussion thread[/+] on Mar 17, 2019
  23. jspenguin2017 commented on Mar 17, 2019

    @jspenguin2017
    MemberAuthor

    New thread: #253

  24. added
    archived
    on Aug 21, 2020
  25. locked and limited conversation to collaborators on Aug 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    METAarchived

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions