rccharles

Q: Using Turingtest2's minimalist style sheet on an ios device

Using Turingtest2's minimalist style sheet on an ios device! 

 

ios devices do not support user style sheets. Until now, this means you have to live with the standard ASC web page on your ios device.  By using a bookmark, you can add Turingtest2's minimalist user style to an ASC web page. The downside is that you have to involve the book mark on every ASC web page .


On your ios device, bookmark this link.  When you are on an ASC page, tap on the saved bookmark in your web browser.  [ Of course, I cannot test this bookmark until I publish this page.  ]

 

minimalist bookmark

 

Since I had not yet created this discussion, I added the bookmark to my iPhone in a more roundabout way.  Here is what I did.  This bookmark should work in most web browsers, from what I have read on the internet, a most reliable source .

 

What I did was to right click on this bookmark in Firefox running in Yosemite. [ that right, I'm not on my iphone ]

 

Screen Shot 2016-08-29 at 3.09.41 PM.png

 

Now, click on Bookmark this link.

 

Now, go to you iPhone.  I'm running iCab.  It as a facility to sync your Firefox bookmarks into iCab running on my iPhone 4.  [  lazy me ]

 

Here is how a discussion looked on my iPhone 4 in iCab, an alternate web browser. [ it's a paid browser, but feature rich. ]

 

iphone asc bookmark-1.PNG

 

 

 

 

 

 

now, I tap on the little book icon on the lower left.  I tap on my book mark.

Now, turingtest2's minimalist user style sheet is installed! I've scrolled down and I don't get have the screen covered with the wasteful popup.

 

iphone asc bookmark -2.PNG

 

What does this bookmark look like?  It's rather cloudy.  What I did was construct a javascript bookmark.  There are tools around the internet to construct such a bookmark.

 

javascript:(function(){var%20aDate=new%20Date();console.log("-->%20ASC%20tt2-minimalist:%20beginning%20"+aDate);var%20firstScript=document.createElement("style");console.log("-->%20ASC%20tt2-minimalist:%20A");var%20nodeScript=document.createTextNode("p{margin-bottom:.1em}td.j-td-date%20>%20span{display:inherit!important}.jive-username-link{text-transform:none!important}.tiny_mce_content{font-size:inherit!important}.persist-question{display:none!important}.helpful-allreply{display:none!important}#helpful-container{display:none!important}.all-replies-container{display:inherit!important}");console.log("-->%20ASC%20tt2-minimalist:%20B");firstScript.appendChild(nodeScript);console.log("-->%20ASC%20tt2-minimalist:%20C");try{var%20isASC=document.getElementById("body-apple");console.log("-->%20ASC%20tt2-minimalist:%20D");if(isASC==null){console.log("-->%20tt2-minimalist%20#%2010:%20Does%20not%20have%20the%20layout%20of%20an%20ASC%20web%20page.");return%200;}console.log("-->%20ASC%20tt2-minimalist:%20E");isASC.appendChild(firstScript);console.log("-->%20ASC%20tt2-minimalist:%20F");}catch(err){alert("==>%20ctt2-minimalist%20#%2011:%20"+err.message);console.log("-->%20tt2-minimalist%20#%2011:%20Got%20some%20odd%20error%20when%20looking%20for%20script%20insertion%20point.%20");console.log("-->%20"+err.message);console.log(err);return%2014;}console.log("-->%20ASC%20tt2-minimalist:%20end");})();

Mac mini, OS X Yosemite (10.10.5), Fall 2014; iPhone 4 7.1.2

Posted on Aug 29, 2016 12:40 PM

Close

Q: Using Turingtest2's minimalist style sheet on an ios device

  • All replies
  • Helpful answers

  • by Diana.McCall,

    Diana.McCall Diana.McCall Aug 29, 2016 1:18 PM in response to rccharles
    Level 4 (2,815 points)
    Apple TV
    Aug 29, 2016 1:18 PM in response to rccharles

    Hi. This is very interesting. But it looks like your "minimalist bookmark" just links to this page. Am I doing it wrong?

    Thanks

  • by ChitlinsCC,

    ChitlinsCC ChitlinsCC Aug 29, 2016 1:19 PM in response to rccharles
    Level 5 (7,448 points)
    Notebooks
    Aug 29, 2016 1:19 PM in response to rccharles

    Clever boy.

    I have a SMALL screen Android (LG Leon) fone.

    Firefox for Android supports add-ons - I have had tt2's Minimal on it for quite some time

    Screenshot_2016-08-29-15-11-05.png

    I cannot follow your instructions (probably my fault, I am having "one of those days") with the bookmarking the link on FF4android AND seeing any difference - likely because Minimal is already happening for me

     

    At bottom, I do not get an array of "tools" like this (iDevice tools?)

    screenshot-discussions apple com 2016-08-29 15-18-05.png

  • by ChitlinsCC,

    ChitlinsCC ChitlinsCC Aug 29, 2016 1:21 PM in response to Diana.McCall
    Level 5 (7,448 points)
    Notebooks
    Aug 29, 2016 1:21 PM in response to Diana.McCall

    I too am looping back here (I thought that it was his intent, but now I'm not so sure) - I wait for feedback

  • by rccharles,

    rccharles rccharles Aug 29, 2016 1:32 PM in response to rccharles
    Level 6 (8,439 points)
    Classic Mac OS
    Aug 29, 2016 1:32 PM in response to rccharles

    The tap on the above link doesn't seem to be doing the job. .  The funny link don't survive the journey through ASC.

     

    Here is how I got the link into iCab.  I used firefox on my mac mini running Yosemite.  I set up Firefox to sync my bookmarks to all my web browsers.  I set up iCab to sync my firefox bookmarks.

    setting > Services > firefox sync

     

    Ran this javascript cod through through:

    http://ted.mielczarek.org/code/mozilla/bookmarklet.html

    to create the bookmark.

     

    
    
    var aDate = new Date();
    console.log ("--> ASC tt2-minimalist: beginning " + aDate );
    
    var firstScript = document.createElement("style");  
    console.log ("--> ASC tt2-minimalist: A"); 
    
    
    var nodeScript = document.createTextNode("p{margin-bottom:.1em}td.j-td-date > span{display:inherit!important}.jive-username-link{text-transform:none!important}.tiny_mce_content{font-size:inherit!important}.persist-question{display:none!important}.helpful-allreply{display:none!important}#helpful-container{display:none!important}.all-replies-container{display:inherit!important}");       
    console.log ("--> ASC tt2-minimalist: B");           
    
    firstScript.appendChild(nodeScript);
    console.log ("--> ASC tt2-minimalist: C"); 
    
    var isASC = document.getElementById("body-apple");
    console.log ("--> ASC tt2-minimalist: D");   
      if ( isASC == null)
      {
       console.log ("--> tt2-minimalist # 10: Does not have the layout of an ASC web page.");
       return 0;  
      }
      console.log ("--> ASC tt2-minimalist: E"); 
    
      isASC.appendChild(firstScript);
    
    
    console.log ("--> ASC tt2-minimalist: end");
    

     

     

     

    Screen Shot 2016-08-29 at 4.05.02 PM.png

     

    click the crunch button, to build the one line javascript file. 

     

    Right click "Your Bookmark".  To create a bookmark.

     

    Screen Shot 2016-08-29 at 4.11.42 PM.png

    Click on "Bookmark This Link".

     

    Wait for the next iCab sync.  Syncs every 15 minutes.

     

    Worked!

    R

    PS.  Looking for some others to simply this process.

  • by rccharles,

    rccharles rccharles Aug 29, 2016 1:39 PM in response to rccharles
    Level 6 (8,439 points)
    Classic Mac OS
    Aug 29, 2016 1:39 PM in response to rccharles

    Someone needs to host the link on a web page.  Your smart phone needs to support bookmarking the link as opposed to opening the link in a new page.

     

    I guess I need to create my very own home page.

     

    R

  • by turingtest2,

    turingtest2 turingtest2 Aug 29, 2016 1:40 PM in response to rccharles
    Level 10 (84,849 points)
    iTunes
    Aug 29, 2016 1:40 PM in response to rccharles

    Hi,

     

    Jive will be sanitising the javascript link. I made a new link in Chrome, then edited the target to your javascript string and saved it. My updated bookmarks in Chrome sync through to my iDevices eventually. Tested. It appears to work though more trouble than it is really worth.

     

    tt2

  • by rccharles,

    rccharles rccharles Aug 29, 2016 1:52 PM in response to turingtest2
    Level 6 (8,439 points)
    Classic Mac OS
    Aug 29, 2016 1:52 PM in response to turingtest2

    Yeah, I know.  It was a proof of concept.

     

    Now, we need to find some ios web browser that shows a bookmark bar in the display window.  That would reduce the tapping to one tap. This would be the same as having to dismiss the popup window or have to tap view all posts.

     

    I do not know why ios web browsers do not support user style sheets.  Is this an Apple restriction?

     

    Having the web browser automatically "running" a bookmark on page load would be a workaround to no user style sheet support.   The javascript injects the minimalist style sheet into the web page!  So who know why not user style sheet.  Seems like a web browser could implement.

     

    R

  • by turingtest2,

    turingtest2 turingtest2 Aug 29, 2016 1:58 PM in response to rccharles
    Level 10 (84,849 points)
    iTunes
    Aug 29, 2016 1:58 PM in response to rccharles

    It works in Chrome on iOS, but that takes a few taps to get to a bookmark. It doesn't work in Safari.

     

    tt2

  • by rccharles,

    rccharles rccharles Aug 29, 2016 2:25 PM in response to turingtest2
    Level 6 (8,439 points)
    Classic Mac OS
    Aug 29, 2016 2:25 PM in response to turingtest2

    It could be two taps in iCab.  Tap once for bookmarks.  Tap on your desired bookmark.  iCab comes back to where you left bookmarks the last time.

     

    I guess I'll have to learn how to play around with safari booksmarks.

     

    R