Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Job Master
- // @namespace http://tampermonkey.net/
- // @version 0.1
- // @description try to take over the world!
- // @author You
- // @match http://jobstatus.adlightning.com.s3-website-us-east-1.amazonaws.com/
- // @require http://code.jquery.com/jquery-3.3.1.min.js
- // @grant none
- // ==/UserScript==
- (function() {
- 'use strict';
- $(document).ready(function() {
- $("body").on("click","tr.md-row td.md-cell",function() {
- /*
- var text = $(this).find('input').val()?$(this).find('input').val():$(this).text();
- var input = $('<input />', { type: 'text', readonly: 'readonly', class: 'md-input md-select-value', value: text, on:{ select: function(){ this.select(); }, blur: function(){ $(this).parent().html(this.value); }, copy: function(){ $('.md-errors-spacer').text($(this).val()+' copied').css('color','#0a0'); } }});
- $(this).attr('data-inject',text);
- $(this).html(input);
- $(this).find('input').select();
- */
- var tab = '<table cellpadding="5" cellspacing="0" style="border:1px #ddd solid;font-size:13px;">';
- $('.md-dialog-content b.ng-binding').each(function(index){
- $(this).parentsUntil(".layout-column").each(function(){
- if($(this).parent().find('h4').eq(0).text()=='WhoIs Data'){ tab+='<tr><td colspan="2" style="text-align:center;"><b>Whois Data</b><td></tr>'; $(this).parent().find('h4').eq(0).remove(); $(this).remove(); }
- });
- tab+='<tr><td><b style="text-transform:capitalize;">'+$(this).text().replace('_',' ')+'</b></td>';
- var parent = $(this).parent();
- var child_link = $('a',parent).attr('href');
- var div_s = '<div onselect="(function(){document.execCommand(\'copy\',false,null);})();" style="-webkit-user-select: all;user-select: all;border-top:0px;width:100%;">';
- var text = '';
- if(typeof child_link!='undefined' && child_link!=''){
- var border_bottom = "border-bottom:0px!important;";
- var main_value = $(this).parent().text().replace($(this).text(),'');
- text = '<a href="'+child_link+'" style="font-size:10px;">'+main_value+'</a>';
- text+= '</div></td></tr><tr><td></td><td style="border:1px solid #ddd;border-top:0px;">'+div_s+child_link+'</div></td></tr>';
- } else {
- text = $(this).parent().text().replace($(this).text(),'');
- }
- tab+='<td style="-webkit-user-select: all;user-select: all;border:1px solid #ddd;'+border_bottom+'" onmouseover="this.click()">'+div_s+text+'</div></td></tr>';
- if(index!=0){ $(this).parent().remove(); }else{ $(this).replaceWith('<div class="raavitab"></div>'); }
- });
- tab += '</table>';
- $('.raavitab').html(tab);
- $('md-dialog-content div.layout-align-center-center').css({'position':'absolute','top':'60px','left':'0px','z-index':'999','width':'100%','background':'white'});
- $('div.layout-align-center-center .md-button').css({'background':'#008FFB','color':'#fff'});
- $('div.layout-column.flex-50 textarea').attr('rows','10');
- if($('div.layout-column.flex-50 textarea').html()==''){$('div.layout-column.flex-50 textarea').html('Findings:'+"\n\n\n"+'Investigation Report:'+"\n");}
- }).on("mouseout","tr.md-row td:first-child .md-cell",function(){
- /*$(this).html($(this).attr('data-inject'));*/
- });
- function callRemover() {
- }
- });
- // Your code here...
- })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement