Re: [Trisquel-users] Bypassing JavaScript Requirements

2015-05-15 Thread pinmaritim

Thanks opon4,nice tuto,
I'll be enjoying nuking some annoying stuff and this is really handy.Cheers!


Re: [Trisquel-users] Bypassing JavaScript Requirements

2015-05-15 Thread mampir
You can do it with a browser add-on or GreaseMonkey script.  Unfortunately  
Disqus comments are in JSON format.  There might be a way to get them in HTML  
format, but I don't know how.


To get the JSON comments, you must find the URL from where to fetch them.   
For example, if you want the comments of:  
https://www.wired.com/2015/05/binge-watching-making-planet-warmer/


You should get the comments from:  
https://disqus.com/embed/comments/?base=defaultversion=597d5139026c6bd7c7cd9b05b398e28ef=wiredt_i=1781044%20http%3A%2F%2Fwww.wired.com%2F%3Fp%3D1781044


Here's how to find the comments URL:



Go to the page where the comments should be.


In the page source search for 'var disqus_identifier' and 'var  
disqus_shortname', which are JavaScript variables, and copy their values.



The disqus_identifier value should be escaped, which means if
looks like this:

1781044 http://www.wired.com/?p=1781044

It should become like this:

1780245%20http%3A%2F%2Fwww.wired.com%2F%3Fp%3D1780245

   You can use the encodeURIComponent() function, if you are using  
JavaScript.



Using the two variables, make a URL in the following format:

'https://disqus.com/embed/comments/?base=defaultversion=597d5139026c6bd7c7cd9b05b398e28ef='  
+ disqus_shortname + 't_i=' + disqus_identifier





When you go to the URL you've made it will appear blank in a web browser.  
 But if you look at the page source you'll be able to see the comments,  
formatted in JSON.




When you have the JSON data, using an add-on or GreaseMonkey, you can  
generated HTML comments and put them on the page.  It shouldn't be very hard,  
if you really want to see the comments.


As, if you are interested of doing a add-on/script which does this.  Maybe I  
can too do a video tutorial on how to write something like this. :)


Re: [Trisquel-users] Bypassing JavaScript Requirements

2015-05-14 Thread greatgnu

nice!


Re: [Trisquel-users] Bypassing JavaScript Requirements

2015-05-14 Thread onpon4
I've posted a more thorough video about watching videos online without  
JavaScript:


https://goblinrefuge.com/mediagoblin/u/onpon4/m/tutorial-watching-videos-without-javascript/


Re: [Trisquel-users] Bypassing JavaScript Requirements

2015-04-25 Thread gramex

Does anyone have any idea on how to load disqus comments without JavaScript?


Re: [Trisquel-users] Bypassing JavaScript Requirements

2015-04-23 Thread gramex
I made a stylesheet for YouTube that automatically expands the description  
box under the video for you so you don't have to do it manually every time by  
editing the page.


To use it, first install Stylish.  
https://trisquel.info/en/browser/addons/stylish


After restarting your browser, open the Add-ons Manager and navigate to the  
User Styles tab.
Click the Write New Style button and paste the contents of this file  
(https://notabug.org/ssdclickofdeath/descriptiontube/raw/master/descriptiontube.css)  
into the code editor.
You will need to manually name the script DescriptionTube in the small text  
box above. Click on the save button, and the script should now be active.


Here is the link to the NotABug.org page.
https://notabug.org/ssdclickofdeath/descriptiontube


Re: [Trisquel-users] Bypassing JavaScript Requirements

2014-12-01 Thread onpon4

Here's a tutorial for YouTube, specifically:

https://goblinrefuge.com/mediagoblin/u/onpon4/m/tutorial-bypassing-youtube-javascript-requirements/


Re: [Trisquel-users] Bypassing JavaScript Requirements

2014-11-28 Thread t8mf4nu6lizp

That was a very nice tut!

I was aware of how to get rid of various unwanted elements (using browser  
extensions) but I hadn't realized you could change the display none thingy so  
easily.


I always try to do without JS so this will come handy! Thank you!