Code Monkey home page Code Monkey logo

Comments (6)

AnthonyZJiang avatar AnthonyZJiang commented on August 22, 2024 1

I plan to update the extension to use different hosted UA sources, perhaps two to start with, where one is a tested stable UA hosted in the extension (this) repo, and the other is updatedUA. The extension should only look for alternative UA when the stable UA stops working. Then I shall update the stable UA. It may worthwhile to host historical UAs too for the extension to loop through to check.

The problem with the updatedUA is the website blocks scraping scripts, so I only schedule to run the script once a week. Apparently, the previous UA has been blocked already and the next scheduled update is next Monday...

from microsoft-reward-chrome-ext.

666dsa666 avatar 666dsa666 commented on August 22, 2024

Useragent has been updated.

You can Temporarly update utility.js to use
https://raw.githubusercontent.com/666dsa666/UpdatedUserAgents/master/useragents.json
I will probably not update it or run the script unless I really need it and will be back to tmxk1n version as soon as the script has been ran.
(I have no idea how many things on github works but I believe some scripts can be ran automatically by github servers that may be an idea ?)

Another way would be forking the script from tmxkn1 and run it yourself and update the same file (utility.js) to route the script to your fork.

tmxk1n made it really easy to maintain and update so you should ;)

from microsoft-reward-chrome-ext.

TrialMacameau avatar TrialMacameau commented on August 22, 2024

Much appreciated. Maybe I should.

So Basically I need to install Python, fork the UserAgent repo, download it and run the script to get the updated version of the UserAgent ?

Does the Version of Python need to be specific or I can use the latest version ?

I'm dumb... after installing what I need I just need to launch main.py and update useragents.json

I forked your repo though but I might get the tmxk1n repo now that I know what to do. I just need to Pull a request to update which he needs to approve.

from microsoft-reward-chrome-ext.

steverethink avatar steverethink commented on August 22, 2024

first of all, thanks for the updated useragents.json @666dsa666. seems to be working just fine.

@TrialMacameau you shouldn't have to install python or do anything of the sort. you just need to update the url thats inside utility.js.

if you still have the extension downloaded, just go to /src/utility.js and change the json file url on line 106 to this:

const fetchProm = fetch('https://raw.githubusercontent.com/666dsa666/UpdatedUserAgents/master/useragents.json', {method: 'GET', signal: signal});

save it, and then re-install the extension. it should work again. its a temp fix obviously until the main repo is updated.

from microsoft-reward-chrome-ext.

AnthonyZJiang avatar AnthonyZJiang commented on August 22, 2024

I believe some scripts can be ran automatically by github servers

Could be an awesome idea. I haven't looked into this, but there is Github action that might do something like this. I know there are third-party services that can do this too but may involve payment. I need to allocate time to look into this.

from microsoft-reward-chrome-ext.

TrialMacameau avatar TrialMacameau commented on August 22, 2024

@TrialMacameau you shouldn't have to install python or do anything of the sort. you just need to update the url thats inside utility.js.

I mean it doesn't hurt to have a new contributor to it until there's an updated version of the extension

from microsoft-reward-chrome-ext.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.