HipChat / Jitsi Meet - Please rate your meeting experience (Click Cancel)

Automatically cancels the meeting experience rating dialog in HipChat or Jitsi Meet

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name          HipChat / Jitsi Meet - Please rate your meeting experience (Click Cancel)
// @description   Automatically cancels the meeting experience rating dialog in HipChat or Jitsi Meet
// @include       https://hipchat.me/*
// @include       https://meet.jit.si/*
// @match         https://hipchat.me/*
// @match         https://meet.jit.si/*
// @version       0.2
// @namespace https://greasyfork.org/users/77886
// @require  http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js
// @require  https://greasyfork.org/scripts/5392-waitforkeyelements/code/WaitForKeyElements.js?version=115012
// ==/UserScript==

function clickSubmitBtnWhenItAppears (jNode) {
    var clickEvent  = document.createEvent ('MouseEvents');
    clickEvent.initEvent ('click', true, true);
    jNode[0].dispatchEvent (clickEvent);
}
function clickTheCancelButton () {
    // <button class="button-control jqibutton " name="jqi_state0_buttonspandatai18ndialogCancelCancelspan" value="false"><span data-i18n="dialog.Cancel">Cancel</span></button>
    waitForKeyElements (
    	"button[name='jqi_state0_buttonspandatai18ndialogCancelCancelspan']",
	clickSubmitBtnWhenItAppears
    );
}

// <h2 class="aui-dialog2-header-main" data-i18n="dialog.rateExperience">Please rate your meeting experience.</h2>
waitForKeyElements (
    "h2[data-i18n='dialog.rateExperience']",
    clickTheCancelButton
);