AG slowing Facebook Newsfeed

Wittier

Member
Windows 10, Chrome, all updated. Ad Guard extension


With AG on, Facebook Newsfeed works but as I scroll down the page, it gets very slow.
Turn off AG and the slowing disappears.

Replicated on and off 3 times.

We've seen this before and a tweak to the stock filters fixed it each time. Thanks.
 
Last edited:

Wittier

Member
AG Base Filter
Unblocking search ads and self-promotion
Dutch, French, Japanese, Spanish/Portuguese, EasyList China, EasyList Italy

Nothing else enabled on the Filters page. No User Rules.

I hadn't heard of Stealth Mode. It's not enabled.

Thank you.
 

Blaz

Moderator & Translator
Staff member
Moderator
How many newsfeed items are shown about? My newsfeed only shows about 30 entries here and not reproduced on new Facebook layout.

EDIT: Please try these two rules (each rule in a new line):
Code:
facebook.com,facebookcorewwi.onion#@%#!function(){var e=new MutationObserver(function(){var g=document.querySelectorAll("div[id^='mount_']");if(0<g.length)var e=document.querySelectorAll('div[role="feed"] > div[data-pagelet^="FeedUnit"]');else e=document.querySelectorAll('[id^="substream"] > div:not(.hidden_elem) div[id^="hyperfeed_story_id"]');e.forEach(function(e){function t(e,t){for(0<g.length?"0"==(s=e.querySelectorAll('div[role="article"] span[dir="auto"] > a > span > span > span[data-content]')).length&&(s=e.querySelectorAll('div[role="article"] span[dir="auto"] > a > span[aria-label]')):s=e.querySelectorAll(".userContentWrapper h5 + div[data-testid] a [class] [class]"),socheck=0;socheck<s.length;socheck++)s[socheck].innerText.contains(t)&&(c=["1"],i=["1"],d=["1"],r=l=a=1,socheck=s.length)}function n(e,t,n,o,a){d=0<g.length?(s=e.querySelectorAll('div[role="article"] span[dir="auto"] > a > span span[data-content='+t+"]"),c=e.querySelectorAll('div[role="article"] span[dir="auto"] > a > span span[data-content='+n+"]"),i=e.querySelectorAll('div[role="article"] span[dir="auto"] > a > span span[data-content='+o+"]"),e.querySelectorAll('div[role="article"] span[dir="auto"] > a > span span[data-content='+a+"]")):(s=e.querySelectorAll('.userContentWrapper h5 + div[data-testid*="sub"] a [data-content='+t+"]"),c=e.querySelectorAll('.userContentWrapper h5 + div[data-testid*="sub"] a [data-content='+n+"]"),i=e.querySelectorAll('.userContentWrapper h5 + div[data-testid*="sub"] a [data-content='+o+"]"),e.querySelectorAll('.userContentWrapper h5 + div[data-testid*="sub"] a [data-content='+a+"]")),0==s.length&&(s=e.querySelectorAll('.userContentWrapper h5 + div[data-testid*="label"] a [data-content='+t+"]"),c=e.querySelectorAll('.userContentWrapper h5 + div[data-testid*="label"] a [data-content='+n+"]"),i=e.querySelectorAll('.userContentWrapper h5 + div[data-testid*="label"] a [data-content='+o+"]"),d=e.querySelectorAll('.userContentWrapper h5 + div[data-testid*="label"] a [data-content='+a+"]"))}var o=0,a=0,l=0,r=0,s=0,c=0,i=0,d=0,u=e.querySelectorAll("div[style='width: 100%'] > a[href*='oculus.com/quest'] > div"),h=document.querySelector("[lang]"),f=document.querySelectorAll("link[rel='preload'][href*='/l/']");if(h)h=document.querySelector("[lang]").lang;else h="en";var p=e.querySelectorAll('a[ajaxify*="ad_id"] > span'),y=e.querySelectorAll('a[href*="ads/about"]');if("display: none !important;"!=e.getAttribute("style")&&!e.classList.contains("hidden_elem")){if(0<p.length||0<y.length){if(m+=1,0<g.length){if(""==(S=e.querySelectorAll("a[href]")[0].innerText))var S=e.querySelectorAll("a[href]")[1].innerText;if(""==S)S=e.querySelectorAll("a[href]")[0].querySelectorAll("a[aria-label]")[0].getAttribute("aria-label")}else S=e.querySelectorAll("a[href]")[2].innerText;console.log("--------"),console.log("Ad hidden from: "+S),console.log("Total ads hidden: "+m),console.log("F length: "+p.length),console.log("H length: "+y.length),console.log("--------"),e.style="display:none!important;"}else if(0<u.length){m+=1;S="Facebook";console.log("--------"),console.log("Ad hidden from: "+S),console.log("Total ads hidden: "+m),console.log("Non-declared ad"),console.log("--------"),e.style="display:none!important;"}else if("af"==h)t(e,"Geborg");else if("de"==h||"nl"==h)n(e,"G","e","s","n");else if("am"==h)t(e,"የተከፈለበት ማስታወቂያ");else if("ar"==h)t(e,"مُموَّل");else if("as"==h)t(e,"পৃষ্ঠপোষকতা কৰা");else if("az"==h)t(e,"Sponsor dəstəkli");else if("co"==h)t(e,"Spunsurizatu");else if("bs"==h||"sl"==h||"cs"==h)n(e,"S","p","z","n");else if("da"==h||"en"==h||"et"==h||"fy"==h||"it"==h||"ku"==h||"nb"==h||"nn"==h||"pl"==h||"sq"==h||"sv"==h||"zz"==h){if(0<g.length)if(f[0].href.contains("en_UD"))t(e,"pəɹosuodS");else if(f[0].href.contains("ja_KS"))t(e,"広告");else if(f[0].href.contains("tz_MA"))t(e,"ⵉⴷⵍ");else if(f[0].href.contains("sy_SY"))t(e,"ܒܘܕܩܐ ܡܡܘܘܢܐ");else if(f[0].href.contains("cb_IQ"))t(e,"پاڵپشتیکراو");else if(f[0].href.contains("ar_AR"))t(e,"مُموَّل");else if(f[0].href.contains("sz_PL"))t(e,"Szpōnzorowane");else if(f[0].href.contains("eo_EO"))t(e,"Reklamo");else if(f[0].href.contains("es_LA"))n(e,"P","u","c","d");else{if(n(e,"S","p","s","n"),0==o&&0==a&&0==l&&0==r)for("0"==(s=e.querySelectorAll('div[role="article"] span[dir="auto"] > a > span > span > span[data-content]')).length&&(s=e.querySelectorAll('div[role="article"] span[dir="auto"] > a > span[aria-label]')),socheck=0;socheck<s.length;socheck++)s[socheck].innerText.contains("S")&&(o=1),s[socheck].innerText.contains("p")&&(c=["1"],a=1),s[socheck].innerText.contains("s")&&(i=["1"],l=1),s[socheck].innerText.contains("n")&&(d=["1"],r=1)}else if(document.querySelector("body").className.includes("Locale_en_UD"))t(e,"pəɹosuodS");else if(document.querySelector("body").className.includes("ja_KS"))t(e,"広告");else if(document.querySelector("body").className.includes("tz_MA"))t(e,"ⵉⴷⵍ");else if(document.querySelector("body").className.includes("sy_SY"))t(e,"ܒܘܕܩܐ ܡܡܘܘܢܐ");else if(document.querySelector("body").className.includes("cb_IQ"))t(e,"پاڵپشتیکراو");else if(document.querySelector("body").className.includes("ar_AR"))t(e,"مُموَّل");else if(document.querySelector("body").className.includes("sz_PL"))t(e,"Szpōnzorowane");else if(document.querySelector("body").className.includes("eo_EO"))t(e,"Reklamo");else if(document.querySelector("body").className.includes("es_LA"))n(e,"P","u","c","d");else if(n(e,"S","p","s","n"),0==o&&0==a&&0==l&&0==r){s=e.querySelectorAll('.userContentWrapper h5 + div[data-testid*="sub"] > span a > [class] [class]');for(socheck=0;socheck<s.length;socheck++)s[socheck].innerText.contains("S")&&(o=1),s[socheck].innerText.contains("p")&&(c=["1"],a=1),s[socheck].innerText.contains("s")&&(i=["1"],l=1),s[socheck].innerText.contains("n")&&(d=["1"],r=1)}}else"be"==h?t(e,"Рэклама"):"bg"==h?t(e,"Спонсорирано"):"mk"==h?t(e,"Спонзорирано"):"br"==h?t(e,"Paeroniet"):"ca"==h?t(e,"Patrocinat"):"gl"==h||"pt"==h?(t(e,"Patrocinado"),"0"==o&&n(e,"P","a","c","o")):"bn"==h?t(e,"সৌজন্যে"):"cb"==h?t(e,"پاڵپشتیکراو"):"cx"==h?n(e,"G","i","s","n"):"cy"==h?t(e,"Noddwyd"):"el"==h?t(e,"Χορηγούμενη"):"eo"==h?t(e,"Reklamo"):"es"==h?n(e,"P","u","c","d"):"eu"==h?t(e,"Babestua"):"fa"==h?t(e,"دارای پشتیبانی مالی"):"ff"==h?t(e,"Yoɓanaama"):"fi"==h?t(e,"Sponsoroitu"):"fo"==h?t(e,"Stuðlað"):"fr"==h?0<g.length?f[0].href.contains("fr_FR")?n(e,"S","p","s","n"):n(e,"C","o","m","n"):document.querySelector("body").className.includes("Locale_fr_FR")?n(e,"S","p","s","n"):n(e,"C","o","m","n"):"ga"==h?t(e,"Urraithe"):"gn"==h?t(e,"Oñepatrosinapyre"):"gu"==h?t(e,"પ્રાયોજિત"):"ha"==h?t(e,"Daukar Nauyi"):"he"==h?t(e,"ממומן"):"hr"==h?t(e,"Plaćeni oglas"):"ht"==h?t(e,"Peye"):"ne"==h||"mr"==h||"hi"==h?t(e,"प्रायोजित"):"hu"==h?n(e,"H","i","r","d"):"hy"==h?t(e,"Գովազդային"):"id"==h?n(e,"B","e","p","n"):"is"==h?t(e,"Kostað"):"ja"==h?t(e,"広告"):"ms"==h?t(e,"Ditaja"):"jv"==h?t(e,"Disponsori"):"ka"==h?t(e,"რეკლამა"):"kk"==h?t(e,"Демеушілік көрсеткен"):"km"==h?t(e,"បានឧបត្ថម្ភ"):"kn"==h?t(e,"ಪ್ರಾಯೋಜಿತ"):"ko"==h?t(e,"Sponsored"):"ky"==h?t(e,"Демөөрчүлөнгөн"):"lo"==h?t(e,"ຜູ້ສະໜັບສະໜູນ"):"lt"==h?t(e,"Remiama"):"lv"==h?t(e,"Apmaksāta reklāma"):"mg"==h?t(e,"Misy Mpiantoka"):"ml"==h?t(e,"സ്പോൺസർ ചെയ്തത്"):"mn"==h?t(e,"Ивээн тэтгэсэн"):"mt"==h?t(e,"Sponsorjat"):"my"==h?(t(e,"ပံ့ပိုးထားသည်"),"0"==o&&t(e,"အခပေးကြော်ငြာ")):"or"==h?t(e,"ପ୍ରଯୋଜିତ"):"pa"==h?t(e,"ਸਰਪ੍ਰਸਤੀ ਪ੍ਰਾਪਤ"):"ps"==h?t(e,"تمويل شوي"):"ro"==h?t(e,"Sponsorizat"):"ru"==h||"uk"==h?t(e,"Реклама"):"rw"==h?t(e,"Icyamamaza ndasukirwaho"):"sc"==h?t(e,"Patronadu de"):"si"==h?t(e,"අනුග්‍රාහක"):"sk"==h?t(e,"Sponzorované"):"sn"==h?t(e,"Zvabhadharirwa"):"so"==h?t(e,"La maalgeliyey"):"sr"==h?t(e,"Спонзорисано"):"sw"==h?t(e,"Imedhaminiwa"):"sy"==h?t(e,"ܒܘܕܩܐ ܡܡܘܘܢܐ"):"sz"==h?t(e,"Szpōnzorowane"):"ta"==h?t(e,"விளம்பரம்"):"te"==h?t(e,"ప్రాయోజితం చేయబడింది"):"tg"==h?t(e,"Бо сарпарастӣ"):"th"==h?t(e,"ได้รับการสนับสนุน"):"tl"==h?t(e,"May Sponsor"):"tr"==h?t(e,"Sponsorlu"):"tt"==h?t(e,"Хәйрияче"):"tz"==h?t(e,"ⵉⴷⵍ"):"ur"==h?t(e,"سپانسرڈ"):"uz"==h?t(e,"Reklama"):"vi"==h?t(e,"Được tài trợ"):"zh-Hans"==h?t(e,"赞助内容"):"zh-Hant"==h&&t(e,"贊助");if(0<s.length&&0<c.length&&0<i.length&&0<d.length){for(cont=0;cont<s.length;cont++)0<s[cont].offsetHeight&&(cont=s.length,o=1);for(cont1=0;cont1<c.length;cont1++)0<c[cont1].offsetHeight&&(cont1=c.length,a=1);for(cont2=0;cont2<i.length;cont2++)0<i[cont2].offsetHeight&&(cont2=i.length,l=1);for(cont3=0;cont3<d.length;cont3++)0<d[cont3].offsetHeight&&(cont3=d.length,r=1);if(1==o&&1==a&&1==l&&1==r){if(0<g.length){if(""==(S=e.querySelectorAll("a[href]")[1].innerText))S=e.querySelectorAll("a[href]")[2].innerText}else S=e.querySelectorAll("a[href]")[2].innerText;m+=1,console.log("--------"),console.log("Ad hidden from: "+S),console.log("Total ads hidden: "+m),console.log("--------"),e.style="display:none!important;"}}}})}),m=0;e.observe(document,{childList:!0,subtree:!0,characterData:!0,attributes:!0})}();
Code:
facebook.com,facebookcorewwi.onion#%#!function(){var e=new MutationObserver(function(){var m=document.querySelectorAll("div[id^='mount_']");if(0<m.length)var e=document.querySelectorAll('div[role="feed"] > div[data-pagelet^="FeedUnit"] > div[class]:not([style*="height"])');else e=document.querySelectorAll('[id^="substream"] > div:not(.hidden_elem) div[id^="hyperfeed_story_id"]');e.forEach(function(e){function t(e,t){for(0<m.length?"0"==(i=e.querySelectorAll('div[role="article"] span[dir="auto"] > a > span > span > span[data-content]')).length&&(i=e.querySelectorAll('div[role="article"] span[dir="auto"] > a > span[aria-label]')):i=e.querySelectorAll(".userContentWrapper h5 + div[data-testid] a [class] [class]"),socheck=0;socheck<i.length;socheck++)i[socheck].innerText.contains(t)&&(d=["1"],u=["1"],h=["1"],c=s=r=1,socheck=i.length)}function n(e,t,n,a,o){for("0"==(i=0<m.length?e.querySelectorAll('div[role="article"] span[dir="auto"] > a > span > span > span[data-content]'):e.querySelectorAll(".userContentWrapper h5 + div[data-testid] > span a > [class] [class]")).length&&(i=e.querySelectorAll('div[role="article"] span[dir="auto"] > a > span[aria-label]')),socheck=0;socheck<i.length;socheck++)i[socheck].innerText.contains(t)&&(l=1),i[socheck].innerText.contains(n)&&(d=["1"],r=1),i[socheck].innerText.contains(a)&&(u=["1"],s=1),i[socheck].innerText.contains(o)&&(h=["1"],c=1)}function a(e,t,n,a,o){h=0<m.length?(i=e.querySelectorAll('div[role="article"] span[dir="auto"] > a > span span[data-content='+t+"]"),d=e.querySelectorAll('div[role="article"] span[dir="auto"] > a > span span[data-content='+n+"]"),u=e.querySelectorAll('div[role="article"] span[dir="auto"] > a > span span[data-content='+a+"]"),e.querySelectorAll('div[role="article"] span[dir="auto"] > a > span span[data-content='+o+"]")):(i=e.querySelectorAll('.userContentWrapper h5 + div[data-testid*="sub"] a [data-content='+t+"]"),d=e.querySelectorAll('.userContentWrapper h5 + div[data-testid*="sub"] a [data-content='+n+"]"),u=e.querySelectorAll('.userContentWrapper h5 + div[data-testid*="sub"] a [data-content='+a+"]"),e.querySelectorAll('.userContentWrapper h5 + div[data-testid*="sub"] a [data-content='+o+"]")),0==i.length&&(i=e.querySelectorAll('.userContentWrapper h5 + div[data-testid*="label"] a [data-content='+t+"]"),d=e.querySelectorAll('.userContentWrapper h5 + div[data-testid*="label"] a [data-content='+n+"]"),u=e.querySelectorAll('.userContentWrapper h5 + div[data-testid*="label"] a [data-content='+a+"]"),h=e.querySelectorAll('.userContentWrapper h5 + div[data-testid*="label"] a [data-content='+o+"]"))}var l=0,r=0,s=0,c=0,i=0,d=0,u=0,h=0,o=e.querySelectorAll("div[style='width: 100%'] > a[href*='oculus.com/quest'] > div"),p=document.querySelector("[lang]"),y=document.querySelectorAll("link[rel='preload'][href*='/l/']");if(p)p=document.querySelector("[lang]").lang;else p="en";var g=e.querySelectorAll('a[ajaxify*="ad_id"] > span'),S=e.querySelectorAll('a[href*="ads/about"]');if("display: none !important;"!=e.getAttribute("style")&&!e.classList.contains("hidden_elem")){if(0<g.length||0<S.length){if(q+=1,0<m.length){if(""==(f=e.querySelectorAll("a[href]")[0].innerText))var f=e.querySelectorAll("a[href]")[1].innerText;if(""==f)f=e.querySelectorAll("a[href]")[0].querySelectorAll("a[aria-label]")[0].getAttribute("aria-label")}else f=e.querySelectorAll("a[href]")[2].innerText;console.log("--------"),console.log("Ad hidden from: "+f),console.log("Total ads hidden: "+q),console.log("F length: "+g.length),console.log("H length: "+S.length),console.log("--------"),e.style="display:none!important;"}else if(0<o.length){q+=1;f="Facebook";console.log("--------"),console.log("Ad hidden from: "+f),console.log("Total ads hidden: "+q),console.log("Non-declared ad"),console.log("--------"),e.style="display:none!important;"}else"af"==p?t(e,"Geborg"):"de"==p||"nl"==p?a(e,"G","e","s","n"):"am"==p?t(e,"የተከፈለበት ማስታወቂያ"):"ar"==p?t(e,"مُموَّل"):"as"==p?t(e,"পৃষ্ঠপোষকতা কৰা"):"az"==p?t(e,"Sponsor dəstəkli"):"co"==p?t(e,"Spunsurizatu"):"bs"==p||"sl"==p||"cs"==p?a(e,"S","p","z","n"):"da"==p||"en"==p||"et"==p||"fy"==p||"it"==p||"ku"==p||"nb"==p||"nn"==p||"pl"==p||"sq"==p||"sv"==p||"zz"==p?0<m.length?y[0].href.contains("en_UD")?t(e,"pəɹosuodS"):y[0].href.contains("ja_KS")?t(e,"広告"):y[0].href.contains("tz_MA")?t(e,"ⵉⴷⵍ"):y[0].href.contains("sy_SY")?t(e,"ܒܘܕܩܐ ܡܡܘܘܢܐ"):y[0].href.contains("cb_IQ")?t(e,"پاڵپشتیکراو"):y[0].href.contains("ar_AR")?t(e,"مُموَّل"):y[0].href.contains("sz_PL")?t(e,"Szpōnzorowane"):y[0].href.contains("eo_EO")?t(e,"Reklamo"):y[0].href.contains("es_LA")?a(e,"P","u","c","d"):(a(e,"S","p","s","n"),"0"==i.length&&"0"==d.length&&n(e,"S","p","s","n")):document.querySelector("body").className.includes("Locale_en_UD")?t(e,"pəɹosuodS"):document.querySelector("body").className.includes("ja_KS")?t(e,"広告"):document.querySelector("body").className.includes("tz_MA")?t(e,"ⵉⴷⵍ"):document.querySelector("body").className.includes("sy_SY")?t(e,"ܒܘܕܩܐ ܡܡܘܘܢܐ"):document.querySelector("body").className.includes("cb_IQ")?t(e,"پاڵپشتیکراو"):document.querySelector("body").className.includes("ar_AR")?t(e,"مُموَّل"):document.querySelector("body").className.includes("sz_PL")?t(e,"Szpōnzorowane"):document.querySelector("body").className.includes("eo_EO")?t(e,"Reklamo"):document.querySelector("body").className.includes("es_LA")?a(e,"P","u","c","d"):(a(e,"S","p","s","n"),"0"==i.length&&"0"==d.length&&n(e,"S","p","s","n")):"be"==p?t(e,"Рэклама"):"bg"==p?t(e,"Спонсорирано"):"mk"==p?t(e,"Спонзорирано"):"br"==p?t(e,"Paeroniet"):"ca"==p?t(e,"Patrocinat"):"gl"==p||"pt"==p?(t(e,"Patrocinado"),"0"==r&&a(e,"P","a","c","o")):"bn"==p?t(e,"সৌজন্যে"):"cb"==p?t(e,"پاڵپشتیکراو"):"cx"==p?a(e,"G","i","s","n"):"cy"==p?t(e,"Noddwyd"):"el"==p?t(e,"Χορηγούμενη"):"eo"==p?t(e,"Reklamo"):"es"==p?a(e,"P","u","c","d"):"eu"==p?t(e,"Babestua"):"fa"==p?t(e,"دارای پشتیبانی مالی"):"ff"==p?t(e,"Yoɓanaama"):"fi"==p?t(e,"Sponsoroitu"):"fo"==p?t(e,"Stuðlað"):"fr"==p?0<m.length?y[0].href.contains("fr_FR")?a(e,"S","p","s","n"):a(e,"C","o","m","n"):document.querySelector("body").className.includes("Locale_fr_FR")?a(e,"S","p","s","n"):a(e,"C","o","m","n"):"ga"==p?t(e,"Urraithe"):"gn"==p?t(e,"Oñepatrosinapyre"):"gu"==p?t(e,"પ્રાયોજિત"):"ha"==p?t(e,"Daukar Nauyi"):"he"==p?t(e,"ממומן"):"hr"==p?t(e,"Plaćeni oglas"):"ht"==p?t(e,"Peye"):"ne"==p||"mr"==p||"hi"==p?t(e,"प्रायोजित"):"hu"==p?a(e,"H","i","r","d"):"hy"==p?t(e,"Գովազդային"):"id"==p?a(e,"B","e","p","n"):"is"==p?t(e,"Kostað"):"ja"==p?t(e,"広告"):"ms"==p?t(e,"Ditaja"):"jv"==p?t(e,"Disponsori"):"ka"==p?t(e,"რეკლამა"):"kk"==p?t(e,"Демеушілік көрсеткен"):"km"==p?t(e,"បានឧបត្ថម្ភ"):"kn"==p?t(e,"ಪ್ರಾಯೋಜಿತ"):"ko"==p?t(e,"Sponsored"):"ky"==p?t(e,"Демөөрчүлөнгөн"):"lo"==p?t(e,"ຜູ້ສະໜັບສະໜູນ"):"lt"==p?t(e,"Remiama"):"lv"==p?t(e,"Apmaksāta reklāma"):"mg"==p?t(e,"Misy Mpiantoka"):"ml"==p?t(e,"സ്പോൺസർ ചെയ്തത്"):"mn"==p?t(e,"Ивээн тэтгэсэн"):"mt"==p?t(e,"Sponsorjat"):"my"==p?(t(e,"ပံ့ပိုးထားသည်"),"0"==r&&t(e,"အခပေးကြော်ငြာ")):"or"==p?t(e,"ପ୍ରଯୋଜିତ"):"pa"==p?t(e,"ਸਰਪ੍ਰਸਤੀ ਪ੍ਰਾਪਤ"):"ps"==p?t(e,"تمويل شوي"):"ro"==p?t(e,"Sponsorizat"):"ru"==p||"uk"==p?t(e,"Реклама"):"rw"==p?t(e,"Icyamamaza ndasukirwaho"):"sc"==p?t(e,"Patronadu de"):"si"==p?t(e,"අනුග්‍රාහක"):"sk"==p?t(e,"Sponzorované"):"sn"==p?t(e,"Zvabhadharirwa"):"so"==p?t(e,"La maalgeliyey"):"sr"==p?t(e,"Спонзорисано"):"sw"==p?t(e,"Imedhaminiwa"):"sy"==p?t(e,"ܒܘܕܩܐ ܡܡܘܘܢܐ"):"sz"==p?t(e,"Szpōnzorowane"):"ta"==p?t(e,"விளம்பரம்"):"te"==p?t(e,"ప్రాయోజితం చేయబడింది"):"tg"==p?t(e,"Бо сарпарастӣ"):"th"==p?t(e,"ได้รับการสนับสนุน"):"tl"==p?t(e,"May Sponsor"):"tr"==p?t(e,"Sponsorlu"):"tt"==p?t(e,"Хәйрияче"):"tz"==p?t(e,"ⵉⴷⵍ"):"ur"==p?t(e,"سپانسرڈ"):"uz"==p?t(e,"Reklama"):"vi"==p?t(e,"Được tài trợ"):"zh-Hans"==p?t(e,"赞助内容"):"zh-Hant"==p&&t(e,"贊助");if(0<i.length&&0<d.length&&0<u.length&&0<h.length){for(cont=0;cont<i.length;cont++)0<i[cont].offsetHeight&&(cont=i.length,l=1);for(cont1=0;cont1<d.length;cont1++)0<d[cont1].offsetHeight&&(cont1=d.length,r=1);for(cont2=0;cont2<u.length;cont2++)0<u[cont2].offsetHeight&&(cont2=u.length,s=1);for(cont3=0;cont3<h.length;cont3++)0<h[cont3].offsetHeight&&(cont3=h.length,c=1);if(1==l&&1==r&&1==s&&1==c){if(0<m.length){if(""==(f=e.querySelectorAll("a[href]")[1].innerText))f=e.querySelectorAll("a[href]")[2].innerText}else f=e.querySelectorAll("a[href]")[2].innerText;q+=1,console.log("--------"),console.log("Ad hidden from: "+f),console.log("Total ads hidden: "+q),console.log("--------"),e.style="display:none!important;"}}}})}),q=0;e.observe(document,{childList:!0,subtree:!0,characterData:!0,attributes:!0})}();
New rule contains a bit improvement regarding speed on new layout.
 
