您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Select the Public aspect as default for new publications in the social media platform Diaspora*.
// ==UserScript== // @name Diaspora* - Public publications by default // @description Select the Public aspect as default for new publications in the social media platform Diaspora*. // @namespace diaspora-new-post-public // @include http://joindiaspora.com/stream // @version 1 // @copyright Public domain (http://unlicense.org/) // @grant none // ==/UserScript== /** * Be sure to update '@include' on line 5 above to match your Diaspora* pod! * Simply replace 'diasporabrazil.org' with your pod domain */ // If jQuery is available, run everything as soon as the DOM is set up. if ( 'jQuery' in window ) jQuery( document ).ready(function( $ ) { // A list of the ids of users who should have publications marked as public by default. var userid_targets = [ '1d4c2183c4c73dac' ]; var userid_current = document.querySelectorAll( '.user-menu-item a[href*="/people/"]' ); if ( typeof userid_current[0] != 'undefined' ) { userid_current = userid_current[0].href.substr( userid_current[0].href.lastIndexOf( '/' ) + 1 ); if ( userid_targets.indexOf( userid_current ) > -1 ) { var aspect_public = document.querySelectorAll( '.public_toggle .public' ); if ( typeof aspect_public[0] != 'undefined' ) { $( aspect_public[0] ).trigger( 'click' ); } } } });
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址