This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* THIS NEEDS TO BE MODIFIED TO ACTUALLY RUN IN SERPS */ | |
/* | |
// It requires seoquake extension to be ready, and it still needs to import jquery in no conflict to work. This is for testing currently. | |
*/ | |
// appending 2 csv - split(/\r\n/), loop through arrays adding lines, then join('\r\n'); | |
var seo_quake_val = '"Url";"Google pagerank";"Google index";"SEMrush links";"SEMrush linkdomain";"Bing index";"Alexa rank";"Webarchive age";"Whois";"Page source";"SEMrush Rank"\r\n"http://www.fourthchurch.org/";"4";"4,130";"385";"938";"n/a";"1687507";"December 1, 1998";"whois";"source";"n/a"\r\n"http://www.chicagopresbytery.org/church-list/";"2";"4,020";"1";"442";"n/a";"n/a";"October 13, 1999";"whois";"source";"n/a"\r\n"http://www.chicagopresbytery.org/";"4";"4,020";"308";"442";"n/a";"n/a";"October 13, 1999";"whois";"source";"n/a"\r\n"http://www.covenantchicago.org/";"3";"57";"147";"158";"n/a";"n/a";"April 29, 2001";"whois";"source";"n/a"\r\n"http://en.wikipedia.org/wiki/Fourth_Presbyterian_Church_(Chicago)";"0" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// *** Selector - instead find moz iframe, then .closest('li') for more reliability | |
// *** Work with Oop Version and Test Driven Development | |
/* | |
Default save |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Still a work in progress */ | |
// Never mind $('#search iframe').src has all the vals I need Gah!!! | |
// Snap. Make the call to my own server, passing in all the necessary serp info, then the php request to Moz. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// even/odd, classes, filters | |
var args = { | |
tableId:'', | |
firstRowHeaders:false, | |
} | |
function generate_html_table(data, args){ | |
if(data === 'undefined' || !data || !data[0]){ | |
return 'No Vals set. Ensure it's array or array of objects, or json string'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// stop words listed at end | |
// parse, then filter out empty ones. Remove apostrphes both from stop words and search term | |
// Value based on if term exists and how close it is to the beginning, based on linear weight. | |
var search_term = 'seo serp bookmarklet'; | |
var serp_title = 'my seo serp bookmarklet for title value'; | |
// remove stop words | |
search_term = remove_stop_words(search_term); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
// Tabelizer for Contract Table? - http://www.jqueryrain.com/?pl_6d8jV | |
// CSS flow! - Snippets - http://www.cssflow.com/snippets/ | |
// better wordcloud - https://github.com/lucaong/jQCloud | |
// navigation and options styles awesomeness - codepen |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use this to learn Test Driven Development | |
// Also read up on best practices for Oop Javascript. | |
// private and public vars and methods: http://phrogz.net/JS/classes/OOPinJS.html | |
// how prefix it? ss // serp scrape? // mqc moz quake csv | |
function serpToCsv(options){ | |
// Private Properties |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// more thorough explanation and version to share: http://jsfiddle.net/ydj56zy3/5/ | |
/* | |
// variable selector for grabbing ads, extra iframes? | |
// prompt for selector. Button to add back all elements and try again? | |
// if nothing else, color background black. | |
// find table elements as well. | |
Bookmarklet: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Find the active plugins, save to array */ | |
$=jQuery; | |
plugin_states = []; | |
$('.row-actions-visible').each(function(i){ | |
// save state which is set as class "activate" or "deactivate" | |
plugin_state_class = $(this).children().eq(0).attr('class'); | |
plugin_states.push(plugin_state_class); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Advantages | |
Add data in any format. Associative, numberic, multiple rows, single rows, etc | |
Allows to add data and display in two methods. | |
Flexibility, extensibility. Any attrs, rows, cells, table, even/odd, etc | |
Filter rows for flexibility in attrs (row thirds, etc), as well as filter data and attrs based on data |
OlderNewer