Last edited:

Wittier

Member
Unlimited New Feed items. My expectation on facebook in chrome is that i can keep scrolling down page after page. The News Feed has not stopped as it has other times, in previous months where we saw a finite number of items..

With AG enabled on fb.com, tt slows though as apparently AG is taking time to hide the ads. the further I scroll down, the slower it gets until, yes, it kind of stops working but it's not a super low number of items.

I am not using the new Facebook.

I will try both rules with old Facebook.

Thanks
 

Blaz

Moderator & Translator
Staff member
Moderator
Tried old interface with and without AdGuard and after a while it slows down both times for me.
Please note the new rule above only includes a tiny little fix for old interface; on new interface a bigger one.

First rule disables current rule in Base filter and 2nd one hides ads. If you still can reproduce, please tell me selected facebook language.
 

Wittier

Member
Thanks.
I added the two rules.
Old facebook

with AG on it slows after many page downs (far more than 30 items in News feed)

with AG off, it keeps scrolling without major slowing.

I expect some slowing after paging down many times with or without AG (loading a lot of stuff on one page will always eventually slow it as memory fills up) but with AG on the slowing starts sooner and becomes more severe where the page becomes unresponsive or has very slow response to paging up and down eventually.

Replicated a few times after adding rules.
 

Blaz

