Created
July 4, 2012 08:18
-
-
Save netsi1964/3046051 to your computer and use it in GitHub Desktop.
DW Various javascript scripts
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 deviceInfo = { | |
'IsTablet': !!'<!--@Global:Device.IsMobile-->', | |
'IsDesktop': !!'<!--@Global:Device.IsDesktop-->', | |
'IsBot': !!'<!--@Global:Device.IsBot-->', | |
'IsAndroid': !!'<!--@Global:Device.IsAndroid-->', | |
'IsIOS': !!'<!--@Global:Device.IsIOS-->', | |
'IsWindows': !!'<!--@Global:Device.IsWindows-->', | |
'IsOther': !!'<!--@Global:Device.IsOther-->', | |
'IsIPhone': !!'<!--@Global:Device.IsIPhone-->', | |
'IsAndroidPhone': !!'<!--@Global:Device.IsAndroidPhone-->', | |
'IsWindowsPhone': !!'<!--@Global:Device.IsWindowsPhone-->', | |
'IsIPad': !!'<!--@Global:Device.IsIPad-->', | |
'IsAndroidTablet': !!'<!--@Global:Device.IsAndroidTablet-->', | |
'IsWindowsTablet': !!'<!--@Global:Device.IsWindowsTablet-->' | |
}; |
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 DynamicwebCMSScripts.user.js | |
// @description Makes working with CMS backend easier | |
// @author Sten Hougaard, @netsi1964 | |
// @namespace dwfeatures.com | |
// @include http://*/Admin/Content/Management/QueryAnalyzer/Editor.aspx | |
// ==/UserScript== | |
(function () { | |
var sql = document.querySelector('#txtSql_cp'); | |
if (sql!==null) { | |
sql.disabled = ''; | |
sql.style.cssText = 'width: 100%;height: 300px;background-color: rgb(0, 0, 0);color: white;font-family: monospace;letter-spacing: .11em;font-size: 1.25em;padding: 0.8em;'; | |
} | |
})(); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment