V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
通过以下 Referral 链接购买 DigitalOcean 主机,你将可以帮助 V2EX 持续发展
DigitalOcean - SSD Cloud Servers
gs038538
V2EX  ›  VPS

油猴脚本咋写呢?升级 linode 配置的~~~

  •  
  •   gs038538 · 2015-05-15 22:57:33 +08:00 · 374 次点击
    这是一个创建于 3472 天前的主题,其中的信息可能已经有所发展或是发生改变。
    网页源码是~~~~

    <td width="50%" valign="top">
    <h2 style="color: black">Choose your new plan</h2>

    <span style="line-height: 150%">

    <input type="radio" name="planTag" value="linode1024.4" id="linode1024.4"><label for="linode1024.4">Linode 1024</label><br>

    <input type="radio" name="planTag" value="linode2048.4" id="linode2048.4" disabled><label for="linode2048.4"><strike>Linode 2048</strike></label> (current plan)<br>

    <input type="radio" name="planTag" value="linode4096.4" id="linode4096.4"><label for="linode4096.4">Linode 4096</label><br>

    <input type="radio" name="planTag" value="linode8192.4" id="linode8192.4"><label for="linode8192.4">Linode 8192</label><br>

    <input type="radio" name="planTag" value="linode16384.4" id="linode16384.4"><label for="linode16384.4">Linode 16384</label><br>

    <input type="radio" name="planTag" value="linode32768.4" id="linode32768.4"><label for="linode32768.4">Linode 32768</label><br>

    <input type="radio" name="planTag" value="linode49152.4" id="linode49152.4"><label for="linode49152.4">Linode 49152</label><br>

    <input type="radio" name="planTag" value="linode65536.4" id="linode65536.4"><label for="linode65536.4">Linode 65536</label><br>

    <input type="radio" name="planTag" value="linode98304.4" id="linode98304.4"><label for="linode98304.4">Linode 98304</label><br>

    </span>

    <br>
    <input type="submit" class="button" name="doit" value="Resize this Linode Now!" onClick="return confirm('Immediately shut down, migrate your Linode, and invoice this account for the difference?')">

    </td>



    需要选中 <input type="radio" name="planTag" value="linode2048.4" id="linode2048.4" disabled>
    然后 <input type="submit" class="button" name="doit" value="Resize this Linode Now!" onClick="return confirm('Immediately shut down, migrate your Linode, and invoice this account for the difference?')">
    然后对话框提示 onClick="return confirm('Immediately shut down, migrate your Linode, and invoice this account for the difference? 要点确认~~

    重复以上步骤直到刷出来~~~


    参考脚本如下,肯定是错误的,不知道怎么修改成正确的~~求大大指点。
    谢谢!

    // ==UserScript==
    // @name UP Linode Tokyo
    // @namespace UP Linode Tokyo
    // @description UP Linode Tokyo
    // @match https://manager.linode.com/linodes/resize/****
    // @version 0.1
    // @copyright 2015, v2ex
    // ==/UserScript==

    function YTFunc() {
    try {
    document.getElementById('linode2048.4').checked = true;
    document.getElementById('Resize').submit()
    }
    catch (e) { }
    }
    window.setTimeout(YTFunc, 3000);
    第 1 条附言  ·  2015-07-24 13:03:18 +08:00
    我出来挖坟了。
    木有懂油猴的V友吗,帮帮忙呗~~~~
    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2898 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 06:29 · PVG 14:29 · LAX 22:29 · JFK 01:29
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.