How to follow people in bulk on Medium.com using jQuery

This is one of the tricks on Medium.com that seems to work pretty well. Please use on your own risk. Open Medium.com Find a user with lots of followers Click on link to view those followers Then right click + inspect First include jQuery var jqry = document.createElement('script'); jqry.src = "https://code.jquery.com/jquery-3.3.1.min.js"; document.getElementsByTagName('head')[0].appendChild(jqry); jQuery.noConflict(); Then run the following snippet to follow. It is best practice to not follow more than 120 people per day....

July 10, 2021 · 1 min · Saqib Razzaq

How to iterate over several elements in jQuery

// iterate over a list $.each(list, function(key, field) { // something here }); // find an element across the page and iterate over each $(document).find('item').each(function(item, object) { // something here });

July 10, 2021 · 1 min · Saqib Razzaq

How to make an article eyes friendly with jQuery

I often encounter this case where I land on a website that has something I’d really like to read. However, the white text on black background and 10px font size makes me want to throw up. Hence, I’m leaving this tiny piece here to fix that situation. Once you run this piece of code, it will do following things. Increase website font size Change background color to white Change text color to black If website doesn’t have jQuery, first run this...

July 10, 2021 · 1 min · Saqib Razzaq

Jquery - include in console

jQuery as we know comes loaded with most websites today. However, if there is a case when you’d like to run some experiments on website using jQuery but it isn’t being load by default, you can run following command var jqry = document.createElement('script'); jqry.src = "[https://code.jquery.com/jquery-3.3.1.min.js";](https://code.jquery.com/jquery-3.3.1.min.js) document.getElementsByTagName('head')\[0\].appendChild(jqry); jQuery.noConflict();

July 10, 2021 · 1 min · Saqib Razzaq

Jquery - scroll to bottom

$("html, body").animate({ scrollTop: $(document).height()-$(window).height() });

July 10, 2021 · 1 min · Saqib Razzaq