// ==UserScript== // @name url自动追加端口 // @namespace http://tampermonkey.net/ // @version 0.1 // @description try to take over the world! // @author You // @match *://139.159.207.40/* // @icon https://www.google.com/s2/favicons?sz=64&domain=207.40 // @grant none // ==/UserScript== (function() { 'use strict'; let url = window.location.href; if(url.indexOf("139.159.207.40:29080")>=0){ //已经有端口了 }else{ url=url.replaceAll("139.159.207.40","139.159.207.40:29080"); //alert(url); window.location.replace(url); } //http://139.159.207.40:29080/broker/backend-v2/broker-common-framework/-/tree/84e40071b33de33ae7c170c01cbfb9735ddd3633 // Your code here... })();