// ==UserScript== // @name 微信编辑器爆破 // @namespace https://greasyfork.org/users/734068 // @home-url https://greasyfork.org/zh-CN/scripts/421126 // @version 1.10 // @description 无视微信编辑器VIP限制,可以使用VIP排版(135,96,365,wxeditor,主编,壹伴) // @author Yim @ yeminch@qq.com // @match *://*.135editor.com/* // @match *://www.135editor.com/js/ueditor/dialogs/135editor/imgstyle.html* // @match *://bj.96weixin.com/* // @match *://www.wxeditor.com/* // @match *://www.zhubian.com/* // @match *://yibanbianji.com/* // @match *://www.365editor.com/* // @match https://mp.weixin.qq.com/cgi-bin/appmsg* // @match *://*.yibanbianji.com/* // @match *://www.xmyeditor.com/* // @run-at document-end // @grant unsafeWindow // @require https://cdn.jsdelivr.net/npm/jquery@1.11.3/dist/jquery.min.js // @downloadURL none // ==/UserScript== (function() { 'use strict'; // Your code here... let setting={ item:null, }; var lists=[]; function init(){ var host = window.location.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(); if(host.search(/yibanbianji.com/)>=0) initYB(); if(host.search(/weixin.qq.com/)>=0) initWXYB(); if(host.search(/www.xmyeditor.com/)>=0) initXMY2(); if(host.search(/www.365editor.com/)>=0) init365(); } function addStyle(cssText) { let a = document.createElement('style'); a.textContent = cssText; let doc = document.head || document.documentElement; doc.appendChild(a); } function init135(){ $('
强势插入
').appendTo('body').on('click',function(){ if(!setting.item) return false; var h=setting.item.find('._135editor').html(); if(h) unsafeWindow.current_editor.execCommand('inserthtml',h); }); setInterval(function(){ for (let key in unsafeWindow.$EDITORUI) { unsafeWindow.$EDITORUI[key].is_paid_user=true; unsafeWindow.$EDITORUI[key].editor.is_paid_user=true; unsafeWindow.$EDITORUI[key].isPaidUser=()=>{return true}; } },2000); $("body").on('mousemove',function(event){ var mouseX = event.pageX,mouseY = event.pageY; var ele = $(event.target).parents('li.style-item'); if(ele.length>0){ var y1 = ele.offset().top; var y2 = y1 + ele.height(); var x1 = ele.offset().left; var x2 = x1 + ele.width(); if( mouseX < x1 || mouseX > x2 || mouseY < y1 || mouseY > y2){ $('.ym_wx_plus_btn').hide(); setting.item=null; }else{ $('.ym_wx_plus_btn').css('left',(x2-120)+'px').css('top',(y1)+'px').show(); setting.item=ele; } }else{ if(!$(event.target).hasClass('ym_wx_plus_btn'))$('.ym_wx_plus_btn').hide(); } }); } 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(){ unsafeWindow.AlreadyLogin = true; unsafeWindow.localStorage.year=99; if($('#user_vip').length==0){ $('body').append('
'); }else{ $('#user_vip').attr('data-vip',4); } $('.rich_media_content').attr('data-vip',1); },2000); } function initYB(){ $('
强势插入
').appendTo('body').on('click',function(){ if(!setting.item) return false; var ue = UE.getEditor('ueditor-container'); var h=setting.item.find('.html-container').html(); if(h) ue.setContent(h, true); }); $("body").on('mousemove',function(event){ var mouseX = event.pageX,mouseY = event.pageY; var ele = $(event.target).parents('.material-item'); if(ele.length>0){ var y1 = ele.offset().top; var y2 = y1 + ele.height(); var x1 = ele.offset().left; var x2 = x1 + ele.width(); if( mouseX < x1 || mouseX > x2 || mouseY < y1 || mouseY > y2){ $('.ym_wx_plus_btn').hide(); setting.item=null; }else{ $('.ym_wx_plus_btn').css('left',(x2-120)+'px').css('top',(y1)+'px').show(); setting.item=ele; } }else{ if(!$(event.target).hasClass('ym_wx_plus_btn'))$('.ym_wx_plus_btn').hide(); } }); } function initWXYB(){ var wxybinit=false; $('
强势插入
').appendTo('body').on('click',function(){ if(!setting.item) return false; var h=setting.item.find('.html-container').html(); if(h) UE.instants["ueditorInstant0"].setContent(h,true); }); $("body").on('mousemove',function(event){ var mouseX = event.pageX,mouseY = event.pageY; var ele = $(event.target).parents('.material-item'); if(ele.length>0){ var y1 = ele.offset().top; var y2 = y1 + ele.height(); var x1 = ele.offset().left; var x2 = x1 + ele.width(); if( mouseX < x1 || mouseX > x2 || mouseY < y1 || mouseY > y2){ $('.ym_wx_plus_btn').hide(); setting.item=null; }else{ $('.ym_wx_plus_btn').css('left',(x2-120)+'px').css('top',(y1)+'px').show(); setting.item=ele; } }else{ if(!$(event.target).hasClass('ym_wx_plus_btn'))$('.ym_wx_plus_btn').hide(); } }); } function initXMY(){ setInterval(function(){ var e = localStorage.getItem("userinfo"); if(e){}else{ var d = new Date(); var date1 = d.getFullYear() + "-" +(d.getMonth() + 1) + "-" + d.getDate(); var date2 = d.getFullYear() + "" +(d.getMonth() + 1) + "" + d.getDate(); var userinfo={"id":1,"username":"","nickname":"noBody","mobile":"18888888888","mobile_bak":"","avatar":"","group_id":4,"team_grade_id":0,"team_expire_time":0,"compnay":"","label":"","birthday":0,"gender":0,"position":"","email":"","introduction":"","coin":9999999,"money":"99999.00","urlcode":"","inviter":"","login_type":"","font_setting":0,"expire_time":0,"readhelp":0,"is_disable":0,"is_delete":0,"create_time":date1+" 00:00:00","update_time":date1+" 00:00:00","province_id":0,"close_coin_prompt":1,"city_id":0,"area_id":0,"address":"","color":"","diy_category":"{\"scene\":\"\",\"industry\":\"\",\"template\":\"\"}","constellation_id":0,"qq":"","old_id":0,"sync_time":0,"inviter_id":0,"reminder":0,"is_reminder":0,"extend":"","reminder_time":0,"day_send":0,"default_font":"微软雅黑,Microsoft YaHei","code_img":"","leftposter":"[{\"id\":\"14\",\"num\":1,\"time\":\""+date2+"\"}]","logcode":"E38DFtpaEG","message_count":0,"color_array":[],"catelist":{"scene":"","industry":"","template":""}}; localStorage.setItem("userinfo", JSON.stringify(userinfo)); localStorage.setItem("ugroup", JSON.stringify({"id":4})); } },1000); setInterval(function(){ $('.L2-a-list').attr('data-vip',0).attr('data-coll',1); },2000); } function initXMY2(){ $('
强势插入
').appendTo('body').on('click',function(){ if(!setting.item) return false; var h=setting.item.find('.LB-sl-content').html(); if(h) ue.setContent(h, true); }); $("body").on('mousemove',function(event){ var mouseX = event.pageX,mouseY = event.pageY; var ele = $(event.target).parents('li.LB-sl-li'); if(ele.length>0){ var y1 = ele.offset().top; var y2 = y1 + ele.height(); var x1 = ele.offset().left; var x2 = x1 + ele.width(); if( mouseX < x1 || mouseX > x2 || mouseY < y1 || mouseY > y2){ $('.ym_wx_plus_btn').hide(); setting.item=null; }else{ $('.ym_wx_plus_btn').css('left',(x2-120)+'px').css('top',(y1)+'px').show(); setting.item=ele; } }else{ if(!$(event.target).hasClass('ym_wx_plus_btn'))$('.ym_wx_plus_btn').hide(); } }); } function init365(){ $('
强势插入
').appendTo('body').on('click',function(){ if(!setting.item) return false; var h=setting.item.find('.KolEditor').html(); if(h) UE.instants["ueditorInstant0"].setContent(h,true); }); $("body").on('mousemove',function(event){ var mouseX = event.pageX,mouseY = event.pageY; var ele = $(event.target).parents('.content-material .material-list'); if(ele.length>0){ var y1 = ele.offset().top; var y2 = y1 + ele.height(); var x1 = ele.offset().left; var x2 = x1 + ele.width(); if( mouseX < x1 || mouseX > x2 || mouseY < y1 || mouseY > y2){ $('.ym_wx_plus_btn').hide(); setting.item=null; }else{ $('.ym_wx_plus_btn').css('left',(x2-120)+'px').css('top',(y1)+'px').show(); setting.item=ele; } }else{ if(!$(event.target).hasClass('ym_wx_plus_btn'))$('.ym_wx_plus_btn').hide(); } }); } addStyle(` .ym_wx_plus_btn{position:absolute;display:none;left:0;top:5px;cursor:pointer;width:120px;height:30px;line-height:30px;background:#f00;color:#fff;text-align:center;z-index:99999999;} `); init(); })();