telToGVConnect

Convert tel: links to gvconnect:// format

// ==UserScript==
// @name         telToGVConnect
// @namespace    http://visideas.com/
// @version      0.1
// @description  Convert tel: links to gvconnect:// format
// @author       David Morlitz
// @include      *
// @license      MIT
// @grant        none
// @run-at       document-end
// ==/UserScript==

(function() {
    'use strict';

    // Your code here...
    var anchors = document.getElementsByTagName("a");
    for (var i = 0; i < anchors.length; i++) {
        var oldhref=anchors[i].href;
        if (oldhref.substr(0,4)=='tel:') {
           anchors[i].href=oldhref.replace(/tel:/g, 'gvconnect://call?callmethod=DirectCall&number=');
        }
    }
})();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址