Created
April 24, 2020 11:43
-
-
Save ozero/3e812c2ee2a885047b12b15ce56155b0 to your computer and use it in GitHub Desktop.
Ingress Forum auto liking
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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> "); | |
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