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
/** | |
* Author: | |
* David Hobson | |
* http://www.virtualidstudios.com | |
* | |
* Goal: Update Google Search to within past year | |
* Details: | |
* While on Google Search Page. | |
* Changing Search options with a Gesture. Current one changes search to within year. | |
* |
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
/* | |
* Author: | |
* David Hobson | |
* http://www.virtualidstudios.com | |
* | |
* Goal: In Wordpress Publish Post with Hotkey or Gesture | |
* Details: | |
* Setup for Firegestures, or script for Bookmarklet. | |
* Use appropriate hotkey method per browser to activate 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
# Removes HTML5 elements | |
# Python regex to turn all html5 elements into div with classes of the same name | |
# Ex. <section> would become <div class="section"> | |
# Do a Python regular expression replace, full support of Python regular expressions | |
editor.pyreplace(r'(\<(footer|section|article|header|nav)([^>]*)\>)', r'<div \3>') | |
#changes </tag> to </div> |
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
// check for jQuery, load 1.9.1 if not there | |
// csv to json - other gist. | |
// html to json - this gist | |
// json to csv and download - https://gist.github.com/Sikwan/4326948 | |
// json to table - ? - setup datatables php to js. filters and all? Booya. | |
// combine all these into a single object? | |
if(typeof jQuery !== 'function'){ |
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 |
OlderNewer