Greasy Fork is available in English.

Discussões » Criação de Solicitações

convert script tampermonkey

§
Publicado: 14/10/2017
Editado: 14/10/2017

convert script tampermonkey

You can help me convert this script to tampermoney. In Tampermoney it does not work gives error script and in greasemoney it works well

*** Click Url ***

//--- Get the first link that has "stackoverflow" in its URL.
var targetNode = document.querySelector ("a[href*='Inicio/']");
if (targetNode) {
    //--- Simulate a natural mouse-click sequence.
    triggerMouseEvent (targetNode, "mouseover");
    triggerMouseEvent (targetNode, "mousedown");
    triggerMouseEvent (targetNode, "mouseup");
    triggerMouseEvent (targetNode, "click");

}
else
    console.log ("*** Target node not found!");

function triggerMouseEvent (node, eventType) {
    var clickEvent = document.createEvent ('MouseEvents');
    clickEvent.initEvent (eventType, true, true);
    node.dispatchEvent (clickEvent);
}
§
Publicado: 14/10/2017

namely, which line of code of code is scolded by Tampermonkey?

§
Publicado: 14/10/2017

sometime I used this code :

 function click(node){
  var evt=new MouseEvent('click',
     {'view':window,'bubbles':true,'cancelable':true});
  node.dispatchEvent(evt);
} 

and it worked both in Chrome and Firefox.

§
Publicado: 02/11/2017

Quality arranging remarkably hone, basic models to know well Your Quality of Life Play sports ! Physical action is beginning late honest to goodness, and especially short and remarkable activities of basic worth squat, control lifting ... Rest better. The term yet what's more nature of your rest unequivocally influence your Vyantix rxlevel. Among am and am are gotten a handle on. Slacken up. Being under weight advances the season of cortisol the uneasiness hormone that comes especially to battle with Androxl testo boost. Partake in sexual relations in the morning .
http://www.sexual4facts.com/vyantix-rx/

Publicar resposta

Faça o login para publicar uma resposta.