微信编辑器爆破

[请勿商用]无视微信编辑器VIP限制,可以使用VIP排版(135/365/96/zhubian/xmyeditor/wxeditor/yibanbianji/yiban.io)

  1. // ==UserScript==
  2. // @name 微信编辑器爆破
  3. // @namespace https://gf.qytechs.cn/users/734068
  4. // @homepage https://gitee.com/yeminch/yim-donate
  5. // @version 1.15
  6. // @description [请勿商用]无视微信编辑器VIP限制,可以使用VIP排版(135/365/96/zhubian/xmyeditor/wxeditor/yibanbianji/yiban.io)
  7. // @author Yim @ yeminch@qq.com
  8. // @match *://*.135editor.com/*
  9. // @match *://www.135editor.com/js/ueditor/dialogs/135editor/imgstyle.html*
  10. // @match *://bj.96weixin.com/*
  11. // @match *://www.wxeditor.com/*
  12. // @match *://www.zhubian.com/*
  13. // @match *://yibanbianji.com/*
  14. // @match *://www.365editor.com/*
  15. // @match https://mp.weixin.qq.com/cgi-bin/appmsg*
  16. // @match *://*.yibanbianji.com/*
  17. // @match *://www.xmyeditor.com/*
  18. // @run-at document-end
  19. // @grant unsafeWindow
  20. // @require https://cdn.jsdelivr.net/npm/jquery@1.11.3/dist/jquery.min.js
  21. // ==/UserScript==
  22.  
  23. (function() {
  24. 'use strict';
  25. // Your code here...
  26. let setting={
  27. item:null,
  28. type:1,
  29. };
  30. var lists=[];
  31. function init(){
  32. var host = window.location.host;
  33. if(host.search(/www.135editor.com/)>=0) init135();
  34. if(host.search(/bj.96weixin.com/)>=0) init96();
  35. if(host.search(/www.wxeditor.com/)>=0) initYD();
  36. if(host.search(/www.zhubian.com/)>=0) initZB();
  37. if(host.search(/yibanbianji.com/)>=0) initYB();
  38. if(host.search(/weixin.qq.com/)>=0) initWXYB();
  39. if(host.search(/www.xmyeditor.com/)>=0) initXMY2();
  40. if(host.search(/www.365editor.com/)>=0) init365();
  41. }
  42. function addStyle(cssText) {
  43. let a = document.createElement('style');
  44. a.textContent = cssText;
  45. let doc = document.head || document.documentElement;
  46. doc.appendChild(a);
  47. }
  48. function init135(){
  49. $('<div class="ym_wx_plus_btn">强势插入</div>').appendTo('body').on('click',function(){
  50. if(!setting.item) return false;
  51. var h;
  52. var ue = unsafeWindow.top.UE.getEditor('WxMsgContent');
  53. if(setting.type==1){
  54. h = setting.item.find('._135editor').html();
  55. }else if(setting.type==2){
  56. h = setting.item.html();
  57. unsafeWindow.window.top.$("#preview_modal_").hide();
  58. }
  59. if(h) ue.setContent(h, true);
  60. });
  61. $("body").on('mousemove',function(event){
  62. var mouseX = event.pageX,mouseY = event.pageY;
  63. var ele,x1,x2,y1,y2;
  64. if($(event.target).attr("id")=="template-modal"){
  65. ele = $(event.target);
  66. y1 = ele.offset().top;
  67. y2 = y1 + ele.height();
  68. x1 = ele.offset().left;
  69. x2 = x1 + ele.width();
  70. setting.type=2;
  71. setting.item=$(".l-img .Content-body");
  72. $('.ym_wx_plus_btn').css('left','auto').css('right','20px').css('top',(y1+50)+'px').show();
  73. }else{
  74. ele = $(event.target).parents('li.style-item');
  75. if(ele.length<=0) ele = $(event.target).parents('li.vip-style');
  76. if(ele.length>0){
  77. y1 = ele.offset().top;
  78. y2 = y1 + ele.height();
  79. x1 = ele.offset().left;
  80. x2 = x1 + ele.width();
  81. if( mouseX < x1 || mouseX > x2 || mouseY < y1 || mouseY > y2){
  82. unsafeWindow.window.top.$('.ym_wx_plus_btn').hide();
  83. setting.item=null;
  84. }else{
  85. unsafeWindow.window.top.$('.ym_wx_plus_btn').css('left',(x2-90)+'px').css('top',(y1+5)+'px').show();
  86. setting.type=1;
  87. setting.item=ele;
  88. }
  89. }else{
  90. if(!$(event.target).hasClass('ym_wx_plus_btn'))unsafeWindow.window.top.$('.ym_wx_plus_btn').hide();
  91. }
  92. }
  93. });
  94. }
  95. function init96(){
  96. setInterval(function(){
  97. $('.rich_media_content').attr('data-vip',1);
  98. },2000);
  99. }
  100. function initYD(){
  101. setInterval(function(){
  102. $('.yead_editor').attr('data-use',1);
  103. },2000);
  104. }
  105. function initZB(){
  106. setInterval(function(){
  107. unsafeWindow.AlreadyLogin = true;
  108. unsafeWindow.localStorage.year=99;
  109. if($('#user_vip').length==0){
  110. $('body').append('<div style="display:none"><div id="user_vip" data-vip="4"></div></div>');
  111. }else{
  112. $('#user_vip').attr('data-vip',4);
  113. }
  114. $('.rich_media_content').attr('data-vip',1);
  115. },2000);
  116. }
  117. function initYB(){
  118. $('<div class="ym_wx_plus_btn">强势插入</div>').appendTo('body').on('click',function(){
  119. if(!setting.item) return false;
  120. var ue = UE.getEditor('ueditor-container');
  121. var h;
  122. if(setting.type==2){
  123. h=setting.item.children().eq(0).prop('outerHTML');
  124. }else if(setting.type==3){
  125. h=setting.item.find('.template-set').html();
  126. setting.item.find('.close-icon').trigger('click');
  127. }else{
  128. h=setting.item.find('.html-container').html();
  129. }
  130. if(h) ue.setContent(h, true);
  131. });
  132. $("body").on('mousemove',function(event){
  133. var mouseX = event.pageX,mouseY = event.pageY;
  134. var ele,x1,x2,y1,y2;
  135. if($(event.target).parents('.material-item').length>0){
  136. ele = $(event.target).parents('.material-item');
  137. y1 = ele.offset().top;
  138. y2 = y1 + ele.height();
  139. x1 = ele.offset().left;
  140. x2 = x1 + ele.width();
  141. if( mouseX < x1 || mouseX > x2 || mouseY < y1 || mouseY > y2){
  142. $('.ym_wx_plus_btn').hide();
  143. setting.item=null;
  144. }else{
  145. $('.ym_wx_plus_btn').css('left',(x2-90)+'px').css('top',(y1+5)+'px').show();
  146. setting.item=ele;
  147. setting.type=1;
  148. }
  149. }else if($(event.target).parents('.img-list-ul').length>0){
  150. ele = $(event.target).parents('li');
  151. setting.type=2;
  152. y1 = ele.offset().top;
  153. y2 = y1 + ele.height();
  154. x1 = ele.offset().left;
  155. x2 = x1 + ele.width();
  156. if( mouseX < x1 || mouseX > x2 || mouseY < y1 || mouseY > y2){
  157. $('.ym_wx_plus_btn').hide();
  158. setting.item=null;
  159. }else{
  160. $('.ym_wx_plus_btn').css('left',(x2-90)+'px').css('top',(y1+2)+'px').show();
  161. setting.item=ele;
  162. }
  163. }else if($(event.target).parents('.part-style-template').length>0){
  164. ele = $(event.target).parents('.style-template-item');
  165. setting.type=1;
  166. y1 = ele.offset().top;
  167. y2 = y1 + ele.height();
  168. x1 = ele.offset().left;
  169. x2 = x1 + ele.width();
  170. if( mouseX < x1 || mouseX > x2 || mouseY < y1 || mouseY > y2){
  171. $('.ym_wx_plus_btn').hide();
  172. setting.item=null;
  173. }else{
  174. $('.ym_wx_plus_btn').css('left',(x2-90)+'px').css('top',(y1+2)+'px').show();
  175. setting.item=ele;
  176. }
  177. }else if($(event.target).parents('.template-set-preview').length>0){
  178. ele = $(event.target).parents('.template-set-preview');
  179. setting.type=3;
  180. y1 = ele.offset().top;
  181. y2 = y1 + ele.height();
  182. x1 = ele.offset().left;
  183. x2 = x1 + ele.width();
  184. if( mouseX < x1 || mouseX > x2 || mouseY < y1 || mouseY > y2){
  185. $('.ym_wx_plus_btn').hide();
  186. setting.item=null;
  187. }else{
  188. $('.ym_wx_plus_btn').css('left',(x1+10)+'px').css('top',(y1+5)+'px').show();
  189. setting.item=ele;
  190. }
  191. }else{
  192. if(!$(event.target).hasClass('ym_wx_plus_btn'))$('.ym_wx_plus_btn').hide();
  193. }
  194. });
  195. }
  196. function initWXYB(){
  197. var wxybinit=false;
  198. $('<div class="ym_wx_plus_btn">强势插入</div>').appendTo('body').on('click',function(){
  199. if(!setting.item) return false;
  200. var h;
  201. if(setting.type==2){
  202. h=setting.item.children().eq(1).prop('outerHTML');
  203. }else if(setting.type==3){
  204. h=setting.item.find('.dynamic-material-html-container').html();
  205. }else if(setting.type==4){
  206. h=setting.item.find('.template-set').html();
  207. setting.item.find('.close-icon').trigger('click');
  208. }else if(setting.type==5){
  209. //长图需要跨域通信 懒得弄
  210. //var ue = unsafeWindow.top.UE.getEditor('WxMsgContent');
  211. //h=setting.item.find('.editor-canvas').html();
  212. //unsafeWindow.window.top.$('.gaoding-editor-iframe-dialog').prev('div').remove();
  213. //unsafeWindow.window.top.$('.gaoding-editor-iframe-dialog').remove();
  214. }else{
  215. h=setting.item.find('.html-container').not('.mpa-hide').html();
  216. }
  217. if(h) UE.instants["ueditorInstant0"].setContent(h,true);
  218. });
  219.  
  220. $("body").on('mousemove',function(event){
  221. var mouseX = event.pageX,mouseY = event.pageY;
  222. var ele,x1,x2,y1,y2;
  223. ele = $(event.target).parents('.material-item');
  224. if($(event.target).parents('.img-list-ul').length>0){
  225. ele = $(event.target).parents('li');
  226. y1 = ele.offset().top;
  227. y2 = y1 + ele.height();
  228. x1 = ele.offset().left;
  229. x2 = x1 + ele.width();
  230. if( mouseX < x1 || mouseX > x2 || mouseY < y1 || mouseY > y2){
  231. $('.ym_wx_plus_btn').hide();
  232. setting.item=null;
  233. }else{
  234. $('.ym_wx_plus_btn').css('left',(x2-90)+'px').css('top',(y1+2)+'px').show();
  235. setting.item=ele;
  236. setting.type=2;
  237. }
  238. }else if($(event.target).parents('.material-item.material-item-svg').length>0){
  239. y1 = ele.offset().top;
  240. y2 = y1 + ele.height();
  241. x1 = ele.offset().left;
  242. x2 = x1 + ele.width();
  243. if( mouseX < x1 || mouseX > x2 || mouseY < y1 || mouseY > y2){
  244. $('.ym_wx_plus_btn').hide();
  245. setting.item=null;
  246. }else{
  247. $('.ym_wx_plus_btn').css('left',(x2-150)+'px').css('top',(y1+25)+'px').show();
  248. setting.item=ele;
  249. setting.type=3;
  250. }
  251. }else if($(event.target).parents('.material-item.style-template-item').length>0){
  252. if(! ele.hasClass('part-template-item')){
  253. $('.ym_wx_plus_btn').hide();
  254. setting.item=null;
  255. return;
  256. }
  257. y1 = ele.offset().top;
  258. y2 = y1 + ele.height();
  259. x1 = ele.offset().left;
  260. x2 = x1 + ele.width();
  261. if( mouseX < x1 || mouseX > x2 || mouseY < y1 || mouseY > y2){
  262. $('.ym_wx_plus_btn').hide();
  263. setting.item=null;
  264. }else{
  265. $('.ym_wx_plus_btn').css('left',(x2-90)+'px').css('top',(y1+5)+'px').show();
  266. setting.item=ele;
  267. setting.type=1;
  268. }
  269. }else if($(event.target).parents('.material-item').length>0){
  270. y1 = ele.offset().top;
  271. y2 = y1 + ele.height();
  272. x1 = ele.offset().left;
  273. x2 = x1 + ele.width();
  274. if( mouseX < x1 || mouseX > x2 || mouseY < y1 || mouseY > y2){
  275. $('.ym_wx_plus_btn').hide();
  276. setting.item=null;
  277. }else{
  278. $('.ym_wx_plus_btn').css('left',(x2-90)+'px').css('top',(y1+5)+'px').show();
  279. setting.item=ele;
  280. setting.type=1;
  281. }
  282. }else if($(event.target).parents('.template-set-preview').length>0){
  283. ele = $(event.target).parents('.template-set-preview');
  284. y1 = ele.offset().top;
  285. y2 = y1 + ele.height();
  286. x1 = ele.offset().left;
  287. x2 = x1 + ele.width();
  288. if( mouseX < x1 || mouseX > x2 || mouseY < y1 || mouseY > y2){
  289. $('.ym_wx_plus_btn').hide();
  290. setting.item=null;
  291. }else{
  292. $('.ym_wx_plus_btn').css('left',(x2-180)+'px').css('top',(y1+25)+'px').show();
  293. setting.item=ele;
  294. setting.type=4;
  295. }
  296. }else if($(event.target).parents('.design-editor').length>0){
  297. $('.ym_wx_plus_btn').hide();
  298. return;
  299. ele = $(event.target).parents('.design-editor');
  300. y1 = ele.offset().top;
  301. y2 = y1 + ele.height();
  302. x1 = ele.offset().left;
  303. x2 = x1 + ele.width();
  304. if( mouseX < x1 || mouseX > x2 || mouseY < y1 || mouseY > y2){
  305. $('.ym_wx_plus_btn').hide();
  306. setting.item=null;
  307. }else{
  308. $('.ym_wx_plus_btn').css('left',(x2-180)+'px').css('top',(y1+25)+'px').show();
  309. setting.item=ele;
  310. setting.type=5;
  311. }
  312. }else{
  313. if(!$(event.target).hasClass('ym_wx_plus_btn'))$('.ym_wx_plus_btn').hide();
  314. }
  315. });
  316. }
  317. function initXMY2(){
  318. $('<div class="ym_wx_plus_btn">强势插入</div>').appendTo('body').on('click',function(){
  319. if(!setting.item) return false;
  320. var h=setting.item.find('.LB-sl-content').html().replace(/class="xmyedltor"/g,'class="xmyeditor"').replace(/data-xmy="xmyeditor.com"/g, '');//.replace(/<div/g,'<section').replace(/<\/div>/,'</section>');
  321. if(h) ue.setContent(h, true);
  322. });
  323. $("body").on('mousemove',function(event){
  324. var mouseX = event.pageX,mouseY = event.pageY;
  325. var ele = $(event.target).parents('li.LB-sl-li');
  326. if(ele.length>0){
  327. var y1 = ele.offset().top;
  328. var y2 = y1 + ele.height();
  329. var x1 = ele.offset().left;
  330. var x2 = x1 + ele.width();
  331. if( mouseX < x1 || mouseX > x2 || mouseY < y1 || mouseY > y2){
  332. $('.ym_wx_plus_btn').hide();
  333. setting.item=null;
  334. }else{
  335. $('.ym_wx_plus_btn').css('left',(x2-90)+'px').css('top',(y1)+'px').show();
  336. setting.item=ele;
  337. }
  338. }else{
  339. if(!$(event.target).hasClass('ym_wx_plus_btn'))$('.ym_wx_plus_btn').hide();
  340. }
  341. });
  342. }
  343. function init365(){
  344. $('<div class="ym_wx_plus_btn">强势插入</div>').appendTo('body').on('click',function(){
  345. if(!setting.item) return false;
  346. var h;
  347. if(setting.type==1) h=setting.item.find('.KolEditor').html();
  348. else if(setting.type==2){
  349. h= setting.item.children().eq(2).prop('outerHTML');
  350. $('.phone-perview-inner .close-btn').trigger('click');
  351. }
  352. if(h) UE.instants["ueditorInstant0"].setContent(h,true);
  353. $('.ym_wx_plus_btn').hide();
  354. });
  355.  
  356. $("body").on('mousemove',function(event){
  357. var mouseX = event.pageX,mouseY = event.pageY;
  358. var ele,x1,x2,y1,y2;
  359. ele = $(event.target).parents('.content-material .material-list');
  360. if(ele.length>0){
  361. setting.type=1;
  362. y1 = ele.offset().top;
  363. y2 = y1 + ele.height();
  364. x1 = ele.offset().left;
  365. x2 = x1 + ele.width();
  366. if( mouseX < x1 || mouseX > x2 || mouseY < y1 || mouseY > y2){
  367. $('.ym_wx_plus_btn').hide();
  368. setting.item=null;
  369. }else{
  370. $('.ym_wx_plus_btn').css('left',(x2-90)+'px').css('top',(y1)+'px').show();
  371. setting.item=ele;
  372. }
  373. }else{
  374. ele = $(event.target).parents('.phone-perview-inner .preview-body');
  375. if(ele.length>0){
  376. y1 = ele.offset().top;
  377. y2 = y1 + ele.height();
  378. x1 = ele.offset().left;
  379. x2 = x1 + ele.width();
  380. setting.type=2;
  381. setting.item=ele;
  382. $('.ym_wx_plus_btn').css('left',(x2-150)+'px').css('top',(y1+5)+'px').show();
  383. }else{
  384. if(!$(event.target).hasClass('ym_wx_plus_btn'))$('.ym_wx_plus_btn').hide();
  385. }
  386. }
  387. });
  388. }
  389. addStyle(`
  390. .ym_wx_plus_btn{position:absolute;display:none;left:0;top:5px;cursor:pointer;width:90px;height:30px;line-height:30px;background:#f00;color:#fff;text-align:center;z-index:99999999;}
  391. `);
  392. init();
  393. })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址