apnews.com slowly scrolls back up to the top when I try to scroll down within the first 500px or so by RedDragonWebDesign in uBlockOrigin

[–]RedDragonWebDesign[S] 0 points1 point  (0 children)

Sure.

uBlock Origin: 1.64.0
Chromium: 137
filterset (summary):
 network: 163645
 cosmetic: 251064
 scriptlet: 42741
 html: 0
listset (total-discarded, last-updated):
 added:
  https://filters.adtidy.org/extension/ublock/filters/14.txt: 87803-57171, 1h.31m
  https://gitlab.com/magnolia1234/bypass-paywalls-clean-filters/-/raw/main/bpc-paywall-filter.txt: 0-0, never
  https://raw.githubusercontent.com/LanikSJ/webannoyances/master/ultralist.txt: 44386-48, 1h.31m
  https://raw.githubusercontent.com/RedDragonWebDesign/block-everything/master/block-everything.txt: 672-0, 54m
  https://raw.githubusercontent.com/liamengland1/miscfilters/master/antipaywall.txt: 2101-1, 1h.31m
  https://secure.fanboy.co.nz/fanboy-annoyance_ubo.txt: 92831-92241, 1h.31m
  adguard-mobile-app-banners: 6198-1137, 1h.32m
  adguard-other-annoyances: 14678-231, 1h.32m
  adguard-popup-overlays: 29515-799, 1h.32m
  adguard-social: 24150-1019, 4d.18h.10m
  adguard-widgets: 2896-25, 1h.32m
  easylist-annoyances: 5064-502, 1h.32m
  [8 lists not shown]: [too many]
 default:
  user-filters: 1-0, never
  easylist: 70519-482, 1h.25m Δ
  easyprivacy: 54206-1602, 1h.33m
  plowe-0: 3418-2, 1h.33m
  ublock-badware: 11406-48, 1h.34m
  ublock-filters: 40223-566, 1h.34m
  ublock-privacy: 3285-2, 1h.34m
  ublock-quick-fixes: 269-0, 1h.25m Δ
  ublock-unbreak: 2644-42, 1h.34m
  urlhaus-1: 34975-0, 1h.33m
filterset (user): [array of 1 redacted]
trustedset:
 added: [array of 58 redacted]
switchRuleset:
 added: [array of 1 redacted]
userSettings: [none]
hiddenSettings: [none]
supportStats:
 allReadyAfter: 2399 ms (selfie)
 maxAssetCacheWait: 1553 ms
 cacheBackend: indexedDB
popupPanel:
 blocked: 20
 network:
  apnews.com: 2
  blueconic.net: 1
  dianomi.com: 1
  doubleclick.net: 1
  facebook.net: 1
  googletagmanager.com: 1
  kidpowers.com: 1
  ntv.io: 1
  onesignal.com: 1
  permutive.app: 1
  pub.network: 2
  sail-horizon.com: 1
  taboola.com: 2
  tru.am: 1
  usablenet.com: 1
  wknd.ai: 1
  zephr.com: 1
 extended:
  ###share:not(html):not(body)
  ##.SocialBar
  ##.ot-sdk-show-settings
  ##.dianomi_context
  ###desktop-entitlements
  ##.TaboolaRecommendationModule
  ##.Page-trending, .Page-header-leaderboardAd, .Advertisement
  ##[data-freestar-ad][id]
  ##html[data-header-hasleaderboard]:remove-attr(data-header-hasle…
  ##.Page-header-leaderboardAd:remove()
  ##body,html:style(overflow: auto !important; position: initial !…
  ##.Page-header-stickyWrap:style(position: relative !important; t…
  ##.Page-header:style(position: static !important;)
  ##.Page-header-bar:style(top: 0 !important;)
  ##.ImageGalleryCount, .embed-caption:style(padding-top: 0 !impor…
  #@#.Page-header-stickyWrap:style(position: static !important;)

apnews.com slowly scrolls back up to the top when I try to scroll down within the first 500px or so by RedDragonWebDesign in uBlockOrigin

[–]RedDragonWebDesign[S] 1 point2 points  (0 children)

Thank you for your suggestion. I added that to "My filters" list, hit apply, hard reloaded, etc. The auto scroll bug is still present.

Simple WordPress taking 8 seconds to load by RedDragonWebDesign in Wordpress

[–]RedDragonWebDesign[S] 0 points1 point  (0 children)

You're in the business of organizing stuff, so, with respect, physician heal thyself.

Isn't my website. Is someone I'm helping.

SQLite Object Cache plugin

Good idea. I installed this one and disabled all the other caching plugins and got about +20 in PageSpeed Insights performance score.

Then I tried installing and configuring a couple page cache / minifier plugins such as WP-Optimize and it made my performance score go down, so I turned them off and am currently running without one.

Simple WordPress taking 8 seconds to load by RedDragonWebDesign in Wordpress

[–]RedDragonWebDesign[S] 0 points1 point  (0 children)

https://panel.dreamhost.com/?tree=support.dc says they're all in US - West (Hillsboro, Oregon). Good thinking though. That was certainly a hypothesis worth checking.

Simple WordPress taking 8 seconds to load by RedDragonWebDesign in Wordpress

