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. $('.js-followButton').each(function(index, item) { $(item).trigger("click"); console.log('Followed ' + index + '/ 120'); if (index > 100) { return false; } });

July 10, 2021 · 1 min · 93 words · 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 · 31 words · 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 · 105 words · 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 · 48 words · Saqib Razzaq

Jquery - scroll to bottom

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

July 10, 2021 · 1 min · 5 words · Saqib Razzaq

Quick Ajax template jQuery

Following is a sample Ajax template that can be used when you’re not in the mood of surfing through docs $.ajax({ url: "http://google.com", type: "post", dataType: "json", data: {name: item, value: value}, success: function (response) { // do somethinig here }, error: function(jqXHR, textStatus, errorThrown) { console.log(textStatus, errorThrown); } });

July 10, 2021 · 1 min · 50 words · Saqib Razzaq

Quick each loop example in jQuery

$.each iterates over all elements specified and performs your code 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 · 39 words · Saqib Razzaq

Markdown Syntax Guide

This article offers a sample of basic Markdown syntax that can be used in Hugo content files, also it shows whether basic HTML elements are decorated with CSS in a Hugo theme. ...

March 11, 2019 · 3 min · 446 words · Hugo Authors