Run JS on third page

2

I would like to know all possible ways to run a JS (local) on a third page, where my real intention is to manipulate the frontend even to give me the custom view of a page x.

I can already do this using the program Fiddler where it is possible through the " AutoResponder " feature I would replace the existing JS or CSS on a page with my local files, but I would like to know it according to the experience of those who know ... what other ways to do this?

    
asked by anonymous 05.03.2017 / 21:14

2 answers

1

You can inject JavaScript into pages using a feature called userscripts . This is often used, including the GitHub organization with StackOverflow members in Portuguese has some scripts that we have developed to help us on a daily basis. You can see more details in this meta post .

You can use extensions like Tampermonkey (Chrome) and Greasemonkey (Firefox).

Chrome also natively supports the insertion of userscripts , there are details about this in this answer .

    
05.03.2017 / 21:29
0

I would have to think of something like this: Let's say you would have a text box, to type something, such as username:

User Name : <input ... value="Nome">

Now, if you type like this: "onmouseover=" event

<input ... value=" "onmouseover="evento ">

Or something like this: We have a text box, type a browser, if we type such thing, it may appear "No results were found for [searched word]" And if we type: Code, and the browser or other site does not find anything, if it does not have any security, can execute the script. Let's say this is HTML:

<div>Não foi encntrado nenhum resultado para <script>alert("script")</script></div> 

Example 2:

<script type="text/javascript">
function Pesquise(){
/*Script do navegador ou parte de pesquisa de um site*/
document.getElementById("Result").innerHTML  = "Não foi encontrado nenhum resultado para " +  document.getElementById("CaixaPesquisa").value;
}
</script>

<input id="CaixaPesquisa" type="text" value="Código aqui"/><input type="submit" value="Pesquisar" onclick="Pesquise();"/>

<div id="Result">

</div>
    
23.08.2017 / 00:39