-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature Requests: Goggles DSL Implementation #12
Comments
Hi @Ompanime, Thanks a lot for your encouraging words and great feedback. Regarding the first feedback, could you please give an example? I am not certain to have understood what you are looking for. Regarding the second feedback, I think the behavior you describe should already be the default behavior implemented by Goggles. Given the rules:
The URL |
Yes, indeed! For example, I created a Goggle to mitigate celebrity culture influence. I've noticed that a lot of the websites I would like to remove from the results have the keyword "Hollywood" in the domain, and I would like to The issue is that I don't want to discard results from educational websites that include the keyword "hollywood" in their subdirectory such as: example.abc/wiki/hollywood I hope this example helps! |
@Ompanime just a short note on the syntax, if I understand, instead of
It should be only one
Referencing the example screenshot from the getting started section Fine-tuning a Goggle. But I am not actually sure whether the
And for what you are planning to do, I think it can be accomplished similar to this goggle: first discarding all and then whitelisting. So I imagine something like the following should do the job?
|
Technically, all instructions automatically target the URL as written in the quick-start guide, meaning no matter what filter attribute you designate (i.e.
I am aware that the generic Additionally, I should mention that you're right about my syntax choice--only one "$" character is needed per instruction, with every subsequent action/attribute option following it separated by the "," character. I've already written a lot of my code with multiple "$" characters in each instruction, and I don't want to tediously change every single line. Plus my code still seems to work fine, so unless doing this breaks my code, I likely won't go back and change it. Anyways, thank you for your feedback, @devidw! |
@Ompanime thanks again for the very detailed feedback and explanation. If I understood correctly, something like Also, @devidw is correct in that the instructions with multiple |
@remusao yes, that's the right idea! Originally, the way I've been writing my code to try to more specifically target the domain of a URL has been by incorporating the use of anchors and the
I'm not sure if it would have worked the way I would like it to (as I have yet to upload my updated code) but my idea was by using anchors to target specific keywords and their placement within the URL I would hopefully single-out the domain and subsequently delist all domains with those keywords. But having a command such as On a side note, I did actually update the syntax of my code as @devidw pointed out to align the with the screenshot he linked me too. As it turns out, after looking at my code it was doing exactly what just mentioned (discarding results that contain "hollywood$inur,"). |
@remusao I just updated my goggles code a few days ago hoping that using anchors to target specific keywords along with their placement within the URL would do the trick and remove all domains which contained such keywords, instead of having to specify each domain individually using With my No Celebrity Goggles on, I tested them to see if the anchoring method, as I described in my last post, would work. But unfortunately, neither anchor placement (left or right) on the keyword gave the desired results. While hovering over the line of code does acknowledge that the code is active, results containing those specific keywords are not filtered out unless that domain is specifically mentioned using While not definite, I believe the For example, instead of looking for the left-anchored keyword at the beginning of the second-level domain (i.e. Sorry if that sounds confusing. But here are some screenshots, feel free to try to replicate this for yourself using my No Celebrity Goggles! |
Yes, this would work. The idea of the Thanks for the last message, it clarifies what I understood you needed from Goggles. At the moment you are correct that the left and right "anchors" will match the beginning and end of the URL (including the scheme like We did not yet get to implementing this but it's definitely on our TODO list of things to add to Goggles in the future. Thanks again for all the detailed feedback. |
I’m really impressed with the new Goggles feature and believe it to be a very powerful tool to refine search results. I’ve currently working on a few right now and have published one for public use. I know Goggles are still new and not all intended features are working/implemented, but I have found two shortcomings that are hindering me from creating a more complex and refined Goggle.
This first is that I can’t specifically target the domain name when discarding websites, but rather the code looks for everything in the URL including the subdirectory. There are websites that I would like to discard that have specific wording that I would like to target, but I don’t want to remove dictionary results that also have the wording in their URL subdirectory.
For example, instead of individually discarding every website with the word “Hollywood” in its domain, I would like to be able to discard every website with that keyword in one line of code without the code also targeting the subdirectory in the URL. This way results from news outlets and dictionaries that have that same keyword in their subdirectory will remain.
Secondly, I am aware that when writing a Goggle it’s possible to have lines of code that conflict with one another. Although not intended, I understand people want their code/Goggle to work a certain way. In such cases I believe it would be nice to have a exception rule.
For example, if the code was:
There could be an exception that would apply to “example.abc” where they have a subdirectory of /posts/ (example.abc/posts/)–allowing for only those specific results to be boosted despite the website itself being downranked.
I hope my feedback helps improve this already powerful technology. And thank you for all the great innovation you’ve brought us, such as Brave Goggles–which I think have become one of my favorite features!
The text was updated successfully, but these errors were encountered: