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
// ==UserScript== | |
// @name Add PayPal offers | |
// @namespace http://tampermonkey.net/ | |
// @version 2024-04-02 | |
// @description - _- | |
// @author Art Chen | |
// @match https://www.paypal.com/shopping* | |
// @match https://www.paypal.com/offers* | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=paypal.com | |
// @grant none |
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
// ==UserScript== | |
// @name Add Chase offers | |
// @namespace http://tampermonkey.net/ | |
// @version 2024-10-20 | |
// @description - _- | |
// @author Art Chen | |
// @match https://secure.chase.com/web/auth/dashboard | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=chase.com | |
// @grant none | |
// ==/UserScript== |
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
// ==UserScript== | |
// @name Add AMEX offers | |
// @namespace http://tampermonkey.net/ | |
// @version 2024-03-15 | |
// @description - _- | |
// @author Art Chen | |
// @match https://global.americanexpress.com/offers/eligible | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=americanexpress.com | |
// @grant none | |
// ==/UserScript== |
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
/** | |
* Search by Azure Search API | |
* @param options : (object) | |
*/ | |
var AzureSearch = function(options) { | |
SearchService.apply(this, arguments); | |
var self = this; | |
var endpoint = "https://" +self.config.serviceName+ ".search.windows.net/indexes/" +self.config.indexName+ "/docs?api-version=2015-02-28"; | |
self.nav.current = 1; | |
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
/** | |
* Search by Algolia Search | |
* @param options : (object) | |
*/ | |
var AlgoliaSearch = function(options) { | |
SearchService.apply(this, arguments); | |
var self = this; | |
var endpoint = "https://" +options.appId+ ".algolia.net/1/indexes/" +options.indexName; | |
/** |
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
/** | |
* Search by Hexo generator json content | |
* @param options : (object) | |
*/ | |
var HexoSearch = function(options) { | |
SearchService.apply(this, arguments); | |
var self = this; | |
var endpoint = "/content.json"; | |
self.cache = ""; | |
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
/** | |
* Search by Google Custom Search Engine JSON API | |
* @param options : (object) | |
*/ | |
var GoogleCustomSearch = function(options) { | |
SearchService.apply(this, arguments); | |
var self = this; | |
var endpoint = "https://www.googleapis.com/customsearch/v1"; | |
/** |
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
var SearchService = ""; | |
(function($) { | |
/** | |
* A super class of common logics for all search services | |
* @param options : (object) | |
*/ | |
SearchService = function(options) { | |
var self = this; | |
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
@material-red: #f44336; | |
@material-pink: #E91E63; | |
@material-purple: #9c27b0; | |
@material-deep-purple: #673ab7; | |
@material-indigo: #3f51b5; | |
@material-blue: #2196f3; | |
@material-teal: #009688; | |
@material-green: #4caf50; | |
@material-light-green: #8bc34a; | |
@material-orange: #ff9800; |
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
<!-- Search Form --> | |
<form id="searchform" class="searchform" name="searchform"> | |
<input type="text" class="search_input" /> | |
<button type="submit" class="search-button"> | |
<span class="icon icon-search"></span> | |
</button> | |
</form> | |
<!-- Search Result Modal --> | |
<div id="modal-search"> |