Skip to content

Commit

Permalink
feat: 兼容多个网站
Browse files Browse the repository at this point in the history
  • Loading branch information
yangzhenze committed Jul 4, 2022
1 parent cffc33e commit a87a8bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions xueqiu_xmp_halper.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// @namespace https://github.com/Distringer/monkeyjs/blob/main/xueqiu_xmp_halper.js
// @description 将雪球上的 xmp url 转化为可操作组件
// @author yangzhenze
// @version 20220704.1
// @version 20220704.1.2
// @match http://xueqiu.com/*
// @match https://xueqiu.com/*
// @license MIT License
Expand All @@ -13,7 +13,7 @@
var allAElement = document.getElementsByTagName("a");
for (var i = 0; i < allAElement.length; i++) {
var aElement = allAElement[i];
if (aElement.href.includes("xmp-test.titanplus.cn")) {
if (aElement.href.includes("xmp") || aElement.href.includes("vmp")) {
var iframe = IFRAME({ src: aElement.href, width: "100%", height: "500" });
aElement.parentNode.insertBefore(iframe, aElement.nextSibling);
var br = BR();
Expand Down

0 comments on commit a87a8bf

Please sign in to comment.