zoukankan      html  css  js  c++  java
  • R6900和NPS管理界面添加互相跳转链接(自用)

    // ==UserScript==
    // @name         R6900和NPS管理界面添加互相跳转链接(自用)
    // @namespace    https://www.cnblogs.com/nihaorz/
    // @version      1.0
    // @description  try to take over the world!
    // @author       Nihaorz
    // @include      *://wangrui027.asuscomm.com:44000/*
    // @include      *://wangrui027.asuscomm.com:45000/*
    // @include      *://192.168.50.1/*
    // @include      *://192.168.50.1:44000/*
    // @include      *://192.168.50.1:45000/*
    // @grant        none
    // ==/UserScript==
    
    (function() {
        'use strict';
    
        let port = location.port;
        if (port == 44000 || port == "") {
            // 当前是路由器管理界面
            let url = location.protocol + "//" + location.hostname + ":45000";
            let html = '<a href="' + url + '"><div style="margin-top:13px;margin-left:0px;min- unset;" class="titlebtn" align="center"><span style=" 114px;">NPS</span></div></a>';
            $(".navigation").before(html);
        } else if (port == 45000) {
            // 当前是NPC管理界面
            let url = location.protocol + "//" + location.hostname + ":44000";
            $(".welcome-message").append('<a href="' + url + '">R69000</a>');
        }
    
    })();
  • 相关阅读:
    vue.js 首屏优化
    ios判断是否有中文
    ios 7新特性
    NSDictionary的分类
    asiHttpRequst 超时代码判断
    ios中layoutsubview何时被调用
    ios中tableview的移动添加删除
    ios发布
    新浪博客中放大图片的做法
    ios中coredata
  • 原文地址:https://www.cnblogs.com/nihaorz/p/14377625.html
Copyright © 2011-2022 走看看