anti social locker

Anti Social Locker plugin required user like or share before viewing content. If script doesn't work, please refresh the page to rebuild the cache and try again.

  1. // ==UserScript==
  2. // @name anti social locker
  3. // @name:vi anti social locker
  4. // @namespace http://baivong.github.io/
  5. // @description Anti Social Locker plugin required user like or share before viewing content. If script doesn't work, please refresh the page to rebuild the cache and try again.
  6. // @description:vi Loại bỏ bảng Social Locker mà bắt buộc người dùng nhấn thích hoặc chia sẻ trước khi xem nội dung. Nếu script không hoạt động, hãy thử tải lại trang web.
  7. // @version 1.1.4
  8. // @icon http://i.imgur.com/nOuUrIW.png
  9. // @author Zzbaivong
  10. // @oujs:author baivong
  11. // @license MIT; https://baivong.mit-license.org/license.txt
  12. // @match http://*/*
  13. // @match https://*/*
  14. // @require https://code.jquery.com/jquery-3.3.1.slim.min.js
  15. // @noframes
  16. // @supportURL https://github.com/lelinhtinh/Userscript/issues
  17. // @run-at document-start
  18. // @grant none
  19. // ==/UserScript==
  20.  
  21. (function(global) {
  22. 'use strict';
  23.  
  24. function setCookie(cname, cvalue, exdays, path) {
  25. var domain = '',
  26. d = new Date();
  27. if (exdays) {
  28. d.setTime(d.getTime() + exdays * 24 * 60 * 60 * 1000);
  29. exdays = '; expires=' + d.toUTCString();
  30. }
  31. if (!path) path = '/';
  32. document.cookie = cname + '=' + cvalue + '; path=' + path + exdays + domain + ';';
  33. }
  34.  
  35. function getCookie(name) {
  36. var cname = name + '=',
  37. cpos = document.cookie.indexOf(cname),
  38. cstart,
  39. cend;
  40. if (cpos !== -1) {
  41. cstart = cpos + cname.length;
  42. cend = document.cookie.indexOf(';', cstart);
  43. if (cend === -1) cend = document.cookie.length;
  44. return decodeURIComponent(document.cookie.substring(cstart, cend));
  45. }
  46. return null;
  47. }
  48.  
  49. function addstyle(aCss) {
  50. if (document.getElementById('anti_social_locker_style') !== null) return;
  51. var head = document.head;
  52. if (!head) return;
  53. var style = document.createElement('style');
  54. style.id = 'anti_social_locker_style';
  55. style.setAttribute('type', 'text/css');
  56. style.textContent = aCss;
  57. head.appendChild(style);
  58. return style;
  59. }
  60.  
  61. function antiSocialLocker() {
  62. // Panda Lockers (https://codecanyon.net/item/optin-panda-for-wordpress/10224279)
  63. // Social Locker for Wordpress (https://codecanyon.net/item/social-locker-for-wordpress/3667715)
  64. // Social Locker for jQuery (https://codecanyon.net/item/social-locker-for-jquery/3408941)
  65. (function() {
  66. if (
  67. !document.querySelectorAll('.onp-sl-content').length &&
  68. !document.querySelectorAll('[data-lock-id]').length &&
  69. !document.querySelectorAll('[data-locker-id]').length
  70. )
  71. return;
  72. addstyle(
  73. '.onp-sl-content,[data-lock-id],[data-locker-id]{display:block!important}.onp-sl,.onp-sl-transparence-mode,.onp-sl-overlap-box,[id^="content-locker"]{display:none!important}.onp-sl-blur-area{filter:none!important}'
  74. );
  75. })();
  76.  
  77. // Social Share & Locker Pro Wordpress Plugin (http://codecanyon.net/item/social-share-locker-pro-wordpress-plugin/8137709)
  78. (function() {
  79. if (document.querySelector('.ism-locker') === null) return;
  80. addstyle(
  81. '[id^="indeed_locker_"]{display:none!important}[id^="indeed_locker_content_"]{filter:none!important;opacity:1!important;display:block!important}'
  82. );
  83. })();
  84.  
  85. if (!('jQuery' in global)) return;
  86.  
  87. // Easy Social Locker (https://codecanyon.net/item/easy-social-locker/6190651)
  88. (function($) {
  89. var $events = $._data(document, 'events'),
  90. $doc = $(document),
  91. str,
  92. cid;
  93.  
  94. if (!$events || !$events.esll_button_action) return;
  95.  
  96. $('script:not([src])').each(function() {
  97. var txt = this.textContent;
  98.  
  99. if (txt.indexOf('esll_data') !== -1 && txt.indexOf('esll_button_action') !== -1) {
  100. str = txt;
  101. return false;
  102. }
  103. });
  104.  
  105. if (str) cid = str.match(/var\scid\s?=\s?(\d+);/);
  106.  
  107. if (cid) {
  108. cid = cid[1];
  109. } else {
  110. cid = str.match(/\['(google|linkedin)(-share)?',\s?(\d+)\]/);
  111.  
  112. if (cid) {
  113. cid = cid[3];
  114. } else {
  115. cid = '0';
  116. }
  117. }
  118.  
  119. if (cid !== '0') {
  120. $doc.trigger('esll_button_action', ['facebook-share', cid]);
  121. } else {
  122. $doc.trigger('esll_button_action');
  123. }
  124. })(jQuery);
  125.  
  126. // ARSocial - Social Share & Social Locker (https://codecanyon.net/item/arsocial-social-share-social-locker/15218913)
  127. (function($) {
  128. var $pageId = $('#ars_page_id'),
  129. $lockId = $('#ars_locker_id'),
  130. $lockContents = $('.arsocialshare_locker_main_wrapper'),
  131. removeClass = 'ars_locked_full ars_locked_transparency ars_locked_blurring';
  132.  
  133. if (!$pageId.length || !$lockId.length || !$lockContents.length) return;
  134.  
  135. $lockContents.each(function() {
  136. var $this = $(this),
  137. $hidden = $('#' + $this.data('hidden-el'));
  138.  
  139. $hidden.removeClass(removeClass).show();
  140. $this.replaceWith($hidden);
  141. });
  142. })(jQuery);
  143.  
  144. // Viral Lock - Like, Google+1 or Tweet to Unlock (http://codecanyon.net/item/viral-lock-like-google1-or-tweet-to-unlock/1486602)
  145. // Viral Lock PHP - Like, Google+1 or Tweet to Unlock (http://codecanyon.net/item/viral-lock-php-like-google1-or-tweet-to-unlock/1632879)
  146. // Viral Coupon - Like, Tweet or G+ to get a Discount (http://codecanyon.net/item/viral-coupon-like-tweet-or-g-to-get-a-discount/2233568)
  147. (function($) {
  148. var $locked = $('.virallock-box, .virallocker-box, .virallocker-box-checkout'),
  149. host = global.location.host,
  150. str = '',
  151. pid,
  152. viralLock = /var\sdata\s?=\s?\{post:\s?"(\d+)",\s?action:/m,
  153. viralPHP = /"virallocker",\s?myID:\s?"(myid\d+)"\}/m,
  154. viralCoupon = /var\sdata\s?=\s?{\s?action:\s?"submit",\s?myID:\s?"(\d+)"\};/m,
  155. afterUnlock = function() {
  156. global.location.reload();
  157. },
  158. viralCookie;
  159.  
  160. if (!$locked.length) return;
  161.  
  162. $('script:not([src])').each(function() {
  163. var txt = this.textContent;
  164.  
  165. if (txt.indexOf('virallocker_use') !== -1 && txt.indexOf('jQuery.post') !== -1) {
  166. str = txt;
  167. return false;
  168. }
  169. });
  170.  
  171. if (str === '') return;
  172.  
  173. if (viralLock.test(str)) {
  174. pid = str.match(viralLock);
  175. if (!pid) return;
  176.  
  177. viralCookie = 'virallocker_' + pid[1];
  178. if (getCookie(viralCookie) !== null) return;
  179. setCookie(viralCookie, '0001', host);
  180.  
  181. afterUnlock();
  182. } else if (viralPHP.test(str)) {
  183. pid = str.match(viralPHP);
  184. if (!pid) return;
  185.  
  186. viralCookie = 'virallock_' + pid[1];
  187. if (getCookie(viralCookie) !== null) return;
  188. setCookie(viralCookie, '0001', host);
  189.  
  190. afterUnlock();
  191. } else if (viralCoupon.test(str)) {
  192. pid = str.match(viralCoupon);
  193. if (!pid) return;
  194.  
  195. if (getCookie('virallock_' + pid[1]) !== null && getCookie('virallock_time_' + pid[1]) !== null) return;
  196.  
  197. /* globals virallocker_plusone */
  198. if ('virallocker_plusone' in global)
  199. virallocker_plusone({
  200. state: 'on',
  201. });
  202. }
  203. })(jQuery);
  204. }
  205.  
  206. document.addEventListener('DOMContentLoaded', function() {
  207. antiSocialLocker();
  208. setTimeout(antiSocialLocker, 4000);
  209. });
  210.  
  211. window.addEventListener('load', function() {
  212. antiSocialLocker();
  213. setTimeout(antiSocialLocker, 0);
  214. });
  215. })(window);

QingJ © 2025

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