Habr: Return the votes

Returns votes under comments

< 脚本Habr: Return the votes的反馈

评价:差评 - 脚本失效或无法使用

§
发表于:2024-04-19
编辑于:2024-04-19

на днях перестал работать, видимо хабр что-то изменил

§
发表于:2024-04-22

Подправьте

(function () {
  'use strict';
  Object.defineProperty = new Proxy(Object.defineProperty, {
    apply(target, _, argumentsList) {
      if (argumentsList[1] !== 'isLoggedIn') return Reflect.apply(...arguments);
      return target(argumentsList[0], argumentsList[1], {
        get() {
          if (Object.prototype.hasOwnProperty.call(this, '_')&&this._.type.name === 'TMVotesLever') {
            return true;
          }
        },
      });
    },
  });
})();
askornot作者
§
发表于:2024-04-23

@A.L. обновите скрипт.
@o2bw1ujnaj, спасибо!

发表回复

登录以发表回复。