Adblock-fast: ad-blocking service for dnsmasq, smartdns and unbound

Should this work regardless of the absence or presence of the Internet? Before the previous update it worked like that. I could go to the plugin settings in the Luci interface, turn it on, turn it off, change anything, add or remove a filter. And now, when I try to enter the plugin interface, I just get a red bar with an error.
This is not normal, regardless of whether there is Internet or not and on which interface?
Or am I wrong?
If there is no Internet, does that mean you shouldn’t go to the Luci interface? Or did I misunderstand you? My English is very bad and I write and read through an online translator. Perhaps this is the problem?)))

P.S.

I took another router, connected the Internet to its WAN interface, and still there were errors and a red bar instead of the plugin settings interface.
The problem is clearly something else.

Just checking in to say that version 1.1.1-1 is working well. I'm on a NanoPi R4S with Openwrt 23.05, and couldn't get the Luci interface working in prior versions, but now it's all good.

Cheers Stangri!

1 Like

Powered by LuCI openwrt-23.05 branch (git-23.306.39416-c86c256) / OpenWrt 23.05.2 (r23630-842932a63d)

RPCError

RPC call to uci/get failed with ubus code 4: Resource not found at handleCallReply (http://192.168.61.1/luci-static/resources/rpc.js?v=git-23.306.39416-c86c256:15:3)

RPCError

RPC call to uci/get failed with ubus code 4: Resource not found at handleCallReply (http://192.168.61.1/luci-static/resources/rpc.js?v=git-23.306.39416-c86c256:15:3)

If it's with the latest version, clear browser cache.

2 Likes

And it really helps))).
In Firefox, it turns out that it’s not enough to just clear the site’s cache, as I’ve done this more than once, but you need to clear the entire cache, then it will help))) But now you have to re-enter logins, passwords and other settings for all sites. Not fun(((

I don't use FF, but with Chrome there's an easy way to disable cache for the individual page you're looking at when opening Inspect view of the page (and I believe something needs to be set in Chrome beforehand). Maybe there's a similar option in FF.

There is at the top of each page where the site address is entered... Delete site data and cookies, but apparently it does not always work correctly. Although, after clicking on this field, it throws out Luci and asks you to login again..

Hi!

I have a Asus RT-AX53u on openwrt 23.5.02 with adblock-fast version 1.1.1-1 and keep getting this error when trying to access the web-ui:
TypeError
can't convert null to object

i tried already some days ago with version 1.0.4 and 1.0.8
iirc i got a different error message then
however, i never got it working

tried installation both in luci and terminal.
both never showed any problems.

tried enabling/disabling, stop/starting the service
without success, always error on web-ui

any clue what the problem could be?
thanks in advance

Thanks so much for adblock-fast (and simple-adblock before), stangri. Have used for about two years and it's been AMAZING.

Upgraded to adblock-fast and luci-app-adblock-fast 1.1.1-1 recently and running into the TypeError Cannot convert undefined or null to object error others have mentioned. Tried a fresh uninstall and reinstall (and deleted /etc/config/adblock-fast file to be safe), and still seeing the same issue.

I'm still able to config via CLI, so still usable. But did want to pass along my /etc/config/adblock-fast file in case it's useful. Let me know if I can provide anything else that would be of use:

                                                                                                                                    
config adblock-fast 'config'                                                                                                        
        option enabled '1'                                                                                                          
        list allowed_domain 'cdn.jsdelivr.net'                                                                                      
        option allow_non_ascii '0'                                                                                                  
        option canary_domains_icloud '0'                                                                                            
        option canary_domains_mozilla '0'                                                                                           
        option compressed_cache '0'                                                                                                 
        option compressed_cache_dir '/etc'                                                                                          
        option config_update_enabled '0'                                                                                            
        option config_update_url 'https://cdn.jsdelivr.net/gh/openwrt/packages/net/adblock-fast/files/adblock-fast.config.update'   
        option curl_max_file_size '30000000'                                                                                        
        option curl_retry '3'                                                                                                       
        option debug '0'                                                                                                            
        option dns 'dnsmasq.servers'                                                                                                
        list dnsmasq_instance '*'                                                                                                   
        option download_timeout '10'                                                                                                
        option force_dns '1'                                                                                                        
        list force_dns_port '53'                                                                                                    
        list force_dns_port '853'                                                                                                   
        option led 'none'                                                                                                           
        option parallel_downloads '1'                                                                                               
        option pause_timeout '20'                                                                                                   
        option procd_trigger_wan6 '0'                                                                                               
        option procd_boot_delay '0'                                                                                                 
        option procd_boot_wan_timeout '60'                                                                                          
        option verbosity '2'                                                                                                        
                                                                                                                                    
config file_url                                                                                                                     
        option url 'https://cdn.jsdelivr.net/gh/StevenBlack/hosts/hosts'                                                            
        option size '6770929'                                                                                                       
        option action 'block'                                                                                                       
        option enabled '1'                                                                                                          
                                                                                                                                    
config file_url                                                                                                                     
        option url 'https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/data/combined_disguised_trackers_justdomains
        option size '6241707'                                                                                                       
        option action 'block'                                                                                                       
        option enabled '1'                                                                                                          
                                                                                                                                    
config file_url                                                                                                                     
        option url 'https://big.oisd.nl/'                                                                                           
        option size '6163363'                                                                                                       
        option action 'block'                                                                                                       
        option enabled '1'                                                                                                          
                                                                                                                                    
config file_url                                                                                                                     
        option url 'https://cdn.jsdelivr.net/gh/bongochong/CombinedPrivacyBlockLists/NoFormatting/cpbl-ctld.txt'                    
        option size '2608152'                                                                                                       
        option action 'block'                                                                                                       
        option enabled '1'                                                                                                          
                                                                                                                                    
config file_url                                                                                                                     
        option url 'http://sysctl.org/cameleon/hosts'                                                                               
        option size '638545'                                                                                                        
        option action 'block'                                                                                                       
        option enabled '1'              

config file_url                                                                                                                     
        option url 'https://cdn.jsdelivr.net/gh/kboghdady/youTube_ads_4_pi-hole/black.list'                                         
        option size '553006'                                                                                                        
        option action 'block'                                                                                                       
        option enabled '1'                                                                                                          
                                                                                                                                    
config file_url                                                                                                                     
        option url 'https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/data/combined_disguised_clickthroughs_justdo
        option size '362170'                                                                                                        
        option action 'block'                                                                                                       
        option enabled '1'                                                                                                          
                                                                                                                                    
config file_url                                                                                                                     
        option url 'https://someonewhocares.org/hosts/hosts'                                                                        
        option size '347410'                                                                                                        
        option action 'block'                                                                                                       
        option enabled '1'                                                                                                          
                                                                                                                                    
config file_url                                                                                                                     
        option url 'https://winhelp2002.mvps.org/hosts.txt'                                                                         
        option size '334861'                                                                                                        
        option action 'block'                                                                                                       
        option enabled '1'                                                                                                          
                                                                                                                                    
config file_url                                                                                                                     
        option url 'https://adaway.org/hosts.txt'                                                                                   
        option size '243454'                                                                                                        
        option action 'block'                                                                                                       
        option enabled '1'                                                                                                          
                                                                                                                                    
config file_url                                                                                                                     
        option url 'https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/data/combined_disguised_ads_justdomains.txt'
        option size '222595'                                                                                                        
        option action 'block'                                                                                                       
        option enabled '1'                                                                                                          
                                                                                                                                    
config file_url                                                                                                                     
        option url 'https://raw.githubusercontent.com/AdguardTeam/cname-trackers/master/data/combined_disguised_microsites_justdomai
        option size '123275'                                                                                                        
        option action 'block'                                                                                                       
        option enabled '1'                                                                                                          
                                                                                                                                    
config file_url                                                                                                                     
        option url 'https://pgl.yoyo.org/as/serverlist.php?hostformat=hosts&showintro=1&mimetype=plaintext'                         
        option size '99588'                                                                                                         
        option action 'block'                                                                                                       
        option enabled '1'                                                                                                          
                                                                                                                                    
config file_url                                                                                                                     
        option url 'https://cdn.jsdelivr.net/gh/hoshsadiq/adblock-nocoin-list/hosts.txt'                                            
        option size '11149'                                                                                                         
        option action 'block'                                                                                                       
        option enabled '1'                                                                                                                                                                                                                    

@lexinger @jumpman23 -- install luci app 1.1.1-1 (if not there yet) and clear the browser cache. Despite the fix being present in the new version, your browser has cached the old javascript and it's producing the error.

1 Like

So silly of me. Should have been part of my troubleshooting SOP. Immediately fixed the issue. Thanks, stangri. Keep up the great work.

1 Like

that did it, thank you!!!

1 Like

Ctrl+Shift+N going into incognito is another quick way to skip over any cache/cookies for testing. Or if the user doesn't want to do that shift+F5 will reload the site and all cache with it. I do it all the time on new openwrt releases too :slight_smile:

1 Like

TypeError

Cannot read properties of undefined (reading 'format')

After adding lists and rebooting the router. I cleared the cache and checked it on 3 different browsers.
adblock-fast 1.1.1-1

P.S.
After deleting the config from /etc/config/ and rebooting the router, the plugin does not automatically create a default config and disappears from the Luci menu.

No plugin ever does, it's part of the installation script.

I'd be very curious to see the output of service adblock-fast info and service adblock-fast status while in this state.

So, this is an upgrade to the "regular' version, adblock 4.1.5-8, I currently have installed?
adblock - 4.1.5-8
luci-app-adblock - git-23.189.72983-3072876

But it doesn’t fall off into nirvana either. I checked on openVPN. I deleted the configs and rebooted the router. The Luci plugin is in place and the interface is working.
I can provide the rest on Monday. Previously, there will be no access to the router.

And we need to make this behavior of plugins the norm. This will make life easier for users. New versions, new features. Old configs should work, but new parameters should be added to them and errors in the config should be corrected.
This is roughly how plugins work on Enigma2... This is software for CAT receivers.

This is not the same plugin that is being discussed here.

I understand.
I was just wondering if this a 'better' version?

The best plugin is a browser plugin - ublock origin.
But unfortunately it is not available for routers. The rest is personal preference. Depends on filters and country of residence. You just need to try it yourself and draw conclusions.