ProcessOn-VIP

优雅地解锁ProcessOn

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey, Greasemonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

You will need to install an extension such as Tampermonkey to install this script.

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey किंवा Violentmonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला Tampermonkey यासारखे एक्स्टेंशन इंस्टॉल करावे लागेल..

ही स्क्रिप्ट इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्क्रिप्ट व्यवस्थापक एक्स्टेंशन इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्क्रिप्ट व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला Stylus सारखे एक्स्टेंशन इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

ही स्टाईल इंस्टॉल करण्यासाठी तुम्हाला एक युझर स्टाईल व्यवस्थापक इंस्टॉल करावे लागेल.

(माझ्याकडे आधीच युझर स्टाईल व्यवस्थापक आहे, मला इंस्टॉल करू द्या!)

// ==UserScript==
// @name         ProcessOn-VIP
// @namespace    http://tampermonkey.net/
// @version      2024-09-05
// @description  优雅地解锁ProcessOn
// @author       涛之雨
// @match        *://www.processon.com/*
// @require      https://greasyfork.org/scripts/455943-ajaxhooker/code/ajaxHooker.js?version=1124435
// @icon         http://processon.com/favicon.ico
// @grant        none
// @run-at       document-start
// @license      WTFPL
// ==/UserScript==

/* global ajaxHooker*/
(function() {
    'use strict';
    ajaxHooker.hook(request => {
        if (request.url.endsWith('/user/privilege')) {
            request.response = res => {
                const json = JSON.parse(res.responseText);
                json.data.privilege.member=json.data.privilege.orgMember=true;
                res.responseText = JSON.stringify(json);
            };
        }
    });
    const id=setInterval(()=>{
        if(!window.$)return;
        const doms=window.$("li[tit='xmind'],li[tit='fmind'],li[tit='pdfHD'],li[type='pdfHD']");
        if(doms.length===0)return;
        doms.remove();
        clearInterval(id);
    },500);
    setTimeout(()=>clearInterval(id),100000);
    if(location.href.includes("diagraming")){
        const id=setInterval(()=>{
            if(!window.$)return;
            const doms=window.$(".po-watermark-input-container");
            if(doms.length===0)return;
            doms.remove();
            clearInterval(id);
        },500);
        setTimeout(()=>clearInterval(id),100000);
    }
})();