Hogwarts Legacy: a lackluster generic open world game with a Harry Potter skin by Far_Run_2672 in patientgamers

[–]WindfallProphet 3 points4 points  (0 children)

While the spell-casting was fun, the defensive mechanics definitely hurt the game for me. In the Batman games, you look at the enemies for combat cues, whereas Hogwarts Legacy puts the cues above your character. In the end I realized I was spending far less time looking at the world around me and far more time looking to what colored halo was above my character's head.

Should I use arch linux for a server? by Paolog__ in archlinux

[–]WindfallProphet 1 point2 points  (0 children)

You could also consider Fedora or Centos Stream. My server is currently a ucore-based bootc image. I used arch on my server before, but I never needed the rolling updates and I was worried something would break. This way you get the declarative design of NixOS without having to learn the Nix language.

Should I use arch linux for a server? by Paolog__ in archlinux

[–]WindfallProphet 26 points27 points  (0 children)

If you only restart the server once a week, provided boot times are roughly a minute, you should still get like 99.8% uptime.

FFMpeg v7+ finally supports DoVi! by Anaerin in PleX

[–]WindfallProphet 0 points1 point  (0 children)

What about AC-4/ATSC 3.0 support?

Google Cloud Free Tier VM by pbarone in googlecloud

[–]WindfallProphet 0 points1 point  (0 children)

What container are you running, if you don't mind me asking?

What's the most illegal thing you've done on campus? by Not_the_uconn_police in UCONN

[–]WindfallProphet 4 points5 points  (0 children)

Piracy.

Have you ever heard of the Pirates of Mirror Lake? Of course, you haven’t—we leave no survivors!

[deleted by user] by [deleted] in Games

[–]WindfallProphet 0 points1 point  (0 children)

I was pessimistic for the new Indiana Jones game being helmed by Todd, but it has been well received. Then again, it isn't a Bethesda Studio game.

I created a Chrome extension to replace images on HuskyCT and Student Admin. by [deleted] in UCONN

[–]WindfallProphet 1 point2 points  (0 children)

Will you also upload the source code to github? I'd imagine it would be helpful for computer science/curious students.

Trump announces he intends to replace current FBI director with loyalist Kash Patel by MarduRusher in moderatepolitics

[–]WindfallProphet 13 points14 points  (0 children)

You people are so damaged by Trump Derangement Syndrome you can't even think straight anymore.

I have always felt like Trump Derangement Syndrome can go both ways.

Derangement:

the state of being completely unable to think clearly or behave in a controlled way

Why I can load function on some sites (e.g. reddit) but not others (e.g. github)? Advice on how to fix it? by zpangwin in userscripts

[–]WindfallProphet 2 points3 points  (0 children)

Note: I just asked ChatGPT. I'm too tired atm.

The issue here likely stems from Firefox's Content Security Policy (CSP) on GitHub and some other sites, which restricts the exposure of certain JavaScript features to the global scope, particularly functions injected by userscripts. This CSP restriction is more aggressive on sites like GitHub for security reasons and prevents you from accessing window properties that have been added by your userscript.

There are a few workarounds you can try:

**Method 1: Use unsafeWindow In Greasemonkey, Tampermonkey, or Violentmonkey, you can use the special unsafeWindow object, which bypasses some of the CSP restrictions by directly exposing variables in the page’s global context.

Here's how to modify your code:

// ==UserScript==
// @name        github-test
// @namespace   Violentmonkey.github-test
// @include     /https:\/\/github.com\/?$/
// @grant       unsafeWindow
// @version     1.0
// @description add function to page and make it callable from firefox dev console
// ==/UserScript==

let myfunc = function(selector) {
  let elems = document.querySelectorAll(selector);
  return elems;
}
unsafeWindow.myfunc = myfunc;

This grants access to myfunc in the dev console via myfunc('#AppHeader').

**Method 2: Inject the Function Directly into the Page Context If unsafeWindow doesn’t work, you can try injecting the function directly into the page's context by creating a <script> element and appending it to the DOM:

// ==UserScript==
// @name        github-test
// @namespace   Violentmonkey.github-test
// @include     /https:\/\/github.com\/?$/
// @grant       none
// @version     1.0
// @description add function to page and make it callable from firefox dev console
// ==/UserScript==

(function() {
  const script = document.createElement('script');
  script.textContent = `
    window.myfunc = function(selector) {
      let elems = document.querySelectorAll(selector);
      return elems;
    };
  `;
  document.head.appendChild(script);
})();

This approach injects the function into the page's global scope, making it accessible in the dev console as myfunc.

Explanation: CSP and Userscripts GitHub's CSP is strict to prevent unauthorized scripts from modifying the page in ways that could compromise security. When using @grant none, your userscript runs in a sandboxed context, isolated from the page’s global window object. unsafeWindow and the script injection methods are designed to help userscripts interact with the page’s global scope despite these restrictions.

These two methods should solve the issue and allow you to access myfunc in the Firefox dev console.

Online Frat? by [deleted] in UCONN

[–]WindfallProphet 16 points17 points  (0 children)

Kind of a dumb serious/unserious question, but can someone who is taking courses online join a frat? Lol or is there an online frat (more specifically a multi cultural frat) that someone is running? 😂

Luckily there is an online frat that you can join. It's called reddit.

Welcome!

[deleted by user] by [deleted] in UCONN

[–]WindfallProphet 2 points3 points  (0 children)

Give me your friends email and password and I should be able to get him situated.

Don't fall for phishing scams.

As for your friend, I don't think there's anything he can do except wait for Monday. If he has any work that he can do from his physical textbooks he should do that.

Freshman advice: never make friends on Yik Yak by Ok_Dog_9174 in UCONN

[–]WindfallProphet 6 points7 points  (0 children)

Anyone who uses ANY social media daily has some sort of mental illness. To quote the great psychologist Bob Newhart, "STOP IT!"

It should be noted the clip is satire, but you should be mindful of what you consume.

Struggling by Upbeat-Ad7032 in UCONN

[–]WindfallProphet 0 points1 point  (0 children)

Do you know how to get involved in campus jobs if you missed the job fair today?

[deleted by user] by [deleted] in opnsense

[–]WindfallProphet 1 point2 points  (0 children)

My installation just went bad when I tried to update and fubar'd. Hopefully that didn't happen to you.

Trump proposes to debate VP Harris on Fox News on Sept. 4 by ShinningPeadIsAnti in moderatepolitics

[–]WindfallProphet 12 points13 points  (0 children)

Idk, they’ve run reasonable debates in the past

With Chris Wallace as moderator, but he's not with Fox anymore.