News for hackers. Stuff that matters.
Re:Making Direct3D games faster in Wine using modern OpenGL by stickydink on Saturday February 24, 2018 @03:53PM (#16455344)
It is delightfully simple, nice and clean.

A pleasing font family, no JavaScript, some basic CSS, stick to basic HTML tags and use them properly.

https://comminos.com/css/default.css

Re:Making Direct3D games faster in Wine using modern OpenGL by Tech-Noir on Saturday February 24, 2018 @06:26PM (#16456114)
> no JavaScript

Not to knock an otherwise nice site (CTRL & + improves readability for me personally, though), but:

    (function(d, s, id) {
      var js, fjs = d.getElementsByTagName(s)[0];
      if (d.getElementById(id)) return;
      js = d.createElement(s); js.id = id;
      js.src = 'https://connect.facebook.net/en_US/sdk.js#blahblahblah';
      fjs.parentNode.insertBefore(js, fjs);
    }(document, 'script', 'facebook-jssdk'));
AFAIK, even for sites that want to feed the monster, that's unnecessary:

http://chrisltd.com/blog/2015/04/social-share-like-buttons-w...

https://sharingbuttons.io/

Re:Making Direct3D games faster in Wine using modern OpenGL by kbenson on Saturday February 24, 2018 @06:44PM (#16456186)
So I decided to test the christld ones:

Twitter seems to work (brings up form).

Facebook redirects to an error.

Linkedin seems to work (brings up form when logged in).

Pinterest seems to work (brought up create board dialog when logged in)

Google+ seems to work (brings up share form).

I do have to say that for me that these would actually work and the JS likely wouldn't in some cases, since I make heavy use of Firefox's containers now to sandbox a lot of online identities, and just have new windows for certain URLs automatically load in the correct container.

Re:Making Direct3D games faster in Wine using modern OpenGL by Tech-Noir on Saturday February 24, 2018 @07:27PM (#16456380)
Thanks, that's interesting. The chrisltd blog is from 2015, so I did wonder if some of it might be out of date by now.

AFAICS (which I didn't notice at first) sharingbuttons has a slightly different FB URL, which may not give an error:

https://facebook.com/sharer/sharer.php?u=YOUR-URL

Compared to chrisltd's:

https://facebook.com/sharer.php?u=YOUR-URL