Greasy Fork

微信编辑器爆破

无视微信编辑器VIP限制,可以使用VIP模板(135,96,wxeditor,主编)

目前为 2021-02-03 提交的版本。查看 最新版本

// ==UserScript==
// @name         微信编辑器爆破
// @namespace    http://tampermonkey.net/
// @version      1.1
// @description  无视微信编辑器VIP限制,可以使用VIP模板(135,96,wxeditor,主编)
// @author       Yim @ [email protected]
// @match        *://*.135editor.com
// @match        *://bj.96weixin.com
// @match        *://www.wxeditor.com
// @match        *://www.zhubian.com
// @run-at 		 document-end
// @grant    	 unsafeWindow
// @require		 https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.min.js
// ==/UserScript==

(function() {
    'use strict';
    // Your code here...
	let setting={
		item:null,
	};
    var lists=[];
	function init(){
		var host = window.location.host;
        console.log('Hack=>'+host);
		if(host.search(/www.135editor.com/)>=0) init135();
        if(host.search(/bj.96weixin.com/)>=0) init96();
        if(host.search(/www.wxeditor.com/)>=0) initYD();
        if(host.search(/www.zhubian.com/)>=0) initZB();
	}
	function addStyle(cssText) {
		let a = document.createElement('style');
		a.textContent = cssText;
		let doc = document.head || document.documentElement;
		doc.appendChild(a);
	}
	function init135(){
		setInterval(function(){
			$(".style-item").removeClass("vip-style").attr("data-paid",0).attr("data-id","");
			$("._135editor").attr("data-paid","0").attr("data-id","");
		},2000);
	}
    function init96(){
        setInterval(function(){
            $('.rich_media_content').attr('data-vip',1);
        },2000);
    }
    function initYD(){
        setInterval(function(){
            $('.yead_editor').attr('data-use',1);
        },2000);
    }
    function initZB(){
        setInterval(function(){
            $('.rich_media_content').attr('data-vip',1);
        },2000);
    }
	addStyle(`
	.ym_wx_plus_btn{position:absolute;display:none;left:0;top:0;cursor:pointer;width:120px;height:30px;line-height:30px;background:#f00;color:#fff;text-align:center;}
	`);
	init();
})();