Question regarding extensions for the browser?


Warning: count(): Parameter must be an array or an object that implements Countable in /home/styllloz/public_html/qa-theme/donut-theme/qa-donut-layer.php on line 274
0 like 0 dislike
5 views
If there is an extension for firefox (for example) receiving data from any site whether the js for a random website to obtain the same information by running the same query?


P. S. unfortunately my knowledge of browser extensions is almost zero, imagine how they are arranged only approximately. Js is much better, but still far from ideal. Please do not beat for krivokolenny question.
by | 5 views

2 Answers

0 like 0 dislike
If there is an extension for Firefox (for example) that retrieves data from any site whether the JS for a random website to obtain the same information by running the same query?
The question is vague and allows multiple interpretations.
\r
\r

\rInterpretation of the first. If the extension of Fayerfoks gets data from a website, it is possible to change the JS code of the extension, thus, to obtain similar information for a random other site?
\r
Maybe you can... but maybe not released.
\r
It depends on the shape and purpose of the request.
\r
A simple example is the expansion of the "Abrahamic", which on Habrahabr gets the value of the karma rating through abrahamovce API. And it will not allow you to get the rating value on the website FreeLance.Ru by running the same query — because "Freelance" nope because same abrahamovich API.
\r
Another example: imagine an extension that gets the icon of the site using a common Protocol, that is, first it downloads the front page, then looks in her element (or even ) and picks out from it the URL of the icon. This extension will allow you to obtain a badge from another site using the same query — because the Protocol is the same.
\r
\r

\rThe interpretation of the second. If the extension of Fayerfoks gets data from a website, it is possible to implement some random other site Java script that will work on the website and get this website the same information that is received by the JS code of the extension working in Fayerfoks?
\r
The answer is likely negative. In the browser applies the requirement of common descent in relation to Java script and the resources to which Java script refers. Accordingly, if the website from which the data is received, not taken special measures, the JavaScript from another site will not be able to get the data.
by
0 like 0 dislike
Can.
by
110,608 questions
257,186 answers
0 comments
25,709 users