News for hackers. Stuff that matters.
Re:No, I don’t want to sign up for your newsletter by nexxer on Tuesday April 25, 2023 @04:40AM (#35697985)
Low contraxt text tires me. I tend to toggle Reader Mode in my browser or simply click on this bookmarklet (a simple bookmarked link with the below in the URL field) that changes all fonts to "Open Sans" or "Lucinda Grande".

Must be urlencoded for bookmarklets to work.

  javascript:%20%20WebFontConfig%20%3D%20%7B%0D%0A%20%20%20%20google%3A%20%7B%20families%3A%20%5B%20'Open%2BSans%3A%3Alatin%2Cgreek-ext'%20%5D%20%7D%0D%0A%20%20%7D%3B%0D%0A%20%20(function()%20%7B%0D%0A%20%20%20%20var%20wf%20%3D%20document.createElement('script')%3B%0D%0A%20%20%20%20wf.src%20%3D%20('https%3A'%20%3D%3D%20document.location.protocol%20%3F%20'https'%20%3A%20'http')%20%2B%0D%0A%20%20%20%20%20%20'%3A%2F%2Fajax.googleapis.com%2Fajax%2Flibs%2Fwebfont%2F1%2Fwebfont.js'%3B%0D%0A%20%20%20%20wf.type%20%3D%20'text%2Fjavascript'%3B%0D%0A%20%20%20%20wf.async%20%3D%20'true'%3B%0D%0A%20%20%20%20document.getElementsByTagName(%22head%22)%5B0%5D.appendChild(wf)%3B%20%0D%0A%09var%20newSS%2C%20styles%3D'*%2Chtml%2Cbody%20%7B%20font-family%3A%20Open%20Sans%2C%20Lucida%20Grande%2Csans-serif%20!%20important%3B%7D'%3B%20%0D%0A%09if(document.createStyleSheet)%20%7B%20%0D%0A%09%09document.createStyleSheet(%22javascript%3A'%22%2Bstyles%2B%22'%22)%3B%20%0D%0A%09%7D%20%0D%0A%09else%20%7B%20%0D%0A%09%09newSS%3Ddocument.createElement('link')%3B%20%0D%0A%09%09newSS.rel%3D'stylesheet'%3B%20%0D%0A%09%09newSS.href%3D'data%3Atext%2Fcss%2C'%2Bescape(styles)%3B%20%0D%0A%09%09document.getElementsByTagName(%22head%22)%5B0%5D.appendChild(newSS)%3B%20%0D%0A%09%7D%20%09%0D%0A%20%20%7D)()%3B;
  
  
The above in plaintext for reading through:

  javascript:  WebFontConfig = {
      google: { families: [ 'Open+Sans::latin,greek-ext' ] }
    };
    (function() {
      var wf = document.createElement('script');
      wf.src = ('https:' == document.location.protocol ? 'https' : 'http') +
        '://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js';
      wf.type = 'text/javascript';
      wf.async = 'true';
      document.getElementsByTagName("head")[0].appendChild(wf); 
   var newSS, styles='*,html,body { font-family: Open Sans, Lucida Grande,sans-serif ! important;}'; 
   if(document.createStyleSheet) { 
    document.createStyleSheet("javascript:'"+styles+"'"); 
   } 
   else { 
    newSS=document.createElement('link'); 
    newSS.rel='stylesheet'; 
    newSS.href='data:text/css,'+escape(styles); 
    document.getElementsByTagName("head")[0].appendChild(newSS); 
   }  
    })();;*

There are no comments on this comment yet.