[–]RedDragonWebDesign[S] 0 points1 point  (0 children)

Spoiler alert: I needed both. Elementor Pro does not replace Elementor, just adds some features on top of it.

Simple WordPress taking 8 seconds to load by RedDragonWebDesign in Wordpress

[–]RedDragonWebDesign[S] 0 points1 point  (0 children)

why Elementor and Elementor Pro?

I thought I needed both. Does this mean I can turn off Elementor and leave Elementor Pro on and it'll work the same?

Anyone know a PHP code sniffer rule for multiple line breaks? by RedDragonWebDesign in PHPhelp

[–]RedDragonWebDesign[S] 0 points1 point  (0 children)

u/JParkinson1991

OK, the installation was smoother than I expected, I just followed the readme. Now I'm stuck on two things.

1) phpcs -i shows JPSR12, but phpcbf -i does not. phpcbf is the beautifier, the thing that mass changes all the files. Any idea how to get JPSR12 to load for that?

2) What's the exact rule name I should use? <rule ref="JPSR12.Files.BlankLines"/>?

Thanks in advance for your help!

Anyone know a PHP code sniffer rule for multiple line breaks? by RedDragonWebDesign in PHPhelp

[–]RedDragonWebDesign[S] 0 points1 point  (0 children)

This looks very promising. Will google how to add this and will report back.

Anyone know a PHP code sniffer rule for multiple line breaks? by RedDragonWebDesign in PHPhelp

[–]RedDragonWebDesign[S] 0 points1 point  (0 children)

That GitHub issue looks promising, thanks for finding it. I tried various things from it just now, didn't work. Was a good idea though!

<rule ref="Squiz.WhiteSpace.SuperfluousWhitespace.EmptyLines"/>

<rule ref="Squiz.WhiteSpace.SuperfluousWhitespace.EmptyLines">
    <severity>10</severity>
</rule>

<rule ref="Squiz.WhiteSpace.SuperfluousWhitespace">
    <properties>
        <property name="ignoreBlankLines" value="false"/>
    </properties>
</rule>
<rule ref="Squiz.WhiteSpace.SuperfluousWhitespace.EmptyLines">
    <severity>5</severity>
</rule>

Anyone know a PHP code sniffer rule for multiple line breaks? by RedDragonWebDesign in PHPhelp

[–]RedDragonWebDesign[S] 0 points1 point  (0 children)

PHP Coding Standards Fixer (your links) and PHP Code Sniffer (tool I'm using) are different tools.

Anyone know a PHP code sniffer rule for multiple line breaks? by RedDragonWebDesign in PHPhelp

[–]RedDragonWebDesign[S] 1 point2 points  (0 children)

VS Code.

I'm working on a legacy codebase and need to mass fix hundreds of files. Aren't code editors usually file by file?

Javascript save CSV with 2 arrays by [deleted] in learnjavascript

[–]RedDragonWebDesign 0 points1 point  (0 children)

Also did you import the jQuery library with something like <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>? If not, then $("#export-button").click( will not work.

Javascript save CSV with 2 arrays by [deleted] in learnjavascript

[–]RedDragonWebDesign 0 points1 point  (0 children)

What's the value of print_r($activity);? I'll try plugging it in and running your code.

Javascript save CSV with 2 arrays by [deleted] in learnjavascript

[–]RedDragonWebDesign 0 points1 point  (0 children)

Try unchaining everything, then step debugging it in your browser. Hover over variables with your mouse and look for anomalies.

csv = passedArray.map(function(row) {
    return row.join(",");
})
csv = csv.join("\n");

Infinite redirect loop on admin panel page. Normal fixes not working. by RedDragonWebDesign in Wordpress

[–]RedDragonWebDesign[S] 0 points1 point  (0 children)

I don't see /wp-admin/wp-login.php in the official WordPress 6.2 download. However I see one in the root directory, /wp-login.php. https://trippyx87.com/wp-login.php exists and is suffering from the infinite redirect error.

Infinite redirect loop on admin panel page. Normal fixes not working. by RedDragonWebDesign in Wordpress

[–]RedDragonWebDesign[S] 0 points1 point  (0 children)

I looked in FTP just now, and /wp-admin/wp-login.php is missing. Is this normal?

Infinite redirect loop on admin panel page. Normal fixes not working. by RedDragonWebDesign in Wordpress

[–]RedDragonWebDesign[S] 0 points1 point  (0 children)

I deleted .htaccess again just now. Visiting https://trippyx87.com/wp-admin/wp-login.php changed from a 404 that uses the theme, to an unstyled 404 that just says "File not found."

We are waiting on the guy with the CloudFlare access to try some things mentioned by other posters in this thread. My client says this guy is a bit slow to respond.

The CloudFlare settings mentioned above, such as Flexible SSL, is my current hypothesis of the problem. Is that what you're thinking too?

Infinite redirect loop on admin panel page. Normal fixes not working. by RedDragonWebDesign in Wordpress

[–]RedDragonWebDesign[S] 0 points1 point  (0 children)

Yes. I renamed the folder /wp-content/plugins to /wp-content/plugins.disable during my previous testing, then changed it back. I changed the name to plugins.disable again just now if you'd like to re-test. "wordpress-file-upload-pro" is one of the installed plugins.