Commit Graph

754 Commits (1561cb8e6a1514c62dc26c3305b940819b4c118b)

Author SHA1 Message Date
Kevin Payravi 1561cb8e6a
Merge pull request #784 from KevinPayravi/reordering-adjustments
Adjust search engine re-ordering logic
2024-08-16 14:20:59 -05:00
trfunk 7e2b11f4e7
Update dota2 content path
The dota2 game wiki is merging with the dota2 esports wiki
2024-08-16 11:23:36 -05:00
Kevin Payravi f9b920b6d8 Merge branch 'reordering-adjustments' of https://github.com/Razboy20/indie-wiki-buddy into reordering-adjustments 2024-08-16 16:36:36 +01:00
Razboy20 9f220eef77
simplify google selector on android 2024-08-15 23:34:38 -05:00
Razboy20 053099c2f3
feat: adjust re-ordering logic
continues swapping until all non-indie sites are propagated to the bottom
2024-08-15 23:33:59 -05:00
Kevin Payravi 97c814bbda Re-add checks for processedCache[0]
Checking for isNonIndie and container
2024-08-16 04:03:19 +01:00
Kevin Payravi 847c233806 Adjust re-ordering logic
* Re-implementing previous solution where all indie results are moved above the first non-indie result, instead of swapping
* Only hiding non-indie results that match an indie result when re-ordering is enabled
* Adjust top-mount CSS query for Firefox Android
2024-08-16 03:36:48 +01:00
Kevin Payravi 43b27df448 Adding jsname query for Google search container
Trying this out to help resolve issue when running on Google image results. Querying for closest jscontroller and hveid can go too far up in the DOM; jsname is another option that is sometimes closer.
2024-08-15 05:13:45 +01:00
Kevin Payravi 14c12c3872 More null handling + fix for Google top-mount querying 2024-08-15 05:03:19 +01:00
Kevin Payravi ffc5f4a91f Syntax fix in JSON 2024-08-15 04:36:06 +01:00
SnorlaxMonster 6a5ee79e43
Refactor Settings page (#777)
The script for the settings page included a large amount of duplicated code, so I refactored it to put that reused code in functions instead. I also refactored other code, such as massively simplifying the function that converts the user's settings to checked radio buttons.

Additionally, I refactored the "Individual wiki settings" table to actually be built using a table, instead of a structure that only appears to be a table.

I also made various other minor adjustments to the Settings page:
* Adjust the formatting of the "icon legend" box to be consistent with the other boxes on the page.
* Replaced the emoji 🍃 instead of the Tibetan character ༄ to represent BreezeWiki. The Tibetan character was rendering much smaller than the emoji in the other boxes. But regardless, it's better not to use characters non-semantically.
* Add a border around the "individual wiki settings" table, for consistency with the other boxes on the page.
2024-08-14 22:34:48 -05:00
Kevin Payravi 0f05112eaf
Merge pull request #782 from KevinPayravi/filtering-adjustments
Null handling + minor adjustments in content search filtering script
2024-08-14 22:33:35 -05:00
Kevin Payravi 66fd543a99 Re-add Google #main querying
Needed for mounting to top of Firefox Android search results DOM
2024-08-15 04:30:38 +01:00
Kevin Payravi 248c0a6c00 ts-ignore node query selector 2024-08-14 14:27:52 +01:00
Razboy20 ce13818099
perf: use .isConnected to check element presence on the page 2024-08-13 23:43:27 -05:00
2NumForIce 8a211056ad
add MapleStory Neoseeker 2024-08-13 21:22:57 -05:00
Kevin Payravi 7e8bc113fe Fix for mount element query 2024-08-14 02:55:17 +01:00
Kevin Payravi 267c210c7e Null handling + return in mountToTopOfSearchResults 2024-08-14 02:53:20 +01:00
Kevin Payravi beccc60186 Revert "Null handling in content-search-filtering"
This reverts commit de7d36a958.
2024-08-12 16:57:21 +02:00
Kevin Payravi de7d36a958 Null handling in content-search-filtering 2024-08-12 15:51:12 +02:00
Kevin Payravi 20b2aa4aa4 Adjust search result container query for Ecosia
.result__body was too deep into the DOM; article's parent element is a better container
2024-08-12 15:44:49 +02:00
Razboy20 36fe4fafb2
Perf: Rewrite content scripts to run at the start of document/page loading (#776) 2024-08-12 08:41:56 -05:00
DrWhoFan13 5a40af5727
Redirects to FFXIV's Indie Wiki + Gnorp Apologue's wiki.gg / New redirect to Summitpedia 2024-08-08 17:59:17 -05:00
Kevin Payravi 183f9a3a6d Additional fixes 2024-08-07 11:37:52 +02:00
Kevin Payravi 066305ae7a Handling null cases 2024-08-07 10:48:13 +02:00
Razboy20 94310c25f9
Add types to content scripts (#775) 2024-08-07 03:34:34 -05:00
Cryptic 61090e19b5
Add Surviving Mars & Dyson Sphere Program Wikis 2024-08-03 08:12:23 -05:00
DrWhoFan13 7e08f738cb
Added three new wikis
Evil Prince and the Puppet Wiki, Simpsonspedia (DE), and Shin Wiki Evangelion (FR)
2024-08-03 08:10:29 -05:00
Pretztea b4488d8412
Updating Poupedia data 2024-08-03 08:00:30 -05:00
Kevin Payravi b6f3c6df8f
Removing Genfanad Wiki, appears to be dead
Genfanad Wiki URL now redirects to a different placeholder site.
2024-07-29 04:56:17 -05:00
Kevin Payravi 99bfedd8dd Version 3.9.1 2024-07-27 06:02:15 -05:00
Kevin Payravi c132fd0961 Adjust favicon display when replacing search results
Removing white background and adding drop-shadow; increasing favicon size from 12px to 16px
2024-07-27 05:57:50 -05:00
Kevin Payravi 2dbd3dc4e0 Version 3.9.0 2024-07-27 05:38:47 -05:00
Kevin Payravi 25bc3648df Decode main page title 2024-07-27 05:38:37 -05:00
Kevin Payravi 3cb2062cb2 Add comments explaining use of innerHTML
innerHTML can be flagged by extension stores as a security risk.
2024-07-27 05:10:57 -05:00
Kevin Payravi 84b78a29a2 Adjust Google re-order insertion position
Since we now take the parentNode of located Google search engine result containers, we need to adjust where we insert re-ordered results. Instead of prepending to parent node, we insert before the non-indie container.
2024-07-26 05:56:59 -05:00
Kevin Payravi 1c6efc0860 Filter .data-g elements from Google re-ordering 2024-07-24 04:25:19 -07:00
Kevin Payravi 7e1beaa21c
Rename crowdin.yml to .crowdin.yml 2024-07-24 05:47:39 -05:00
Kevin Payravi 25782460dc Using ellipsis instead of three dots 2024-07-24 02:40:29 -07:00
Kevin Payravi 76cbfeab06 Move banner text icon from translation file 2024-07-24 01:53:07 -07:00
Kevin Payravi 67c46920fa Move banner text icons from translation file 2024-07-24 01:41:49 -07:00
Kevin Payravi 8646f301c0 Update Crowdin configuration file 2024-07-24 05:58:18 +01:00
Kevin Payravi 2221d98dc9 Moving change observer to beginning of filtering
Adding the change observer after the initial filter occurs seems to be able to cause race conditions, particularly on Startpage. This commit moves the change observer addition to the beginning of the filtering function. The downside is that adding the change observer before filtering starts isn't ideal, since filtering manipulates the DOM and can trigger a re-check.
2024-07-23 17:02:19 -07:00
Kevin Payravi fb202486dc Apply parentNode to all Google search results
Need to apply to all for consistency between the three interactions (hiding / replacing / re-ordering)
2024-07-23 16:25:53 -07:00
Kevin Payravi b1a3110c70 Adjust logic for checking/applying iwb-detected
Change in logic required due to passing search result container parentNode when replacing Google search results
2024-07-23 03:13:09 -07:00
Kevin Payravi 1affa19c9c Using parent node for Google search results
When hiding or replacing Google search results, we now use the search result container's parentNode. This avoids some UI conflicts and issues, particularly when injecting the replacement button.

For Google search result re-ordering, we still use the original search container w/o the parent node.
2024-07-21 01:40:25 -07:00
Kevin Payravi 1b0fc20eaa Rv recent Google filter adjustments; not reliable
The .MjjYud class is sometimes applied on individual results, and other times for the div surrounding all results on a page.
2024-07-20 03:17:40 -07:00
Kevin Payravi fda94b8be5 Improvements to Google selectors 2024-07-20 02:57:42 -07:00
Kevin Payravi d49b5c7d32 Adding FR Inkipédia 2024-07-19 23:49:24 -07:00
Kevin Payravi 9bc50898a4 Add SV count to README 2024-07-19 03:03:05 -07:00