Moderator & Translator
Staff member
Moderator
I guess the issue is gone if you only use the first rule I posted. Sadly FB behaves the same way on old interface for me with and without AdGuard.

Please check @Adam
 

Adam

Filters Developer
Staff member
Moderator
On my end it works better if I add these rules to user filter:
Code:
facebook.com,facebookcorewwi.onion#@%#!function(){var e=new MutationObserver(function(){document.querySelectorAll('[id^="substream"] > div:not(.hidden_elem) div[id^="hyperfeed_story_id"]').forEach(function(e){function t(e,t){for(s=e.querySelectorAll('.userContentWrapper h5 + div[data-testid*="sub"] a [class] [class]'),socheck=0;socheck<s.length;socheck++)s[socheck].innerText.contains(t)&&(c=["1"],d=["1"],i=["1"],r=l=a=1,socheck=s.length)}function o(e,t,o,n,a){s=e.querySelectorAll('.userContentWrapper h5 + div[data-testid*="sub"] a [data-content='+t+"]"),c=e.querySelectorAll('.userContentWrapper h5 + div[data-testid*="sub"] a [data-content='+o+"]"),d=e.querySelectorAll('.userContentWrapper h5 + div[data-testid*="sub"] a [data-content='+n+"]"),i=e.querySelectorAll('.userContentWrapper h5 + div[data-testid*="sub"] a [data-content='+a+"]"),0==s.length&&(s=e.querySelectorAll('.userContentWrapper h5 + div[data-testid*="label"] a [data-content='+t+"]"),c=e.querySelectorAll('.userContentWrapper h5 + div[data-testid*="label"] a [data-content='+o+"]"),d=e.querySelectorAll('.userContentWrapper h5 + div[data-testid*="label"] a [data-content='+n+"]"),i=e.querySelectorAll('.userContentWrapper h5 + div[data-testid*="label"] a [data-content='+a+"]"))}var n=0,a=0,l=0,r=0,s=0,c=0,d=0,i=0,u=e.querySelectorAll("div[style='width: 100%'] > a[href*='oculus.com/quest'] > div"),h=document.querySelector("[lang]").lang,g=e.querySelectorAll('a[ajaxify*="ad_id"] > span'),p=e.querySelectorAll('a[href*="ads/about"]');if("display: none !important;"!=e.getAttribute("style")&&!e.classList.contains("hidden_elem")){if(0<g.length||0<p.length){f+=1;var y=e.querySelectorAll("a[href]")[2].innerText;console.log("--------"),console.log("Ad hidden from: "+y),console.log("Total ads hidden: "+f),console.log("F length: "+g.length),console.log("H length: "+p.length),console.log("--------"),e.style="display:none!important;"}else if(0<u.length){f+=1;y="Facebook";console.log("--------"),console.log("Ad hidden from: "+y),console.log("Total ads hidden: "+f),console.log("Non-declared ad"),console.log("--------"),e.style="display:none!important;"}else"af"==h?t(e,"Geborg"):"de"==h||"nl"==h?o(e,"G","e","s","n"):"am"==h?t(e,"የተከፈለበት ማስታወቂያ"):"ar"==h?t(e,"مُموَّل"):"as"==h?t(e,"পৃষ্ঠপোষকতা কৰা"):"az"==h?t(e,"Sponsor dəstəkli"):"co"==h?t(e,"Spunsurizatu"):"bs"==h||"sl"==h||"cs"==h?o(e,"S","p","z","n"):"da"==h||"en"==h||"et"==h||"fy"==h||"it"==h||"ku"==h||"nb"==h||"nn"==h||"pl"==h||"sq"==h||"sv"==h||"zz"==h?document.querySelector("body").className.includes("Locale_en_UD")?t(e,"pəɹosuodS"):o(e,"S","p","s","n"):"be"==h?t(e,"Рэклама"):"bg"==h?t(e,"Спонсорирано"):"mk"==h?t(e,"Спонзорирано"):"br"==h?t(e,"Paeroniet"):"ca"==h?t(e,"Patrocinat"):"gl"==h||"pt"==h?t(e,"Patrocinado"):"bn"==h?t(e,"সৌজন্যে"):"cb"==h?t(e,"پاڵپشتیکراو"):"cx"==h?o(e,"G","i","s","n"):"cy"==h?t(e,"Noddwyd"):"el"==h?t(e,"Χορηγούμενη"):"eo"==h?t(e,"Reklamo"):"es"==h?o(e,"P","u","c","d"):"eu"==h?t(e,"Babestua"):"fa"==h?t(e,"دارای پشتیبانی مالی"):"ff"==h?t(e,"Yoɓanaama"):"fi"==h?t(e,"Sponsoroitu"):"fo"==h?t(e,"Stuðlað"):"fr"==h?document.querySelector("body").className.includes("Locale_fr_FR")?o(e,"S","p","s","n"):o(e,"C","o","m","n"):"ga"==h?t(e,"Urraithe"):"gn"==h?t(e,"Oñepatrosinapyre"):"gu"==h?t(e,"પ્રાયોજિત"):"ha"==h?t(e,"Daukar Nauyi"):"he"==h?t(e,"ממומן"):"hr"==h?t(e,"Plaćeni oglas"):"ht"==h?t(e,"Peye"):"ne"==h||"mr"==h||"hi"==h?t(e,"प्रायोजित"):"hu"==h?o(e,"H","i","r","d"):"hy"==h?t(e,"Գովազդային"):"id"==h?o(e,"B","e","p","n"):"is"==h?t(e,"Kostað"):"ja"==h?t(e,"広告"):"ms"==h?t(e,"Ditaja"):"jv"==h?t(e,"Disponsori"):"ka"==h?t(e,"რეკლამა"):"kk"==h?t(e,"Демеушілік көрсеткен"):"km"==h?t(e,"បានឧបត្ថម្ភ"):"kn"==h?t(e,"ಪ್ರಾಯೋಜಿತ"):"ko"==h?t(e,"Sponsored"):"ky"==h?t(e,"Демөөрчүлөнгөн"):"lo"==h?t(e,"ຜູ້ສະໜັບສະໜູນ"):"lt"==h?t(e,"Remiama"):"lv"==h?t(e,"Apmaksāta reklāma"):"mg"==h?t(e,"Misy Mpiantoka"):"ml"==h?t(e,"സ്പോൺസർ ചെയ്തത്"):"mn"==h?t(e,"Ивээн тэтгэсэн"):"mt"==h?t(e,"Sponsorjat"):"my"==h?t(e,"ပံ့ပိုးထားသည်"):"or"==h?t(e,"ପ୍ରଯୋଜିତ"):"pa"==h?t(e,"ਸਰਪ੍ਰਸਤੀ ਪ੍ਰਾਪਤ"):"ps"==h?t(e,"تمويل شوي"):"ro"==h?t(e,"Sponsorizat"):"ru"==h||"uk"==h?t(e,"Реклама"):"rw"==h?t(e,"Icyamamaza ndasukirwaho"):"sc"==h?t(e,"Patronadu de"):"si"==h?t(e,"අනුග්‍රාහක"):"sk"==h?t(e,"Sponzorované"):"sn"==h?t(e,"Zvabhadharirwa"):"so"==h?t(e,"La maalgeliyey"):"sr"==h?t(e,"Спонзорисано"):"sw"==h?t(e,"Imedhaminiwa"):"sy"==h?t(e,"ܒܘܕܩܐ ܡܡܘܘܢܐ"):"sz"==h?t(e,"Szpōnzorowane"):"ta"==h?t(e,"விளம்பரம்"):"te"==h?t(e,"ప్రాయోజితం చేయబడింది"):"tg"==h?t(e,"Бо сарпарастӣ"):"th"==h?t(e,"ได้รับการสนับสนุน"):"tl"==h?t(e,"May Sponsor"):"tr"==h?t(e,"Sponsorlu"):"tt"==h?t(e,"Хәйрияче"):"tz"==h?t(e,"ⵉⴷⵍ"):"ur"==h?t(e,"سپانسرڈ"):"uz"==h?t(e,"Reklama"):"vi"==h?t(e,"Được tài trợ"):"zh-Hans"==h?t(e,"赞助内容"):"zh-Hant"==h&&t(e,"贊助");if(0<s.length&&0<c.length&&0<d.length&&0<i.length){for(cont=0;cont<s.length;cont++)0<s[cont].offsetHeight&&(cont=s.length,n=1);for(cont1=0;cont1<c.length;cont1++)0<c[cont1].offsetHeight&&(cont1=c.length,a=1);for(cont2=0;cont2<d.length;cont2++)0<d[cont2].offsetHeight&&(cont2=d.length,l=1);for(cont3=0;cont3<i.length;cont3++)0<i[cont3].offsetHeight&&(cont3=i.length,r=1);if(1==n&&1==a&&1==l&&1==r){y=e.querySelectorAll("a[href]")[2].innerText;f+=1,console.log("--------"),console.log("Ad hidden from: "+y),console.log("Total ads hidden: "+f),console.log("--------"),e.style="display:none!important;"}}}})}),f=0;e.observe(document,{childList:!0,subtree:!0,characterData:!0,attributes:!0})}();
facebook.com,facebookcorewwi.onion#@%#new MutationObserver(function(){var t=["?fbclid","%3Ffbclid","&fbclid","%26fbclid","%3Futm","?utm","&fbc=","%26fbc%3D","?share=","%3Fshare%3D","%3F__twitter_impression%3D","?__twitter_impression=","?wtmc=","%3Fwtmc%3D","?originalReferrer=","%3ForiginalReferrer%3D","?wtrid=","%3Fwtrid%3D","?trbo=","%3Ftrbo%3D","?GEPC=","%3FGEPC%3D","?whatsapp=","%3Fwhatsapp%3D","?fbc=","%3Ffbc%3D","?dmcid=","%3Fdmcid%3D"];document.querySelectorAll('a[target="_blank"]').forEach(function(e){for(i=0;i<t.length;i++)if(e.href.includes(t[i])){if(!(r=e.href.split("#!")[1]))var r=e.href.split("%23%21")[1];if(!r)var r="";if(e.href.includes("#!")&&(r="#!"+r),e.href.includes("%23%21")&&(r="%23%21"+r),!(r=e.href.split("&feature=share&")[1]))r=e.href.split("%26feature%3Dshare%26")[1];if(!r)r="";e.href.includes("&feature=share&")&&(r="?"+r),e.href.includes("%26feature%3Dshare%26")&&(r="%3F"+r),e.setAttribute("href",e.href.split(t[i])[0]+r)}})}).observe(document,{childList:!0,subtree:!0});
facebook.com,facebookcorewwwi.onion#@%#new MutationObserver(function(){var t=["&eid=","%26eid%3D","?eid=","%3Feid%3D","?__tn__=","%3F%5F%5Ftn%5F%5F%3D","&__tn__=","%26%5F%5Ftn%5F%5F%3D","?source=","%3Fsource%3D","?__xts__","%3F%5F%5Fxts%5F%5F","&__xts__","%26%5F%5Fxts%5F%5F","&amp;__xts__%5B","?ref=","%3Fref%3D","?fref=","%3Ffref%3D","?epa=","%3Fepa%3D","&ifg=","%26ifg%3D","?comment_tracking=","%3Fcomment_tracking%3D","?av=","%3Fav%3D","&av=","%26av%3D","?acontext=","%3Facontext%3D","&session_id=","%26session_id%3D","&amp;session_id=","?hc_location=","%3Fhc_location%3D","&fref=","%26fref%3D","?__cft","%3f__cft"];document.querySelectorAll('a:not([target="_blank"])').forEach(function(e){for(i=0;i<t.length;i++)e.href.includes(t[i])&&e.setAttribute("href",e.href.split(t[i])[0])})}).observe(document,{childList:!0,subtree:!0});
facebook.com,facebookcorewwwi.onion#@%#(function() { var observer=new MutationObserver(hide);observer.observe(document,{childList:!0,subtree:!0});function hide(){var e=document.querySelectorAll('div[id^="substream_"] div[id^="hyperfeed_story_id"]');e.forEach(function(e){var i=e.__FB_STORE;if(i){var t=i["data-ft"];if(t!==void 0&&(!0===t.includes('"quick_promotion_id"')&&!1===t.includes('"page_id":"'))){e.style="display:none!important;";}}})} })();
facebook.com,facebookcorewwwi.onion#@?#._6y8t:-abp-has(a[href="/ads/about/?entry_product=ad_preferences"])
facebook.com,facebookcorewwwi.onion#@?#.ego_section:-abp-has(a[href^="/ad_"])
facebook.com,facebookcorewwwi.onion#@?#div[id^="hyperfeed_story_id_"]:-abp-has(a[ajaxify*="&ad_id="])
facebook.com,facebookcorewwwi.onion#@?#div[id^="hyperfeed_story_id_"]:-abp-has(a[data-hovercard^="/ajax/hovercard/page.php?id=152717608708800&"])
facebook.com,facebookcorewwwi.onion#@?#div[id^="hyperfeed_story_id_"]:-abp-has(a[data-hovercard^="/ajax/hovercard/page.php?id=1562919887258584&"])
facebook.com,facebookcorewwwi.onion#@?#div[id^="hyperfeed_story_id_"]:-abp-has(a[data-hovercard^="/ajax/hovercard/page.php?id=172084499810064&"])
facebook.com,facebookcorewwwi.onion#@?#div[id^="hyperfeed_story_id_"]:-abp-has(a[data-hovercard^="/ajax/hovercard/page.php?id=1840872649470382&"])
facebook.com,facebookcorewwwi.onion#@?#div[id^="hyperfeed_story_id_"]:-abp-has(a[data-hovercard^="/ajax/hovercard/page.php?id=19062931201&"])
facebook.com,facebookcorewwwi.onion#@?#div[id^="hyperfeed_story_id_"]:-abp-has(a[data-hovercard^="/ajax/hovercard/page.php?id=193309864593981&"])
facebook.com,facebookcorewwwi.onion#@?#div[id^="hyperfeed_story_id_"]:-abp-has(a[data-hovercard^="/ajax/hovercard/page.php?id=238900856656179&"])
facebook.com,facebookcorewwwi.onion#@?#div[id^="hyperfeed_story_id_"]:-abp-has(a[data-hovercard^="/ajax/hovercard/page.php?id=337919069680305&"])
facebook.com,facebookcorewwwi.onion#@?#div[id^="hyperfeed_story_id_"]:-abp-has(a[data-hovercard^="/ajax/hovercard/page.php?id=441678479351111&"])
facebook.com,facebookcorewwwi.onion#@?#div[id^="hyperfeed_story_id_"]:-abp-has(a[data-hovercard^="/ajax/hovercard/page.php?id=444394995756697&"])
facebook.com,facebookcorewwwi.onion#@?#div[id^="hyperfeed_story_id_"]:-abp-has(a[data-hovercard^="/ajax/hovercard/page.php?id=455771467959090&"])
facebook.com,facebookcorewwwi.onion#@?#div[id^="hyperfeed_story_id_"]:-abp-has(a[data-hovercard^="/ajax/hovercard/page.php?id=821130027910635&"])
facebook.com,facebookcorewwwi.onion#@?#div[id^="hyperfeed_story_id_"]:-abp-has(a[data-hovercard^="/ajax/hovercard/page.php?id=825496334242487&"])
facebook.com,facebookcorewwwi.onion#@?#div[id^="hyperfeed_story_id_"]:-abp-has(a[data-hovercard^="/ajax/hovercard/page.php?id=931112240236154&"])
facebook.com,facebookcorewwwi.onion#@?#div[id^="hyperfeed_story_id_"]:-abp-has(a[href*="is_sponsored"])
facebook.com,facebookcorewwwi.onion#@?#div[id^="hyperfeed_story_id_"]:-abp-has(input[data-next-question-id])
By the way, if I'm not wrong, we have 2 similar rules in Base filter:
and
so I guess that we can remove/disable the second one and maybe we can remove some old rules.
 

