Bypassing JavaScript Requirements

8 respuestas [Último envío]
onpon4
Desconectado/a
se unió: 05/30/2012

I just recorded and uploaded this video tutorial today:

https://goblinrefuge.com/mediagoblin/u/onpon4/m/tutorial-bypassing-javascript-requirements-with-inspect-element/

I think I'll do more, in particular one for YouTube, which I'm very familiar with.

lembas
Desconectado/a
se unió: 05/13/2010

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!

onpon4
Desconectado/a
se unió: 05/30/2012
ssdclickofdeath
Desconectado/a
se unió: 05/18/2013

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

ssdclickofdeath
Desconectado/a
se unió: 05/18/2013

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

Mampir
Desconectado/a
se unió: 12/16/2009

Unfortunately Disqus comments are in JSON format. There might be a way to get them in HTML format, but I don't know how. You can generate your own HTML with a browser add-on, a GreaseMonkey script or similar.

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=default&version=597d5139026c6bd7c7cd9b05b398e28e&f=wired&t_i=1781044%20http%3A%2F%2Fwww.wired.com%2F%3Fp%3D1781044

Here's how to find the comments URL:

  1. Go to the page where the comments should be.
  2. In the page source search for 'var disqus_identifier' and 'var disqus_shortname', which are JavaScript variables, and copy their values.
  3. 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.

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

    'https://disqus.com/embed/comments/?base=default&version=597d5139026c6bd7c7cd9b05b398e28e&f=' + disqus_shortname + '&t_i=' + disqus_identifier
    
  5. 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.

If you are interested of doing an add-on/script which does this, ask and maybe I can too do a video tutorial on how to write something like this. :)

onpon4
Desconectado/a
se unió: 05/30/2012

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/

SuperTramp83

I am a translator!

Desconectado/a
se unió: 10/31/2014

nice!

Mangy Dog

I am a member!

I am a translator!

Desconectado/a
se unió: 03/15/2015

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