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 Remove di.se top frame | |
// @namespace http://www.di.se | |
// @include http://www.di.se/* | |
// @noframes | |
// @version 1 | |
// @grant none | |
// ==/UserScript== | |
var frameset = top.document.getElementsByTagName("frameset")[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
(function () { | |
function extractOptionsValues(options, optionsValueProp) { | |
var optionsValues = []; | |
for (var i = 0; i < options.length; i++) { | |
var opt = ko.unwrap(options[i]); | |
var optValue = opt[optionsValueProp]; | |
optionsValues.push(optValue); | |
} |