Quantcast

Jump to content


Photo

[request] auto-pin tab after finding matching word


  • Please log in to reply
9 replies to this topic

#1 donovanrules1234

donovanrules1234
  • 11 posts

Posted 24 April 2015 - 09:09 PM

Hi guys, I have tried to teach myself programming but unfortunately it's just not for me. 

On neocodex there is a link to a script a user made that allows you to do this: (special thanks to user Fourjacks) 

 

What does the script do?

The script activates on refresh, searches for predefined words or "sentences" and marks those with a predefined color. Different colors can be used for different groups of predefined words or sentenced (= different colors for different profit margins).

You can make multiple scripts running in different shops.

 

It is usable in both greasemonkey and tapermonkey 

 

The script is here:

http://www.neocodex....ofitable-items/

 

My plan is to use this script with a multiple page refresher. So that I can refresh say 5-10 pages at the same time (and therefore search in 5-10 pages at the same time). 

Now then....chrome has a pin tab function which allows you to pin certain urls. When you pin a tab it moves to the far left. 

 

What I would like is for someone to pretty please write a script/do some programming so that when I use the highlighting word script, that with any matches it gets, it automatically pins the tab. Thus moving it to the left and saving me from having to check all the tabs to see if there is a match.
And the second part is, if no matches are found then to un-pin the tab if it is pinned. 

I would have loved it if the tab colour itself could change, however this apparently is not possible in chrome. However pinning is possible.

I have searched far and wide for a pre-existing program that does this but no matches were found. There are however programs out there that already auto-pin tabs based on urls, however not based on matching words in those separate tabs.

Does anybody have the ability to do this? I am personally crap at programming but in all honesty I'm assuming it can't be that hard? 

 

Extra information/said in a different way

Here is an example of the highlighting word script (this one works in fresh foods shop).

Spoiler

 

Now lets say that it finds the item "Golden Caviar". I want the script to then automatically pin the chrome tab. 

If anybody could help with this then that would be absolutely awesome! =)


Edited by donovanrules1234, 24 April 2015 - 09:15 PM.


#2 Pyro699

Pyro699
  • 1543 posts


Users Awards

Posted 24 April 2015 - 09:18 PM

To my knowledge there is not a way to programmatically pin a tab... unless im just misunderstanding your aim here.

#3 donovanrules1234

donovanrules1234
  • 11 posts

Posted 24 April 2015 - 09:31 PM

To my knowledge there is not a way to programmatically pin a tab... unless im just misunderstanding your aim here.

Then how do all the pin-tab extensions work in the chrome store? (all free) I'm assuming that they work on the same lines, just that they search urls instead of telling a program to pin if specific words are found?

Extenstions such as "Pin Tab" 

or "pinner" - which puts a button in your browser that you can click to pin a tab
There are a few others too 
 
 
Or what about a program such as from the extension "Tabs Outliner"?
Watch the youtube video here showing its use:
Skip to about minute 2:45 and notice that he can add notes from specific tabs to the little extension that he has. He is obviously doing it manually but surely there is a way of programming it to do it automatically? 
 
Or there is "TabJump - Intelligent Tab Navigator"
Which tells you the tab that you use the most or something like that. Perhaps it is possible to design an extension that allows to navigate to a tab where there are word matches from the script? 

ps: The extension doesn't have to specifically PIN a tab, but I just figured it might be easiest. For example it can just tell you which tabs contain word matches from the script. You know what I mean? 

Edited by donovanrules1234, 24 April 2015 - 09:47 PM.


#4 Neoquest

Neoquest
  • 1760 posts


Users Awards

Posted 24 April 2015 - 10:15 PM

Well, here's the part of the chrome API that seems to do exactly what you want:
https://developer.ch...extensions/tabs

However, I don't actually know anything about tampermonkey or Javascript in general, so I don't know if the chrome API is accessible outside of chrome extensions. If it is, implementing this tabbing feature should be trivial.

Well, it seems like you can't actually access the chrome API unless it's an extension.


Edited by Neoquest, 24 April 2015 - 10:23 PM.


#5 donovanrules1234

donovanrules1234
  • 11 posts

Posted 24 April 2015 - 10:26 PM

Thanks. I came across that before. And since I don't know jack shit about programming I don't know what to do with that information either =D

But if it is helpful to anybody who knows programming then please take a look =D

 

Another extension that may be even better than what I have listed above can be found here:

http://www.upway2lat...dow-tab-manager

You can use it to refresh all yours tabs and stuff. Now if someone could only add/program it to find a list of keywords and to tell you that they match then that would be great.

 

I'm just using all of these extensions as examples which may help for you guys to think of ways of creating this script/extension to find keywords and tell which tabs you found them in. I hope all this has been helpful.

So yeah, if anybody has any progress then please post



#6 Neoquest

Neoquest
  • 1760 posts


Users Awards

Posted 25 April 2015 - 12:47 PM

Nobody's just going to do all the work for you...



#7 donovanrules1234

donovanrules1234
  • 11 posts

Posted 25 April 2015 - 02:43 PM

Nobody's just going to do all the work for you...

 

It wouldn't just be for me. It would be for the entire community. And also, true programmers love challenges ;) 



#8 Neoquest

Neoquest
  • 1760 posts


Users Awards

Posted 25 April 2015 - 02:50 PM

The entire community uses Abrosia, not some shoddy mass refresh method. Good luck getting a "true programmer" to work on your "challenge".



#9 Pyro699

Pyro699
  • 1543 posts


Users Awards

Posted 25 April 2015 - 06:22 PM

It wouldn't just be for me. It would be for the entire community. And also, true programmers love challenges ;)

True programmers love to get paid.

#10 donovanrules1234

donovanrules1234
  • 11 posts

Posted 25 April 2015 - 08:43 PM

The entire community uses Abrosia, not some shoddy mass refresh method. Good luck getting a "true programmer" to work on your "challenge".

 

True programmers love to get paid.

 

I thank you both for your contribution to this thread. 




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users