seitann

Symbolab Unlock

Dec 13th, 2020
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.45 KB | None | 0 0
  1. // ==UserScript==
  2. // @name Symbolab Unlock
  3. // @namespace https://greasyfork.org/zh-CN/users/163820-ysc3839
  4. // @version 0.1
  5. // @description Unlock subscribe functions for Symbolab.
  6. // @author ysc3839
  7. // @match https://*.symbolab.com/*
  8. // @grant none
  9. // @run-at document-start
  10. // ==/UserScript==
  11.  
  12. (function() {
  13. 'use strict';
  14.  
  15. var Solutions = function (b, g, f, a, l, e, j, h) {
  16. Solutions.orig_constructor.call(this, b, g, f, a, l, e, j, 'true');
  17. };
  18. Object.defineProperty(window, 'Solutions', {
  19. configurable: true,
  20. enumerable: true,
  21. get: function() {
  22. return Solutions;
  23. },
  24. set: function(fn) { Solutions.orig_constructor = fn; }
  25. });
  26.  
  27. var SymbolabSteps = function(e, b, a) {
  28. SymbolabSteps.orig_constructor.call(this, e, 'true', a);
  29. };
  30. Object.defineProperty(window, 'SymbolabSteps', {
  31. configurable: true,
  32. enumerable: true,
  33. get: function() {
  34. return SymbolabSteps;
  35. },
  36. set: function(fn) { SymbolabSteps.orig_constructor = fn; }
  37. });
  38.  
  39. Object.defineProperty(window, 'subscribed', {
  40. get: function() {
  41. return true;
  42. },
  43. set: function() {}
  44. });
  45.  
  46. document.onreadystatechange = function () {
  47. if (document.readyState === 'interactive')
  48. SOLUTIONS.switchPad(i18n('full pad'));
  49. };
  50. })();
Advertisement
Add Comment
Please, Sign In to add comment