Нижеприведенный скрипт работает в Firefox/Greasemonkey, но ничего не происходит в Chrome/Tampermonkey.Сценарий работает в Greasemonkey, но ничего не происходит в Tampermonkey?
Может ли кто-нибудь понять, почему он не работает в Тампермонке?
// ==UserScript==
// @name Example
// @namespace Example.com
// @description Example.com
// @include https://example.com/*
// @include http://example.com/*
// @version 1
// @grant none
// @require http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js
// @require https://greasyfork.org/scripts/5392-waitforkeyelements/code/WaitForKeyElements.js?version=115012
// ==/UserScript==
window.onload = function(){
document.getElementById('close-cookies').click();
};
waitForKeyElements('div.survey16', removeSurvey);
function removeSurvey() {
document.getElementById('survey16').hide();
}
$('.chat-bot').hide();
если вы положили какой-нибудь 'console.log', то он зашел в консоль? что, если вы удалите некоторые '@ require' –