Greasy Fork

Greasy Fork is available in English.

135编辑器VIP采集

在用户打开135编辑器、96编辑器、主编编辑器、易点编辑器vip限制,获取VIP模版脚本.

当前为 2023-05-17 提交的版本,查看 最新版本

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Greasemonkey 油猴子Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Violentmonkey 暴力猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴Userscripts ,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey 篡改猴,才能安装此脚本。

您需要先安装一款用户脚本管理器扩展后才能安装此脚本。

(我已经安装了用户脚本管理器,让我安装!)

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展,比如 Stylus,才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

您需要先安装一款用户样式管理器扩展后才能安装此样式。

(我已经安装了用户样式管理器,让我安装!)

// ==UserScript==
// @name         135编辑器VIP采集
// @namespace    http://tampermonkey.net/
// @version      1.0.0
// @author       xkloveme
// @description  在用户打开135编辑器、96编辑器、主编编辑器、易点编辑器vip限制,获取VIP模版脚本.
// @icon         https://www.135editor.com/favicon.ico
// @homepage     https://github.com/xkloveme
// @homepageURL  https://github.com/xkloveme/135edit-monkey
// @match        *://*.135editor.com*
// @match        *://*.135editor.com/*
// @match        *://bj.96weixin.com*
// @match        *://www.wxeditor.com*
// @match        *://www.zhubian.com*
// @require      https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.min.js
// ==/UserScript==

(function ($) {
  'use strict';

  window.onload = function() {
    var host = window.location.host;
    switch (host) {
      case "www.135editor.com":
        styleClick();
        break;
      case "bj.96weixin.com":
        hack_96_ZB();
        break;
      case "www.zhubian.com":
        hack_96_ZB();
        break;
      case "www.wxeditor.com":
        hackED();
        break;
    }
    function styleClick() {
      $(".editor-template-list > li").each(function() {
        $(this).attr("goumai", 1);
        $(this).attr("data-paid", 1);
        $(this).attr("data-id", "126887");
        $(this).removeClass("vip-style");
      });
    }
    function hack_96_ZB() {
      $("div").click(function(e) {
        $(".rich_media_content").attr("data-vip", "1");
      });
    }
    function hackED() {
      $("div").click(function(e) {
        $(".yead_editor").attr("data-use", "1");
      });
    }
    window.style_click = window.show_role_vip_dialog = function() {
    };
    window.get_vip_roles = function() {
      return [9];
    };
    window.initVipAds = function() {
      return true;
    };
    var observer = new MutationObserver(function(mutations) {
      styleClick();
    });
    var target = document.querySelector("ul.editor-template-list");
    observer.observe(target, {
      childList: true,
      // 观察子元素的变化
      subtree: false,
      // 观察后代元素的变化
      attributes: false,
      // 观察属性的变化
      characterData: false
      // 观察文本内容的变化
    });
    window.onbeforeunload = function(e) {
      return null;
    };
  };
  $("#add_xiaoshi").hide();
  $(".category-nav.editor-nav>.nav-item:nth-last-child(-n+2)").hide();
  $("#fixed-side-bar li:not(#function-settings), #fixed-bar-pack-up").hide();
  $("#editor-footer").hide();
  $("#user-login-dialog").hide();
  $("#top-style-tools").hide();
  $("#fixed-side-bar > ul > li:nth-child(5)").hide();
  $("#link-123 > div > div").hide();
  $("#nav-header > div > div.nav-box > div > ul > li:last-child").hide();
  $("#nav-header > div > div.nav-box > div > ul > li:nth-last-child(2)").hide();

})($);