Skip to content

Instantly share code, notes, and snippets.

@shui
Last active April 8, 2021 14:53

Revisions

  1. shui revised this gist Nov 5, 2020. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions ustcmail-change-default-domain.user.js
    Original file line number Diff line number Diff line change
    @@ -5,6 +5,8 @@
    // @description USTCmail修改默认邮箱域名为mail.ustc.edu.cn,以及使用SSL登录
    // @author shui
    // @homepageURL https://gist.github.com/shui/77de1eb522e37ec41249c6ab5232ad8d
    // @downloadURL https://gist.github.com/shui/77de1eb522e37ec41249c6ab5232ad8d/raw/ustcmail-change-default-domain.user.js
    // @updateURL https://gist.github.com/shui/77de1eb522e37ec41249c6ab5232ad8d/raw/ustcmail-change-default-domain.user.js
    // @match http*://mail.ustc.edu.cn/
    // @match http*://email3.ustc.edu.cn/
    // @grant unsafeWindow
  2. shui renamed this gist Nov 5, 2020. 1 changed file with 3 additions and 2 deletions.
    Original file line number Diff line number Diff line change
    @@ -1,9 +1,10 @@
    // ==UserScript==
    // @name USTCmail修改默认邮箱域名为mail.ustc.edu.cn
    // @namespace http://tampermonkey.net/
    // @namespace https://gist.github.com/shui
    // @version 0.1
    // @description USTCmail修改默认邮箱域名为mail.ustc.edu.cn,以及使用SSL登录
    // @author You
    // @author shui
    // @homepageURL https://gist.github.com/shui/77de1eb522e37ec41249c6ab5232ad8d
    // @match http*://mail.ustc.edu.cn/
    // @match http*://email3.ustc.edu.cn/
    // @grant unsafeWindow
  3. shui created this gist Nov 5, 2020.
    16 changes: 16 additions & 0 deletions ustcmail-change-default-domain.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,16 @@
    // ==UserScript==
    // @name USTCmail修改默认邮箱域名为mail.ustc.edu.cn
    // @namespace http://tampermonkey.net/
    // @version 0.1
    // @description USTCmail修改默认邮箱域名为mail.ustc.edu.cn,以及使用SSL登录
    // @author You
    // @match http*://mail.ustc.edu.cn/
    // @match http*://email3.ustc.edu.cn/
    // @grant unsafeWindow
    // ==/UserScript==

    var $ = unsafeWindow.jQuery;
    // 修改默认域名为mail.ustc.edu.cn
    $("#domainVal").html("mail.ustc.edu.cn");
    // 强制使用SSL登录
    $("input[name='useSSL']").prop('checked', true);