Skip to content

Commit

Permalink
v1.20.0 - probably the last mv2 version
Browse files Browse the repository at this point in the history
  • Loading branch information
StigNygaard committed Jul 10, 2024
1 parent 688524a commit 1ef4101
Show file tree
Hide file tree
Showing 8 changed files with 38 additions and 29 deletions.
2 changes: 0 additions & 2 deletions WebExtension/Stigs_Flickr_Fixr.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -496,9 +496,7 @@ function insertGMapLinkDelayed() {

function mapInitializer() {
if (window.location.href.includes('flickr.com/map/?')) {
// https://developer.mozilla.org/en-US/docs/Web/API/URL
const url = new URL(window.location.href);
// https://developer.mozilla.org/en-US/docs/Web/API/URLSearchParams
const imgId = url.searchParams.get('photo');
if (imgId) {
const focusImg = document.getElementById('f_img_thumb_' + imgId);
Expand Down
2 changes: 1 addition & 1 deletion WebExtension/background/flickr_fixr.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ function installHandler({reason, temporary, previousVersion}) {
switch (reason) {
case 'update':
console.log("Updated from details.previousVersion: " + previousVersion);
break; // Show onboarding when updating or not?...
// break; // Show onboarding when updating or not?...
case 'install':
// browser.runtime.openOptionsPage();
// browser.runtime.getURL()
Expand Down
2 changes: 1 addition & 1 deletion WebExtension/manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "Flickr Fixr",
"short_name": "Flickr Fixr",
"description": "Makes Flickr almost awesome - while waiting for SmugMug to fully fix it ;-)",
"version": "1.19.0",
"version": "1.20.0",
"author": "Stig Nygaard",
"homepage_url": "https://github.com/StigNygaard/Stigs_Flickr_Fixr",
"permissions": [
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
47 changes: 28 additions & 19 deletions WebExtension/onboard/onboard.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,19 @@
.ffo {
display: none;
}

.hoverimage > .hover {
display: none;
position: fixed;
z-index: 2;
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
}
.hoverimage:hover > .hover {
display: block;
}

@media (prefers-color-scheme: dark) {
body {
background-color: rgb(43, 43, 43);
Expand Down Expand Up @@ -58,28 +71,24 @@ <h1>Congratulations!...</h1>

<p>If you are new to Flickr Fixr, make sure to look through features on the <a href="#" class="settings">Options Page</a>.</p>

<h2>What's <em>new</em> in this version?!...</h2>

<ul>
<li><p>After the
<a href="https://www.flickr.com/groups/96035807@N00/discuss/72157655601688753/72157721919017547" target="_blank">recent change to dates</a>,
Flickr has made another - in my opinion bad for the user experience - change to the website...</p>
<p>Modern webbrowsers per default makes it possible to <em>resize</em> multi-line input boxes. A great usability
feature. But now Flickr has <em>explicitly disabled</em> that feature for comment-boxes on photopages, gallery
pages and in group discussions.</p>
<p>Flickr Fixr now "unlocks" these comment-boxes, bringing back the option to resize:</p>
<h2>Future minimum requirement...</h2>

<img src="../options/FixrResize-517x191.gif" alt="Resizeable commentbox" />
<p>Unless Flickr makes breaking changes to their site before I get the next "major" version out, this will likely
be the last version of Flickr Fixr to support Firefox versions 115-127. Future minimum requirement will be
Firefox 128, <a class="hoverimage">which is also the new "ESR version" of Firefox<img src="firefox-releases-128-short.png" alt="" class="hover" /></a>.
If you like most are using the latest version of Firefox, there's no need to care at all. If you are using
Firefox ESR 115.x or a browser based upon that (like for example Tor or Waterfox) those will likely also all
have been updated to new ESR 128.x by end of Q3/2024.
Windows 7 og 8 users cannot upgrade Firefox beyond version 115 and will thus unfortunately not get
anymore updates of Flickr Fixr. But I think/hope that is very few users, if any at all these days?</p>

</li>
<li><p>The "Extra top menu items" feature of Flickr Fixr was already adding links to <em>Tags</em>,
<em>Collections</em> and <em>Map</em> in your top-menus. Now also a direct link to your <em>Notifications</em>
page are being added to the "You" menu.</p>
</li>
</ul>
<p>The next major version of Flickr Fixr will also be the first "Manifest v3" version made for Firefox. After in a
period having made separate versions of Flickr Fixr for Firefox and for "Chromium browsers" (Chrome/Edge),
this will once again make it possible for me to make only <em>one</em> version of Flickr Fixr that works in all
the browsers. I'm looking forward to my simplified workflow🙂</p>

<p>Remember you can enable and disable features on the <a href="#" class="settings">Options Page</a> if you don't
like everything that Flickr Fixr can do. Some features also have extra options to tune the behavior.</p>
<!-- <p>Remember you can enable and disable features on the <a href="#" class="settings">Options Page</a> if you don't-->
<!-- like everything that Flickr Fixr can do. Some features also have extra options to tune the behavior.</p>-->

<h2>Help, information, feedback?...</h2>
<p>Visit the <a href="https://www.flickr.com/groups/flickrhacks/discuss/72157655601688753/" target="_blank">Flickr Fixr thread</a> in Flickr Hacks forum. I regularly watch that thread for new comments.</p>
Expand Down
2 changes: 1 addition & 1 deletion WebExtension/onboard/onboard.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
function isFirefox() {
return !!((typeof browser !== 'undefined') && browser.runtime && browser.runtime?.getURL("./").startsWith("moz-extension://"));
return !!((typeof browser !== 'undefined') && browser.runtime?.getURL("./").startsWith("moz-extension://"));
}

function init() {
Expand Down
8 changes: 5 additions & 3 deletions WebExtension/options/options.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,10 @@
</div>
<div><label><input type="checkbox" id="updateTags" /> Direct tag-links to <em>same</em> photographer's photos</label>
<div><p>Adds an extra direct link in tags, pointing to the same photographer's similar tagged photos.</p>
<p>You can choose to see the extra link only when hovering a tag, or you can choose link to be shown persistent on all tags for a less "erratic" experience:</p>
<p><label><input type="radio" name="updateTags_tagmode" id="updateTags_hover" value="updateTags_hover" /> Hover only</label> &nbsp; <label><input type="radio" name="updateTags_tagmode" id="updateTags_persist" value="updateTags_persist" /> Persistent</label></p>
<p>You can choose to see the extra link only when hovering a tag, or you can choose link to be shown
persistent on all tags for a less "erratic" experience:</p>
<p><label><input type="radio" name="updateTags_tagmode" id="updateTags_hover" value="updateTags_hover" /> Hover only</label> &nbsp;
<label><input type="radio" name="updateTags_tagmode" id="updateTags_persist" value="updateTags_persist" /> Persistent</label></p>
</div>
</div>
<div><label><input type="checkbox" id="albumExtras" /> Links to album-map and album-comments</label>
Expand Down Expand Up @@ -79,7 +81,7 @@
<div><p>Adds <em>Tags</em>, <em>Collections</em>, <em>Map</em> and <em>Notifications</em> items to the user menu ("You" dropdown)
- and adds <em>Tags</em>, <em>Collections</em> and <em>Map</em> items to the photographer menus (menu bar).</p></div>
</div>
<div><label class="new"><input type="checkbox" id="resizeableCommenting" /> Resizeable Comment boxes</label>
<div><label><input type="checkbox" id="resizeableCommenting" /> Resizeable Comment boxes</label>
<div><p>Allow comment-boxes to be resizeable on <em>photopages</em>, <em>gallerypages</em> and in
<em>group discussions</em>.</p>
<p><label><input type="radio" name="resizeableCommenting_direction" id="resizeableCommenting_both" value="resizeableCommenting_both" /> Height and width</label>
Expand Down
4 changes: 2 additions & 2 deletions WebExtension/options/options.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ let defaults = {
resizeableCommenting_direction: 'resizeableCommenting_both',
newsfeedLinks: true,
photoDates: true,
ctrlClicking: ((typeof browser !== 'undefined') && browser.runtime && browser.runtime.getURL("./").includes("moz-extension://")), // default enabled for firefox
ctrlClicking: ((typeof browser !== 'undefined') && browser.runtime?.getURL("./").includes("moz-extension://")), // default enabled for firefox
exploreCalendar: true,
albumTeaser: true,
insertGMapLink: true,
Expand Down Expand Up @@ -95,7 +95,7 @@ function initializeOptionsPage() {
if (document.querySelector('div#fixroptionspage form#fixroptions')) { // Only run if Options page
document.querySelector('div#fixroptionspage #verstr').textContent = browser.runtime.getManifest().version;
document.getElementById('slideshowSpeedControl_value').addEventListener('input', displaySlideshowSpeed);
if ((typeof browser !== 'undefined') && browser.runtime && browser.runtime.getURL("./").includes("moz-extension://")) { // if firefox...
if ((typeof browser !== 'undefined') && browser.runtime?.getURL("./").includes("moz-extension://")) { // if firefox...
document.body.classList.add("isFirefox");
}
withOptionsDo(handlerInitOptionsPage);
Expand Down

0 comments on commit 1ef4101

Please sign in to comment.