Blaz

Moderator & Translator
Staff member
Moderator
2nd and 3rd are from tracking protection Filter. I guess the abp rules cause the issues.

The rule in the if block are meant for Opera/FF, seems I set the wrong syntax.
 

Wittier

Member
It seems better with just the first rule. AG on and I'm not seeing the same slowing, at this moment. Thanks
 

Blaz

Moderator & Translator
Staff member
Moderator
Only problem is, you will see ads unless you are on a specific user agent.
We excluded abp extended rules which should be responsible for the slowdown. Please try the 2nd rule now in addition after filters update.
 

Wittier

Member
Thanks. It has been working pretty well with the first rule only. Old facebook. I will add the 2nd rule back in after manually updating filters(?).
 

Wittier

Member
Rules count went to 138278 to 138399 after manual update.

Both rules from yesterday now added.

(keeping notes)
 

Wittier

Member
Only problem is, you will see ads unless you are on a specific user agent.
We excluded abp extended rules which should be responsible for the slowdown. Please try the 2nd rule now in addition after filters update.
For the past several days, same setup as before, AG is blocking my news feed on facebook.com.

If I'm in "Most Recent Stories" mode it blocks everything in the News Feed.
If it's in "Top Stories" mode it shows some things but it's quite slow and the shit its shows can be days old. And sometimes it shows nothing.

If I turn off AG for facebook.com,it works fine.. not slow, but lots of ads.

So AG is basically breaking Facebook. I realize that it's because Facebook changes things.

I haven't changed any of my AG filters or rules from before in this thread.

Ideas?
 
Whatever rules that have been added here recently are working well for me. No horrible slow down when scrolling through the feed. Still on the old interface, on the waiting list to try the new interface. Update: Oops, wrong thread (I'm referring to AG for Windows).
 
Top