From 5f91f7e824061152ea6d9e4532cdb831c759ed21 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Fri, 19 Jul 2024 01:46:53 +0900 Subject: [PATCH] ci: update userscripts (#877) Co-authored-by: Robot-Inventor <50550561+Robot-Inventor@users.noreply.github.com> --- userScript/en.user.js | 4 ++-- userScript/ja.user.js | 4 ++-- userScript/ko.user.js | 4 ++-- userScript/zh_TW.user.js | 4 ++-- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/userScript/en.user.js b/userScript/en.user.js index 3a262188..ed7cc8b3 100644 --- a/userScript/en.user.js +++ b/userScript/en.user.js @@ -1,7 +1,7 @@ // ==UserScript== // @name Shadowban Scanner (English) // @namespace https://github.com/Robot-Inventor/shadowban-scanner/ -// @version 3.1.7 +// @version 3.1.8 // @description A browser extension that detects shadowbans on Twitter. // @author Robot-Inventor (ろぼいん / @keita_roboin) // @match https://*.twitter.com/* @@ -13,7 +13,7 @@ // ==/UserScript== /*! For license information please see en.user.js.LICENSE.txt */ -(()=>{"use strict";var e={8531:function(e,t){var r=this&&this.__awaiter||function(e,t,r,s){return new(r||(r=Promise))((function(n,o){function i(e){try{l(s.next(e))}catch(e){o(e)}}function a(e){try{l(s.throw(e))}catch(e){o(e)}}function l(e){var t;e.done?n(e.value):(t=e.value,t instanceof r?t:new r((function(e){e(t)}))).then(i,a)}l((s=s.apply(e,t||[])).next())}))};Object.defineProperty(t,"__esModule",{value:!0}),t.asyncQuerySelectorAll=t.asyncQuerySelector=void 0;const s=(e,t)=>new Promise((r=>{const s=e();if(s instanceof Element||s instanceof NodeList&&s.length)return void r(s);let n=null;const o=new MutationObserver((()=>{const t=e();(t instanceof Element||t instanceof NodeList&&t.length)&&(o.disconnect(),n&&clearTimeout(n),r(t))}));n=setTimeout((()=>{o.disconnect(),r(null)}),t),o.observe(document.body,{attributes:!0,childList:!0,subtree:!0})}));t.asyncQuerySelector=(e,...t)=>r(void 0,[e,...t],void 0,(function*(e,t=document,r=500){return yield s((()=>t.querySelector(e)),r)})),t.asyncQuerySelectorAll=(e,...t)=>r(void 0,[e,...t],void 0,(function*(e,t=document,r=500){var n;return null!==(n=yield s((()=>t.querySelectorAll(e)),r))&&void 0!==n?n:document.createDocumentFragment().childNodes}))},1016:(e,t,r)=>{r.d(t,{A:()=>a});var s=r(1601),n=r.n(s),o=r(6314),i=r.n(o)()(n());i.push([e.id,".shadowban-scanner-tombstone-necromancer {\n display: inline-block;\n margin: 0 2rem;\n text-decoration: none;\n}\n\n.shadowban-scanner-tombstone-necromancer:hover {\n text-decoration: underline;\n}\n\n[data-sb-translation] {\n display: inline-block;\n min-width: 15em;\n min-height: 1em;\n border-radius: 0.25em;\n background-image: linear-gradient(90deg, transparent 40%, rgba(175, 175, 175, 0.7) 80%, transparent 100%);\n background-size: 200% 100%;\n animation: loading-animation 1.5s linear infinite;\n}\n\n@keyframes loading-animation {\n 0% {\n background-position: 200% 0%;\n opacity: 1;\n }\n 100% {\n background-position: 0% 0%;\n opacity: 1;\n }\n}\n",""]);const a=i},6314:e=>{e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r="",s=void 0!==t[5];return t[4]&&(r+="@supports (".concat(t[4],") {")),t[2]&&(r+="@media ".concat(t[2]," {")),s&&(r+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),r+=e(t),s&&(r+="}"),t[2]&&(r+="}"),t[4]&&(r+="}"),r})).join("")},t.i=function(e,r,s,n,o){"string"==typeof e&&(e=[[null,e,void 0]]);var i={};if(s)for(var a=0;a0?" ".concat(d[5]):""," {").concat(d[1],"}")),d[5]=o),r&&(d[2]?(d[1]="@media ".concat(d[2]," {").concat(d[1],"}"),d[2]=r):d[2]=r),n&&(d[4]?(d[1]="@supports (".concat(d[4],") {").concat(d[1],"}"),d[4]=n):d[4]="".concat(n)),t.push(d))}},t}},1601:e=>{e.exports=function(e){return e[1]}},5535:(e,t,r)=>{r.r(t),r.d(t,{default:()=>y});var s=r(5072),n=r.n(s),o=r(7825),i=r.n(o),a=r(7659),l=r.n(a),c=r(5056),d=r.n(c),h=r(540),p=r.n(h),u=r(1113),m=r.n(u),f=r(1016),b={};b.styleTagTransform=m(),b.setAttributes=d(),b.insert=l().bind(null,"head"),b.domAPI=i(),b.insertStyleElement=p(),n()(f.A,b);const y=f.A&&f.A.locals?f.A.locals:void 0},5072:e=>{var t=[];function r(e){for(var r=-1,s=0;s{var t={};e.exports=function(e,r){var s=function(e){if(void 0===t[e]){var r=document.querySelector(e);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}t[e]=r}return t[e]}(e);if(!s)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");s.appendChild(r)}},540:e=>{e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},5056:(e,t,r)=>{e.exports=function(e){var t=r.nc;t&&e.setAttribute("nonce",t)}},7825:e=>{e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(r){!function(e,t,r){var s="";r.supports&&(s+="@supports (".concat(r.supports,") {")),r.media&&(s+="@media ".concat(r.media," {"));var n=void 0!==r.layer;n&&(s+="@layer".concat(r.layer.length>0?" ".concat(r.layer):""," {")),s+=r.css,n&&(s+="}"),r.media&&(s+="}"),r.supports&&(s+="}");var o=r.sourceMap;o&&"undefined"!=typeof btoa&&(s+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),t.styleTagTransform(s,e,t.options)}(t,e,r)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},1113:e=>{e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},41:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.INSTRUCTION_URL=t.RELEASE_NOTE_URL=t.ONBOARDING_PATH=t.ALLOWED_TWEMOJI=t.TWEMOJI_ATTRIBUTE=t.SHADOW_TRANSLATION_ATTRIBUTE=t.TRANSLATION_ATTRIBUTE=t.EVENT_GENERATOR_SETTINGS_ATTRIBUTE=t.EVENT_GENERATOR_ID=t.CHECKED_DATA_ATTRIBUTE=void 0,t.CHECKED_DATA_ATTRIBUTE="data-shadowban-checked",t.EVENT_GENERATOR_ID="shadowban-scanner-event-generator",t.EVENT_GENERATOR_SETTINGS_ATTRIBUTE="data-sb-settings",t.TRANSLATION_ATTRIBUTE="data-sb-translation",t.SHADOW_TRANSLATION_ATTRIBUTE="data-sb-shadow-translation",t.TWEMOJI_ATTRIBUTE="data-sb-enable-twemoji",t.ALLOWED_TWEMOJI=["✅","🚫","⚠️"],t.ONBOARDING_PATH="dist/html/initialSetup.html",t.RELEASE_NOTE_URL={en:"https://roboin.io/article/2024/05/27/shadowban-scanner-reaches-over-10000-users/en/",ja:"https://roboin.io/article/2024/05/27/shadowban-scanner-reaches-over-10000-users/"},t.INSTRUCTION_URL={en:"https://roboin.io/article/2023/09/30/detect-twitter-shadowban/en/#usage",ja:"https://roboin.io/article/2023/09/30/detect-twitter-shadowban/#%E4%BD%BF%E3%81%84%E6%96%B9"}},8140:(e,t)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_SETTINGS=void 0,t.DEFAULT_SETTINGS={alwaysDetailedView:!1,enableForOtherUsersProfiles:!0,enableForOtherUsersTweets:!0,showMessagesInUnproblematicProfiles:!0,showMessagesInUnproblematicTweets:!1,showNotesInMessages:!0,showTweetButton:!0}},7316:(e,t,r)=>{Object.defineProperty(t,"__esModule",{value:!0}),t.Translator=void 0;const s=r(41),n=r(1497);t.Translator=class{constructor(e,t){this.translationFunction=e,this.twemojiEndpoint=t}convertEmojiToTwemoji(e){let t=e;for(const e of s.ALLOWED_TWEMOJI){const r=[...e].map((e=>e.codePointAt(0)?.toString(16))).join("-"),s=`${e}`;t=t.replaceAll(e,s)}return t}translateElements(){const e=[...document.querySelectorAll(`[${s.TRANSLATION_ATTRIBUTE}]`)],t=document.querySelectorAll(`sbs-message[${s.SHADOW_TRANSLATION_ATTRIBUTE}]`);for(const r of t){const{shadowRoot:t}=r;if(!t)return;const n=t.querySelectorAll(`[${s.TRANSLATION_ATTRIBUTE}]`);e.push(...n),n.length&&r.removeAttribute(s.SHADOW_TRANSLATION_ATTRIBUTE)}e.forEach((e=>{const t=e.getAttribute(s.TRANSLATION_ATTRIBUTE),r=e.getAttribute("data-sb-translation-substitutions"),o=r?JSON.parse(r):null,i=(0,n.isTranslationSubstitutions)(o)?this.translationFunction(t,o):this.translationFunction(t);e.hasAttribute(s.TWEMOJI_ATTRIBUTE)?e.innerHTML=this.convertEmojiToTwemoji(i):e.innerHTML=i,e.removeAttribute(s.TRANSLATION_ATTRIBUTE)}))}}},380:function(e,t,r){var s,n=this&&this.__decorate||function(e,t,r,s){var n,o=arguments.length,i=o<3?t:null===s?s=Object.getOwnPropertyDescriptor(t,r):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,r,s);else for(var a=e.length-1;a>=0;a--)(n=e[a])&&(i=(o<3?n(i):o>3?n(t,r,i):n(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i};Object.defineProperty(t,"__esModule",{value:!0}),t.SbsMessage=void 0,r(919);const o=r(6337),i=r(2924),a=r(2627);let l=s=class extends o.LitElement{constructor(){super(...arguments),this.summary="tweetNoProblem",this.details=[],this.notes=[],this.isAlert=!1,this.isExpanded=!1,this.isFocalMode=!1,this.isTweetButtonShown=!1,this.isNoteShown=!1,this.textColor="white"}expand(){this.isExpanded=!0}tweetButtonClicked(){const e=new Event("tweetButtonClick",{bubbles:!0,composed:!0});this.dispatchEvent(e)}firstUpdated(e){this.onRenderedCallback&&this.onRenderedCallback(),super.firstUpdated(e)}getShowMoreButton(){return this.isExpanded?"":o.html``}getDetails(){return this.details.length?o.html`