Skip to content

Commit

Permalink
2.5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
emvaized committed Mar 14, 2024
1 parent 1af4431 commit 8164fe4
Showing 3 changed files with 12 additions and 9 deletions.
9 changes: 8 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
2.5.2
- Added option to hide 'translate this result' button
- Extended list of supported widgets moved to sidebar
- Fix for scripts not working on some pages
- Improved tiles alignment with the searchbox on top
- Project cleanup and performance optimizations

2.5.1
- Changed extension name to "Google Tweaks"
- Compatibility with more Google search widgets
@@ -10,7 +17,7 @@
- New option to remove "n results found" line on top, as well as it's border
- Huge refactoring and optimization of the project – it became much lighter and faster to load
- Some of the features had to be removed ("Add website favicons", "Apply styling to the search widgets", "Move search results on top", "Numbers navigate tabs", horizontal arrows keyboard navigation). Some of these, which are still actual in new lazy-loaded layout, may be reimplemented in the future if there will be demand from users
- Changed website check to a more flexible form, so that it should support more google.com subcomains
- Changed website check to a more flexible form, so that it should support more google.com subdomains

2.4.3
- Small fixes
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@
"manifest_version": 2,
"default_locale": "en",
"name": "Google Tweaker — tiled google search",
"version": "2.5.1",
"version": "2.5.2",
"description": "__MSG_extensionDescription__",
"icons": {
"48": "icons/google-tiles-new-icon-48.png",
10 changes: 3 additions & 7 deletions src/layout.js
Original file line number Diff line number Diff line change
@@ -35,12 +35,11 @@ function setSidebar(lazyLoaded = false) {
if (ignoreClientHeightChanges) return;
if (configs.dontProccessWidgetsIfWindowNarrow && window.innerWidth < configs.sidebarWidth * 3) return;
ignoreClientHeightChanges = true;
// console.log('processing sidebar...')

/// Detect or create sidebar container
if (!regularResultsColumn) regularResultsColumn = document.getElementById(columnWithRegularResultsId);
if (!regularResultsColumnWidth) regularResultsColumnWidth = regularResultsColumn.clientWidth;

if (!sidebarContainer) {
sidebarContainer = document.getElementById('rhs');

@@ -52,11 +51,8 @@ function setSidebar(lazyLoaded = false) {
sidebarContainer = document.createElement('div');
sidebarContainer.className = 'g-tiles-sidebar';

if (regularResultsColumn !== null)
regularResultsColumn.parentNode.appendChild(sidebarContainer);
if (regularResultsColumn) regularResultsColumn.parentNode.appendChild(sidebarContainer);
}

// if (configs.applyStyleToWidgets) sidebarContainer.classList.add('stylized-sidebar');
}

// Move images on top of page to sidebar
@@ -81,7 +77,7 @@ function setSidebar(lazyLoaded = false) {
.TzHB6b.cLjAic:has(.HnYYW),
.ULSxyf:not(:has(.g))
`);

const widgetsArray = Array.prototype.slice.call(widgets);
for (let i = 0, n = widgetsArray.length, result; i < n; i++) {
result = widgetsArray[i];

0 comments on commit 8164fe4

Please sign in to comment.