您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Подкраска своих постов, кликалка непрочитанных постов
当前为
- // ==UserScript==
- // @name Point.im Scripts
- // @version 2020.08.31
- // @description Подкраска своих постов, кликалка непрочитанных постов
- // @include http*://*.point.im/*
- // @icon https://www.google.com/s2/favicons?domain=point.im
- // @author Rainbow-Spike
- // @namespace https://greasyfork.org/users/7568
- // @homepage https://greasyfork.org/ru/users/7568-dr-yukon
- // @grant none
- // ==/UserScript==
- var SelfPostMarker = 1,
- UnreadAutoClicker = 1,
- limit = 10,
- me = document.querySelector ( '#menu-profile' ),
- name = ( me != null ) ? me.href.replace ( /.*\/\/(.+)\.point\.im.*/i, "$1" ) : '-',
- link, comm;
- if ( SelfPostMarker == 1 ) {
- document . querySelectorAll ( '#comments article.post' ) . forEach ( function ( e ) {
- link = ( e != null ) ? e . querySelector ( 'a' ) : '';
- comm = ( link != ( '' || null ) ) ? link . href . replace ( /.*\/\/(.+)\.point\.im.*/i, "$1" ) : '';
- e . style . cssText += ( comm == name ) ? 'border: 2px dashed #ccc; border-radius: 10px; margin: 0 -10px; padding: 10px 10px 0 10px;' : '';
- } )
- };
- if (
- ( UnreadAutoClicker == 1 )
- &&
- ( window.location.href.match ( 'point.im/recent' ) != null )
- &&
- ( document . querySelector ( '.unread' ) . innerHTML > limit )
- ) document . querySelector ( '#older' ) . click ( );
- document . querySelector ( '#header #new-post-label' ) . accessKey = 'w';
- document . querySelector ( '#new-post-wrap .buttons #new-post-hide-label' ) . accessKey = '0';
- document . querySelector ( '#new-post-wrap .buttons input[type="submit"]' ) . accessKey = 's';