Compare commits

...

2 Commits

Author SHA1 Message Date
Jonny Buchanan
6b5125d73f Release v4.12.2
- Fixed an error restoring the Tweet source label on older Tweets which don't show a Views count
2025-06-03 10:34:11 +10:00
Jonny Buchanan
212d2dbd2a Fixed an error restoring the Tweet source label on older Tweets which don't show a Views count 2025-06-03 10:27:02 +10:00
7 changed files with 12 additions and 12 deletions

View File

@ -4,7 +4,7 @@
"name": "__MSG_extensionName__",
"description": "__MSG_extensionDescription__",
"homepage_url": "https://soitis.dev/control-panel-for-twitter",
"version": "4.12.1",
"version": "4.12.2",
"icons": {
"16": "icons/icon16.png",
"32": "icons/icon32.png",

View File

@ -4,7 +4,7 @@
"name": "__MSG_extensionName__",
"description": "__MSG_extensionDescription__",
"homepage_url": "https://soitis.dev/control-panel-for-twitter",
"version": "4.12.1",
"version": "4.12.2",
"icons": {
"16": "icons/icon16.png",
"32": "icons/icon32.png",

View File

@ -793,7 +793,7 @@
</section>
</section>
<div id="version">v4.12.1<span id="debugCountdown"></span></div>
<div id="version">v4.12.2<span id="debugCountdown"></span></div>
</form>
<script src="options.js"></script>
</body>

View File

@ -310,7 +310,7 @@ let $showBlueReplyFollowersCountLabel = /** @type {HTMLElement} */ (document.que
//#region Utility functions
function exportConfig() {
let $a = document.createElement('a')
$a.download = 'control-panel-for-twitter-v4.12.1.config.txt'
$a.download = 'control-panel-for-twitter-v4.12.2.config.txt'
$a.href = URL.createObjectURL(new Blob([
JSON.stringify(optionsConfig, null, 2)
], {type: 'text/plain'}))

View File

@ -640,7 +640,7 @@
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = NO;
CURRENT_PROJECT_VERSION = 93;
CURRENT_PROJECT_VERSION = 94;
DEAD_CODE_STRIPPING = YES;
DEBUG_INFORMATION_FORMAT = dwarf;
DEVELOPMENT_TEAM = 2RDKJDLNY8;
@ -661,7 +661,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
MARKETING_VERSION = 4.12.1;
MARKETING_VERSION = 4.12.2;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES;
@ -703,7 +703,7 @@
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
COPY_PHASE_STRIP = NO;
CURRENT_PROJECT_VERSION = 93;
CURRENT_PROJECT_VERSION = 94;
DEAD_CODE_STRIPPING = YES;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
DEVELOPMENT_TEAM = 2RDKJDLNY8;
@ -718,7 +718,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
MARKETING_VERSION = 4.12.1;
MARKETING_VERSION = 4.12.2;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
SWIFT_COMPILATION_MODE = wholemodule;

View File

@ -4,7 +4,7 @@
"name": "__MSG_extensionName__",
"description": "__MSG_extensionDescriptionShort__",
"homepage_url": "https://soitis.dev/control-panel-for-twitter",
"version": "4.12.1",
"version": "4.12.2",
"icons": {
"48": "icon48.png",
"96": "icon96.png",

View File

@ -8,7 +8,7 @@
// @match https://x.com/*
// @match https://mobile.x.com/*
// @run-at document-start
// @version 195
// @version 196
// ==/UserScript==
void function() {
@ -6377,8 +6377,8 @@ async function tweakFocusedTweet($focusedTweet, options) {
// Tag View elements and restore Tweet source
let $permalinkBar = $focusedTweet.querySelector('div:has(> div > a > time)')
if ($permalinkBar) {
$permalinkBar.children[1].classList.toggle('Views', config.hideViews)
$permalinkBar.children[2].classList.toggle('Views', config.hideViews)
$permalinkBar.children[1]?.classList.toggle('Views', config.hideViews)
$permalinkBar.children[2]?.classList.toggle('Views', config.hideViews)
restoreTweetSource($permalinkBar, tweetInfo)
} else {
warn('focused tweet permalink bar not found')