PCO People Changes

Enhancements to PCO People

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

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

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

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

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

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

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

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

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

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

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

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

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

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

// ==UserScript==
// @name         PCO People Changes
// @namespace    PCOPeopleChanges
// @include      https://people.planningcenteronline.*
// @author       Montana Selman
// @description  Enhancements to PCO People
// @version      0.1
// @require      http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js
// @require      https://greasyfork.org/scripts/1003-wait-for-key-elements/code/Wait%20for%20key%20elements.js?version=49342
// @grant        GM_addStyle
// ==/UserScript==


/*--- ALL OF PEOPLE ---*/

/*--- LISTS CHANGES ---*/
    waitForKeyElements ("a[href='/lists/new']",addReportsBtn);
    function addReportsBtn (jNode) {jNode.before('<a class="btn btn--primary btn--outline btn--small palm-btn--full btn-item" href="/reports">Reports</a>');}

    waitForKeyElements ("a[data-modal-url='/reports/new']",addListsBtn);
    function addListsBtn (jNode) {jNode.before('<a class="btn btn--primary btn--outline btn--small palm-btn--full btn-item" href="/lists">Lists</a>');}

/*--- SPECIFIC LIST CHANGES ---*/
    waitForKeyElements ("a[title='Print List']",changePrintBtn);
    function changePrintBtn (jNode) {
        jNode.attr("title", "Report Export");
    }

    waitForKeyElements ("form[id='print_list']",changePrintModal);
    function changePrintModal (jNode) {$('h1.modal-title').text('Export to PDF or HTML');}