Skip to content

Instantly share code, notes, and snippets.

@ozero
Created April 24, 2020 11:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ozero/3e812c2ee2a885047b12b15ce56155b0 to your computer and use it in GitHub Desktop.
Save ozero/3e812c2ee2a885047b12b15ce56155b0 to your computer and use it in GitHub Desktop.
Ingress Forum auto liking
// ==UserScript==
// @name Ingress Forum auto liking
// @namespace http://tampermonkey.net/
// @version 0.0.1.20190610.00
// @description よくあるふぁぼ爆、なお多重実行するとそのままトグルされてキャンセルとなる模様
// @author ozero
// @updateURL https://test.currentdir.com/iitc_plugins/Ingress_Forum_auto_liking.user.js
// @downloadURL https://test.currentdir.com/iitc_plugins/Ingress_Forum_auto_liking.user.js
// @match https://community.ingress.com/*/discussion/*
// @grant none
// ==/UserScript==
var hr_fabobaku = $("<a href='#'>[Fav]</a>&nbsp;");
hr_fabobaku.on('click', function(){
var _myTimeout = 0;
$("a.ReactButton-Awesome").each(function(i, el){
setTimeout(function(){
$(el).trigger('click');
console.log([i, 'click']);
}, _myTimeout);
_myTimeout = _myTimeout + 1000;
})
});
$("div.PageTitle div.Options").prepend(hr_fabobaku);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment