This file contains hidden or 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
<csp:comment> | |
/// @param: Category/subcategory id. Required. | |
/// @return: Category/subcategory name. | |
</csp:comment> | |
<script language="cache" method="catName" arguments='id:%String=""' returntype="%String" procedureblock="1"> | |
//---------------------------------- | |
// Initialize: | |
//---------------------------------- |
This file contains hidden or 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
<script language="cache" method="byline" arguments="cmsStory:dt.cms.schema.CMSStory=-1, org:%Boolean=0" returntype="%String" procedureblock="1"> | |
/* | |
<dti:story:element:exist field="WebByline1"> | |
<p class="Bylines-Byline1"><dti:story:element field="WebByline1" extract="textonly" /></p> | |
<dti:story:element:exist field="WebByline2"> | |
<p class="Bylines-Byline2"><dti:story:element field="WebByline2" extract="textonly" /></p> | |
</dti:story:element:exist> | |
<dti:else> | |
<dti:story:element:exist field="Byline"> |
This file contains hidden or 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
<script language="cache" method="cmsPubTracking" arguments='cmsStory:dt.cms.schema.CMSStory=-1, latest:%Integer=0' returntype="%TimeStamp" procedureblock="1"> | |
set return = "" | |
; By default, get the oldest entry: | |
set order = $case(latest, 1:"DESC", :"ASC") | |
try { | |
; See Roberto's and Sungung's replies: |
This file contains hidden or 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
<script language="cache" method="meta" arguments='pictureObj:dt.cms.schema.CMSPicture=-1, item:%String=""' returntype="%String" procedureblock="1"> | |
/** | |
* Get picture meta. | |
* Formerly: pick | |
* | |
* @param object | |
* @return string | |
*/ | |
This file contains hidden or 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
<script language="cache" method="getimagesize" arguments='stream:%Stream' returntype="%List" procedureblock="1"> | |
/** | |
* Get image size. | |
* | |
* @param stream | |
* @return string | |
*/ | |
; Code by Alexander Riemer |
This file contains hidden or 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 Remove All Gmail Ads | |
// @description Removes all ads in Gmail, including Web Clips | |
// @version 1.3 | |
// @namespace oyvey | |
// @include http*://mail.google.com/* | |
// @match http://mail.google.com/* | |
// @match https://mail.google.com/* | |
// ==/UserScript== |
This file contains hidden or 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 Google "2-step verification" fix: Uncheck "don't ask" and never "trust (this) device". | |
// @namespace http://mky.io | |
// @include https://accounts.google.com/signin* | |
// @description When "2-step verfication" is turned on, this disables the "Don't ask again on this computer" checkbox. | |
// @grant none | |
// @version 20160728 | |
// ==/UserScript== | |
(function() { |
This file contains hidden or 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 gulp = require('gulp'); | |
var coffee = require('gulp-coffee'); | |
var concat = require('gulp-concat'); | |
var uglify = require('gulp-uglify'); | |
var imagemin = require('gulp-imagemin'); | |
var del = require('del'); | |
var paths = { |
This file contains hidden or 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
/** | |
* Site Skin background ad. | |
* | |
* Example: | |
* | |
* <a id="skin" href="http://www.google.com"></a> | |
*/ | |
/*----------------------------------( GLOBALS )----------------------------------*/ |
This file contains hidden or 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
/** | |
* Plugin example using pure javascript. | |
* | |
* Patterns used: "closure", "alias" and "namespace extension". | |
* | |
* @see http://stackoverflow.com/a/12774919/922323 | |
* @param {object} stub | |
* @param {object} window | |
* @param {object} document | |
* @param {undefined} undefined |