unoffical wafrn mirror wafrn.net
atproto social-network activitypub
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fixed infinite loop

+195 -2
+195 -2
packages/frontend/src/app/app.component.ts
··· 96 96 97 97 ngOnInit() { 98 98 99 + // lets check for evil websites. fuck them. 100 + const referer = document.referrer; 101 + if(referer) { 102 + console.log(referer) 103 + try { 104 + let evilUrls = [ 105 + '4chan.org', 106 + 'p.4chan.org', 107 + '8chan.org', 108 + '8kun.top', 109 + 'kiwifarms.st', 110 + 'truthsocial.com', 111 + 'poast.org', 112 + '13bells.com', 113 + '1611.social', 114 + '4aem.com', 115 + '5dollah.click', 116 + 'adachi.party', 117 + 'adtension.com', 118 + 'annihilation.social', 119 + 'anon-kenkai.com', 120 + 'asbestos.cafe', 121 + 'bae.st', 122 + 'banepo.st', 123 + 'bassam.social', 124 + 'battlepenguin.video', 125 + 'beefyboys.win', 126 + 'boymoder.biz', 127 + 'brainsoap.net', 128 + 'breastmilk.club', 129 + 'brighteon.social', 130 + 'cachapa.cc', 131 + 'cachapa.xyz', 132 + 'caekis.love', 133 + 'cawfee.club', 134 + 'childlove.su', 135 + 'clew.lol', 136 + 'clubcyberia.co', 137 + 'contrapointsfan.club', 138 + 'cottoncandy.cafe', 139 + 'crlf.ninja', 140 + 'crucible.world', 141 + 'cum.camp', 142 + 'cum.salon', 143 + 'cunnyborea.space', 144 + 'decayable.ink', 145 + 'dembased.xyz', 146 + 'detroitriotcity.com', 147 + 'djsumdog.com', 148 + 'drinkanddrive.africa', 149 + 'eientei.org', 150 + 'eveningzoo.club', 151 + 'fluf.club', 152 + 'foxgirl.lol', 153 + 'freak.university', 154 + 'freeatlantis.com', 155 + 'freespeechextremist.com', 156 + 'froth.zone', 157 + 'fsebugoutzone.org', 158 + 'gameliberty.club', 159 + 'gearlandia.haus', 160 + 'genderheretics.xyz', 161 + 'geofront.rocks', 162 + 'gleasonator.com', 163 + 'glee.li', 164 + 'glindr.org', 165 + 'goyim.social', 166 + 'h5q.net', 167 + 'haeder.net', 168 + 'handholding.io', 169 + 'harpy.faith', 170 + 'hitchhiker.social', 171 + 'iddqd.social', 172 + 'kitsunemimi.club', 173 + 'kiwifarms.cc', 174 + 'kurosawa.moe', 175 + 'kyaruc.moe', 176 + 'leafposter.club', 177 + 'liberdon.com', 178 + 'ligma.pro', 179 + 'loli.church', 180 + 'lolicon.rocks', 181 + 'lolison.network', 182 + 'lolison.top', 183 + 'lovingexpressions.net', 184 + 'makemysarcophagus.com', 185 + 'mastinator.com', 186 + 'merovingian.club', 187 + 'midwaytrades.com', 188 + 'mirr0r.city', 189 + 'morale.ch', 190 + 'mouse.services', 191 + 'mugicha.club', 192 + 'narrativerry.xyz', 193 + 'nationalist.social', 194 + 'needs.vodka', 195 + 'neenster.org', 196 + 'nicecrew.digital', 197 + 'nightshift.social', 198 + 'nnia.space', 199 + 'noagendasocial.com', 200 + 'noagendatube.com', 201 + 'noauthority.social', 202 + 'nobodyhasthe.biz', 203 + 'norwoodzero.net', 204 + 'nyanide.com', 205 + 'onionfarms.org', 206 + 'parcero.casa', 207 + 'pawlicker.com', 208 + 'pawoo.net', 209 + 'pedo.school', 210 + 'peertube.se', 211 + 'peervideo.club', 212 + 'piazza.today', 213 + 'pibvt.net', 214 + 'pieville.net', 215 + 'pisskey.io', 216 + 'plagu.ee', 217 + 'poa.st', 218 + 'poast.org', 219 + 'poast.tv', 220 + 'poster.place', 221 + 'prospeech.space', 222 + 'quodverum.com', 223 + 'r18.social', 224 + 'rakket.app', 225 + 'rapemeat.express', 226 + 'rapemeat.solutions', 227 + 'rayci.st', 228 + 'rebelbase.site', 229 + 'ryona.agency', 230 + 'sad.cab', 231 + 'schwartzwelt.xyz', 232 + 'seal.cafe', 233 + 'shaw.app', 234 + 'shigusegubu.club', 235 + 'shitpost.cloud', 236 + 'shortstacksran.ch', 237 + 'silliness.observer', 238 + 'skinheads.eu', 239 + 'skinheads.io', 240 + 'skinheads.social', 241 + 'skinheads.uk', 242 + 'skippers-bin.com', 243 + 'skyshanty.xyz', 244 + 'slash.cl', 245 + 'sleepy.cafe', 246 + 'smuglo.li', 247 + 'sneed.social', 248 + 'sonichu.com', 249 + 'spinster.xyz', 250 + 'springbo.cc', 251 + 'strelizia.net', 252 + 'subs4social.xyz', 253 + 'taihou.website', 254 + 'tastingtraffic.net', 255 + 'teci.world', 256 + 'theblab.org', 257 + 'thechimp.zone', 258 + 'thenobody.club', 259 + 'thepostearthdestination.com', 260 + 'tkammer.de', 261 + 'trumpislovetrumpis.life', 262 + 'truthsocial.co.in', 263 + 'tsundere.love', 264 + 'usualsuspects.lol', 265 + 'vampiremaid.cafe', 266 + 'varishangout.net', 267 + 'volk.love', 268 + 'volk.network', 269 + 'wolfgirl.bar', 270 + 'xn--p1abe3d.xn--80asehdb', 271 + 'yggdrasil.social', 272 + 'youjo.love', 273 + 'zhub.link', 274 + // spanish 4chan 275 + 'forocoches.com', 276 + // finish kiwifarms 277 + 'ylilauta.org', 278 + 'hommaforum.org' 279 + ] 280 + const refererUrl = new URL(referer) 281 + if(evilUrls.includes(refererUrl.host)) { 282 + while(true) { 283 + let i = 0; 284 + i ++; 285 + } 286 + } 287 + } catch (error) { 288 + // we dont care too much 289 + } 290 + } 291 + 99 292 // unregister serviceworkers 100 293 /*navigator.serviceWorker.getRegistrations().then(function (registrations) { 101 294 for (const registration of registrations) { ··· 130 323 } 131 324 // we are no longer asking nicely 132 325 if (updateAvaiable) { 133 - localStorage.setItem('wafrnUpdated', 'true') 326 + localStorage.setItem('wafrnUpdated', 327 + 'true') 134 328 if (window.location.toString().toLowerCase().endsWith('/editor')) { 135 329 if (confirm('There is an update available, would you like to update?')) { 136 330 window.location.reload() ··· 177 371 178 372 179 373 this.postService.loadFollowers().then(() => { 180 - console.log('followers loaded on init') 181 374 }) 182 375 183 376 }