Skip to content

Instantly share code, notes, and snippets.

var sum = 0;
var count = 0;
var $counter = document.createElement('div');
$counter.setAttribute('style', 'position: fixed; width: 300px; min-height: 20px; bottom: 14px; right: 14px; background: rgba(0,0,0,0.7); border-radius: 10px;');
document.body.appendChild($counter);
var autoLike = function () {
let buttons = document.querySelectorAll('div[data-testid="like"]');
if (buttons.length <= 0) {
restart()
var sum = 0;
var count = 0;
var $counter = $('<div style="position: fixed; width: 300px; min-height: 20px; bottom: 14px; right: 14px; background: rgba(0,0,0,0.7); border-radius: 10px;"></div>');
$('body').append($counter);
var autoLike = function () {
var i = 0;
var time = 0;
$('.ProfileTweet-actionButton.js-actionButton.js-actionFavorite').each(function (index, element) {
if ($(element).is(':visible')) {
@nurumayuapp
nurumayuapp / targeting.html
Created May 24, 2019 13:42
Anchor tag automatic targeting
<script>
var anchors = document.getElementsByTagName('a');
for(var i = 0; i < anchors.length; i++) {
var a = anchors[i];
if (!a.href.length || ~a.href.indexOf(location.host)) { continue }
a.target = '_blank';
}
</script>
@nurumayuapp
nurumayuapp / auto_like.js
Created May 4, 2019 11:56
Twitter auto-like script for Google Chrome
var sum = 0;
var count = 0;
var $counter = $('<div style="position: fixed; width: 300px; min-height: 20px; bottom: 14px; right: 14px; background: rgba(0,0,0,0.7); border-radius: 10px;"></div>');
$('body').append($counter);
var autoLike = function () {
var i = 0;
var time = 0;
$('.ProfileTweet-actionButton.js-actionButton.js-actionFavorite').each(function (index, element) {
if ($(element).is(':visible')) {