您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Returns votes for comments
当前为
- // ==UserScript==
- // @name Habr: Return the votes
- // @name:ru Хабр: Верните голоса
- // @description Returns votes for comments
- // @description:ru Возвращает голоса для комментариев
- // @namespace com.habr.askornot
- // @license WTFPL
- // @author askornot
- // @match https://habr.com/*
- // @version 0.0.1
- // @compatible chrome Violentmonkey 2.18.0
- // @homepageURL
- // @supportURL
- // @run-at document-start
- // @noframes
- // ==/UserScript==
- (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, '$options') &&
- this.$options._componentTag === 'TMVotesLever'
- )
- return true;
- },
- });
- },
- });
- })();