Stepstone.de: Block popup and slider

Overwrites window.open method used for the popup so no popup will be opened. You can disable the window.open overwrite function and the popup will be closed during load thanks to the @run-at document-start property.

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

// ==UserScript==
// @name           Stepstone.de: Block popup and slider
// @namespace      localhost
// @description    Overwrites window.open method used for the popup so no popup will be opened. You can disable the window.open overwrite function and the popup will be closed during load thanks to the @run-at document-start property.

// @include        *.stepstone.*
// @run-at         document-end

// @author         lukie80
// @copyright      Creative Commons Attribution-ShareAlike 3.0 (CC-BY-SA 3.0)
// @license        http://creativecommons.org/licenses/by-sa/3.0/
// @version        1.2
// @lastupdated    2016.06.15
// 
// ==/UserScript==
//-------------------------------------------------------------------------------------------------------------------

// Overwrite window.open function on base page - prevents popup
window.open = function(){
  return;
};


// Close this window if it is a popup - not necessary, keep here for educational purposes or backup
var titles = new Array(
  "Aktuelle Jobs zu Ihrer Suche", //you can put other titles of the popup window in this array
  "Jobs per E−Mail",
  "Jobs per E−Mail" //this "minus" is not the minus character
);
for (var i = 0; i < titles.length; i++){
  if (document.title == titles[i]){
    window.close();
  }
}

//delete slider
if(document.getElementById("jaSlider")){
    document.getElementById("jaSlider").remove();
}

if(document.getElementsByClassName("slider affix-top")[0]){
    document.getElementsByClassName("slider affix-top")[0].remove();
}


//-------------------------------------------------------------------------------------------------------------------