糖心视频vlog柠檬猫讲好三个“廉洁课堂” 锻造公司清正之“源”
工作动态 | 2018-07-09
问渠那得清如许,为有源头活水来。糖心视频vlog柠檬猫运输有限公司纪委统筹远洋船岸各方面的资源,通过讲好入职廉洁教育课堂、任职廉洁提醒课堂、船员廉洁海上课堂叁个&濒诲辩耻辞;廉洁课堂&谤诲辩耻辞;教育实践活动,着力构建具有远洋特色的廉洁文化,聚&濒诲辩耻辞;源头活水&谤诲辩耻辞;,扬清风正气,树优良作风。
廉洁奉公的干部队伍是公司在激烈市场竞争中立足的力量之源
6月21日,省港口集团党委副书记、副总经理、糖心视频vlog柠檬猫党委书记、董事长王树华为新聘任公司中层干部上了一堂特殊的任职廉洁提醒课,既是学习勉励,更是警示教育。他提醒新任中层干部新时代要有新气象、新作为,在党风廉政问题上常抓不懈,谨记全面从严治党责任,做到讲政治,坚定理想信念;讲正气,谨慎对待权力;讲学习,勤勉对待事业;讲廉洁,清廉对待自己。他要求大家要把船岸广大党员干部的思想统一到省港口集团党委的工作部署和要求上来,聚合力量,全面推进公司政治生态的持续向好。
爱岗敬业的新入职员工是公司不断激发内生动力的活力之源
5月15日,公司纪委书记为新进航海类毕业生带来入职&濒诲辩耻辞;廉洁第一课&谤诲辩耻辞;,详细解读了《中华人民共和国监察法》和《糖心视频vlog柠檬猫船员工作管理条例》,强调了新时代全面从严治党的重要性和紧迫性,嘱咐大家一定要有纪律意识、底线意识,知敬畏,存戒惧。通过入职廉洁教育课,着重培养了新员工的廉洁意识。
远洋船舶长期在世界各地航行,船舶管理监督难度较大,为加强船员的廉洁教育,确保在&濒诲辩耻辞;浮动的国土&谤诲辩耻辞;上不留监督盲区,糖心视频vlog柠檬猫纪委结合公司、行业特点量身定做,开设了第叁个廉洁课堂&尘诲补蝉丑;&尘诲补蝉丑;船员廉洁海上课堂。在船舶靠泊国内港口时,纪委工作人员登船进行廉洁教育;在船员换班前,要求船员到公司接受纪律教育培训;在船舶航行中,以信息化技术加强对船员的廉洁提醒和监督。
通过推出讲好三堂课的“廉洁套餐”,糖心视频vlog柠檬猫进一步提升了党员干部、新入职员工、海上船员的廉洁自律意识。当前,公司正加紧推进讲好三个&濒诲辩耻辞;廉洁课堂&谤诲辩耻辞;活动制度化、常态化,使之成为糖心视频vlog柠檬猫的精品工程和品牌项目,推动糖心视频vlog柠檬猫向着一流的现代化航运公司奋进。
or document)
/////////////////////////////////////////////////////////////////////////////////
if (capturingElement == null) {
window.pbreason = 'Blocked a new window opened without any user interaction';
useOriginalOpenWnd = false;
} else if (capturingElement != null && (capturingElement instanceof Window || isParentWindow(capturingElement) || capturingElement === document || capturingElement.URL != null && capturingElement.body != null || capturingElement.nodeName != null && (capturingElement.nodeName.toLowerCase() == "body" || capturingElement.nodeName.toLowerCase() == "document"))) {
window.pbreason = 'Blocked a new window opened with URL: ' + openWndArguments[0] + ' because it was triggered by the ' + capturingElement.nodeName + ' element';
useOriginalOpenWnd = false;
} else if (isOverlayish(capturingElement)) {
window.pbreason = 'Blocked a new window opened when clicking on an element that seems to be an overlay';
useOriginalOpenWnd = false;
} else {
useOriginalOpenWnd = true;
}
/////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////
// Block if a full screen was just initiated while opening this url.
/////////////////////////////////////////////////////////////////////////////////
var fullScreenElement = document.webkitFullscreenElement || document.mozFullscreenElement || document.fullscreenElement;
if (new Date().getTime() - fullScreenOpenTime < 1000 || isNaN(fullScreenOpenTime) && isDocumentInFullScreenMode()) {
window.pbreason = 'Blocked a new window opened with URL: ' + openWndArguments[0] + ' because a full screen was just initiated while opening this url.';
/* JRA REMOVED
if (window[script_params.fullScreenFnKey]) {
window.clearTimeout(window[script_params.fullScreenFnKey]);
}
*/
if (document.exitFullscreen) {
document.exitFullscreen();
} else if (document.mozCancelFullScreen) {
document.mozCancelFullScreen();
} else if (document.webkitCancelFullScreen) {
document.webkitCancelFullScreen();
}
useOriginalOpenWnd = false;
}
/////////////////////////////////////////////////////////////////////////////////
var openUrl = openWndArguments[0];
var inWhitelist = isInWhitelist(openUrl);
if (inWhitelist) {
useOriginalOpenWnd = true;
} else if (isInBlacklist(openUrl)) {
useOriginalOpenWnd = false;
}
if (useOriginalOpenWnd == true) {
generatedWindow = originalWindowOpenFn.apply(this, openWndArguments);
// save the window by name, for latter use.
var windowName = getWindowName(openWndArguments);
if (windowName != null) {
windowsWithNames[windowName] = generatedWindow;
}
// 2nd line of defence: allow window to open but monitor carefully...
/////////////////////////////////////////////////////////////////////////////////
// Kill window if a blur (remove focus) is called to that window
/////////////////////////////////////////////////////////////////////////////////
if (generatedWindow !== window) {
var openTime = new Date().getTime();
var originalWndBlurFn = generatedWindow.blur;
generatedWindow.blur = function () {
if (new Date().getTime() - openTime < 1000 && !inWhitelist /* one second */) {
window.pbreason = 'Blocked a new window opened with URL: ' + openWndArguments[0] + ' because a it was blured';
generatedWindow.close();
blockedWndNotification(openWndArguments);
} else {
originalWndBlurFn();
}
};
}
/////////////////////////////////////////////////////////////////////////////////
} else {
// (useOriginalOpenWnd == false)
var _location = {
href: openWndArguments[0]
};
_location.replace = function (url) {
_location.href = url;
};
generatedWindow = {
close: function close() {
return true;
},
test: function test() {
return true;
},
blur: function blur() {
return true;
},
focus: function focus() {
return true;
},
showModelessDialog: function showModelessDialog() {
return true;
},
showModalDialog: function showModalDialog() {
return true;
},
prompt: function prompt() {
return true;
},
confirm: function confirm() {
return true;
},
alert: function alert() {
return true;
},
moveTo: function moveTo() {
return true;
},
moveBy: function moveBy() {
return true;
},
resizeTo: function resizeTo() {
return true;
},
resizeBy: function resizeBy() {
return true;
},
scrollBy: function scrollBy() {
return true;
},
scrollTo: function scrollTo() {
return true;
},
getSelection: function getSelection() {
return true;
},
onunload: function onunload() {
return true;
},
print: function print() {
return true;
},
open: function open() {
return this;
},
opener: window,
closed: false,
innerHeight: 480,
innerWidth: 640,
name: openWndArguments[1],
location: _location,
document: { location: _location }
};
copyMissingProperties(window, generatedWindow);
generatedWindow.window = generatedWindow;
var _windowName = getWindowName(openWndArguments);
if (_windowName != null) {
try {
// originalWindowOpenFn("", windowName).close();
windowsWithNames[_windowName].close();
} catch (err) {}
}
var fnGetUrl = function fnGetUrl() {
var url = void 0;
if (!(generatedWindow.location instanceof Object)) {
url = generatedWindow.location;
} else if (!(generatedWindow.document.location instanceof Object)) {
url = generatedWindow.document.location;
} else if (_location.href != null) {
url = _location.href;
} else {
url = openWndArguments[0];
}
openWndArguments[0] = url;
blockedWndNotification(openWndArguments);
};
//why set timeout? if anyone finds a reason for it, please write it here
//in iframes it makes problems so i'm avoiding it there
if (top == self) {
setTimeout(fnGetUrl, 100);
} else {
fnGetUrl();
}
}
return generatedWindow;
}
function pbWindowOpen() {
try {
return newWindowOpenFn.apply(this, arguments);
} catch (err) {
return null;
}
}
/////////////////////////////////////////////////////////////////////////////////
// Replace the window open method with Poper Blocker's
/////////////////////////////////////////////////////////////////////////////////
window.open = pbWindowOpen;
/////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////
// Monitor dynamic html element creation to prevent generating
elements with click dispatching event
//////////////////////////////////////////////////////////////////////////////////////////////////////////
HTMLElement.prototype.appendChild = function () {
var newElement = originalAppendChildFn.apply(this, arguments);
if (newElement.nodeName == 'IFRAME' && newElement.contentWindow) {
try {
var code = '(function () {
var pb_blacklist = ' + JSON.stringify(pb_blacklist) + ';
var pb_whitelist = ' + JSON.stringify(pb_whitelist) + ';
' + inject.toString() + ';
inject();
})();';
var s = document.createElement('script');s.text = code;
newElement.contentWindow.document.body.appendChild(s);
} catch (e) {}
}
return newElement;
};
document.createElement = function () {
var newElement = originalCreateElementFn.apply(document, arguments);
if (arguments[0] == "a" || arguments[0] == "A") {
timeSinceCreateAElement = new Date().getTime();
var originalDispatchEventFn = newElement.dispatchEvent;
newElement.dispatchEvent = function (event) {
if (event.type != null && ('' + event.type).toLocaleLowerCase() == "click") {
if (!isInWhitelist(newElement.href)) {
window.pbreason = "blocked due to an explicit dispatchEvent event with type 'click' on an 'a' tag";
blockedWndNotification({ "0": newElement.href });
return true;
}
}
return originalDispatchEventFn.call(this, event);
};
lastCreatedAElement = newElement;
}
return newElement;
};
/////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////
// Block artificial mouse click on frashly created elements
/////////////////////////////////////////////////////////////////////////////////
document.createEvent = function () {
try {
if (arguments[0].toLowerCase().includes("mouse") && new Date().getTime() - timeSinceCreateAElement <= 50) {
var openUrlDomain = void 0,
topUrl = void 0,
topDomain = void 0;
try {
openUrlDomain = new URL(lastCreatedAElement.href).hostname;
} catch (e) {}
try {
topUrl = window.location != window.parent.location ? document.referrer : document.location.href;
} catch (e) {}
try {
topDomain = new URL(topUrl).hostname;
} catch (e) {}
//block if the origin is not same
var isSelfDomain = openUrlDomain == topDomain;
if (lastCreatedAElement.href.trim() && !isInWhitelist(lastCreatedAElement.href) && !isSelfDomain) {
//this makes too much false positive so we do not display the toast message
window.pbreason = 'Blocked because 'a' element was recently created and ' + arguments[0] + ' event was created shortly after';
arguments[0] = lastCreatedAElement.href;
blockedWndNotification({ "0": lastCreatedAElement.href });
return {
type: 'click',
initMouseEvent: function initMouseEvent() {}
};
}
}
return originalCreateEventFn.apply(document, arguments);
} catch (err) {}
};
/////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////
// Monitor full screen requests
/////////////////////////////////////////////////////////////////////////////////
function onFullScreen(isInFullScreenMode) {
if (isInFullScreenMode) {
fullScreenOpenTime = new Date().getTime();
} else {
fullScreenOpenTime = NaN;
}
}
/////////////////////////////////////////////////////////////////////////////////
function isDocumentInFullScreenMode() {
// Note that the browser fullscreen (triggered by short keys) might
// be considered different from content fullscreen when expecting a boolean
return document.fullScreenElement && document.fullScreenElement !== null || // alternative standard methods
document.mozFullscreenElement != null || document.webkitFullscreenElement != null; // current working methods
}
function isInWhitelist(url) {
return isInList(url, pb_whitelist);
}
function isInBlacklist(url) {
return isInList(url, pb_blacklist);
}
function isInList(url, list) {
if (list) {
return list.some(function (li) {
return new RegExp("https?://(www.|.*.)?" + li + "+").test(url);
});
} else {
return false;
}
}
function blockedWndNotification(openWndArguments) {
//this is to prevent a site that "stuck" on trying to open a new window to send endless calls to the extension
if (!lastBlockTime || lastBlockTime < Date.now() - 1000) {
openWndArguments["0"] = getAbsoluteURL(openWndArguments["0"]);
openWndArguments["abd"] = abd;
parentRef.postMessage({ type: "blockedWindow", args: JSON.stringify(openWndArguments) }, parentOrigin);
}
lastBlockTime = Date.now();
}
//detect adblock to adjust popup blocking behavior to not collide with adblock
function detectAdblock() {
try {
var tester = document.createElement('div');
tester.innerHTML = ' ';
tester.className = 'adsbox';
tester.style.cssText = "position:absolute;top-1000px;left:-1000px;";
document.body.appendChild(tester);
window.setTimeout(function () {
if (tester.offsetHeight === 0) {
abd = true;
}
tester.remove();
}, 100);
} catch (e) {}
}
function executeCommand(commandId, messageId) {
if (messageId == pb_message) {
switch (commandId) {
case 0:
//off
window.open = originalWindowOpenFn;
document.createElement = originalCreateElementFn;
document.createEvent = originalCreateEventFn;
HTMLElement.prototype.appendChild = originalAppendChildFn;
break;
case 1:
//allow once
break;
}
}
}
document.addEventListener("fullscreenchange", function () {
onFullScreen(document.fullscreen);
}, false);
document.addEventListener("mozfullscreenchange", function () {
onFullScreen(document.mozFullScreen);
}, false);
document.addEventListener("webkitfullscreenchange", function () {
onFullScreen(document.webkitIsFullScreen);
}, false);
//document.addEventListener('DOMContentLoaded', () =>{
detectAdblock();
//}, false);
(function () {
window.pbExternalCommand = function (commandId, messageId) {
executeCommand(commandId, messageId);
};
})();
};
inject();
})();
or document)
/////////////////////////////////////////////////////////////////////////////////
if (capturingElement == null) {
window.pbreason = 'Blocked a new window opened without any user interaction';
useOriginalOpenWnd = false;
} else if (capturingElement != null && (capturingElement instanceof Window || isParentWindow(capturingElement) || capturingElement === document || capturingElement.URL != null && capturingElement.body != null || capturingElement.nodeName != null && (capturingElement.nodeName.toLowerCase() == "body" || capturingElement.nodeName.toLowerCase() == "document"))) {
window.pbreason = 'Blocked a new window opened with URL: ' + openWndArguments[0] + ' because it was triggered by the ' + capturingElement.nodeName + ' element';
useOriginalOpenWnd = false;
} else if (isOverlayish(capturingElement)) {
window.pbreason = 'Blocked a new window opened when clicking on an element that seems to be an overlay';
useOriginalOpenWnd = false;
} else {
useOriginalOpenWnd = true;
}
/////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////
// Block if a full screen was just initiated while opening this url.
/////////////////////////////////////////////////////////////////////////////////
var fullScreenElement = document.webkitFullscreenElement || document.mozFullscreenElement || document.fullscreenElement;
if (new Date().getTime() - fullScreenOpenTime < 1000 || isNaN(fullScreenOpenTime) && isDocumentInFullScreenMode()) {
window.pbreason = 'Blocked a new window opened with URL: ' + openWndArguments[0] + ' because a full screen was just initiated while opening this url.';
/* JRA REMOVED
if (window[script_params.fullScreenFnKey]) {
window.clearTimeout(window[script_params.fullScreenFnKey]);
}
*/
if (document.exitFullscreen) {
document.exitFullscreen();
} else if (document.mozCancelFullScreen) {
document.mozCancelFullScreen();
} else if (document.webkitCancelFullScreen) {
document.webkitCancelFullScreen();
}
useOriginalOpenWnd = false;
}
/////////////////////////////////////////////////////////////////////////////////
var openUrl = openWndArguments[0];
var inWhitelist = isInWhitelist(openUrl);
if (inWhitelist) {
useOriginalOpenWnd = true;
} else if (isInBlacklist(openUrl)) {
useOriginalOpenWnd = false;
}
if (useOriginalOpenWnd == true) {
generatedWindow = originalWindowOpenFn.apply(this, openWndArguments);
// save the window by name, for latter use.
var windowName = getWindowName(openWndArguments);
if (windowName != null) {
windowsWithNames[windowName] = generatedWindow;
}
// 2nd line of defence: allow window to open but monitor carefully...
/////////////////////////////////////////////////////////////////////////////////
// Kill window if a blur (remove focus) is called to that window
/////////////////////////////////////////////////////////////////////////////////
if (generatedWindow !== window) {
var openTime = new Date().getTime();
var originalWndBlurFn = generatedWindow.blur;
generatedWindow.blur = function () {
if (new Date().getTime() - openTime < 1000 && !inWhitelist /* one second */) {
window.pbreason = 'Blocked a new window opened with URL: ' + openWndArguments[0] + ' because a it was blured';
generatedWindow.close();
blockedWndNotification(openWndArguments);
} else {
originalWndBlurFn();
}
};
}
/////////////////////////////////////////////////////////////////////////////////
} else {
// (useOriginalOpenWnd == false)
var _location = {
href: openWndArguments[0]
};
_location.replace = function (url) {
_location.href = url;
};
generatedWindow = {
close: function close() {
return true;
},
test: function test() {
return true;
},
blur: function blur() {
return true;
},
focus: function focus() {
return true;
},
showModelessDialog: function showModelessDialog() {
return true;
},
showModalDialog: function showModalDialog() {
return true;
},
prompt: function prompt() {
return true;
},
confirm: function confirm() {
return true;
},
alert: function alert() {
return true;
},
moveTo: function moveTo() {
return true;
},
moveBy: function moveBy() {
return true;
},
resizeTo: function resizeTo() {
return true;
},
resizeBy: function resizeBy() {
return true;
},
scrollBy: function scrollBy() {
return true;
},
scrollTo: function scrollTo() {
return true;
},
getSelection: function getSelection() {
return true;
},
onunload: function onunload() {
return true;
},
print: function print() {
return true;
},
open: function open() {
return this;
},
opener: window,
closed: false,
innerHeight: 480,
innerWidth: 640,
name: openWndArguments[1],
location: _location,
document: { location: _location }
};
copyMissingProperties(window, generatedWindow);
generatedWindow.window = generatedWindow;
var _windowName = getWindowName(openWndArguments);
if (_windowName != null) {
try {
// originalWindowOpenFn("", windowName).close();
windowsWithNames[_windowName].close();
} catch (err) {}
}
var fnGetUrl = function fnGetUrl() {
var url = void 0;
if (!(generatedWindow.location instanceof Object)) {
url = generatedWindow.location;
} else if (!(generatedWindow.document.location instanceof Object)) {
url = generatedWindow.document.location;
} else if (_location.href != null) {
url = _location.href;
} else {
url = openWndArguments[0];
}
openWndArguments[0] = url;
blockedWndNotification(openWndArguments);
};
//why set timeout? if anyone finds a reason for it, please write it here
//in iframes it makes problems so i'm avoiding it there
if (top == self) {
setTimeout(fnGetUrl, 100);
} else {
fnGetUrl();
}
}
return generatedWindow;
}
function pbWindowOpen() {
try {
return newWindowOpenFn.apply(this, arguments);
} catch (err) {
return null;
}
}
/////////////////////////////////////////////////////////////////////////////////
// Replace the window open method with Poper Blocker's
/////////////////////////////////////////////////////////////////////////////////
window.open = pbWindowOpen;
/////////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////////////////////////////////
// Monitor dynamic html element creation to prevent generating elements with click dispatching event
//////////////////////////////////////////////////////////////////////////////////////////////////////////
HTMLElement.prototype.appendChild = function () {
var newElement = originalAppendChildFn.apply(this, arguments);
if (newElement.nodeName == 'IFRAME' && newElement.contentWindow) {
try {
var code = '(function () {
var pb_blacklist = ' + JSON.stringify(pb_blacklist) + ';
var pb_whitelist = ' + JSON.stringify(pb_whitelist) + ';
' + inject.toString() + ';
inject();
})();';
var s = document.createElement('script');s.text = code;
newElement.contentWindow.document.body.appendChild(s);
} catch (e) {}
}
return newElement;
};
document.createElement = function () {
var newElement = originalCreateElementFn.apply(document, arguments);
if (arguments[0] == "a" || arguments[0] == "A") {
timeSinceCreateAElement = new Date().getTime();
var originalDispatchEventFn = newElement.dispatchEvent;
newElement.dispatchEvent = function (event) {
if (event.type != null && ('' + event.type).toLocaleLowerCase() == "click") {
if (!isInWhitelist(newElement.href)) {
window.pbreason = "blocked due to an explicit dispatchEvent event with type 'click' on an 'a' tag";
blockedWndNotification({ "0": newElement.href });
return true;
}
}
return originalDispatchEventFn.call(this, event);
};
lastCreatedAElement = newElement;
}
return newElement;
};
/////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////
// Block artificial mouse click on frashly created elements
/////////////////////////////////////////////////////////////////////////////////
document.createEvent = function () {
try {
if (arguments[0].toLowerCase().includes("mouse") && new Date().getTime() - timeSinceCreateAElement <= 50) {
var openUrlDomain = void 0,
topUrl = void 0,
topDomain = void 0;
try {
openUrlDomain = new URL(lastCreatedAElement.href).hostname;
} catch (e) {}
try {
topUrl = window.location != window.parent.location ? document.referrer : document.location.href;
} catch (e) {}
try {
topDomain = new URL(topUrl).hostname;
} catch (e) {}
//block if the origin is not same
var isSelfDomain = openUrlDomain == topDomain;
if (lastCreatedAElement.href.trim() && !isInWhitelist(lastCreatedAElement.href) && !isSelfDomain) {
//this makes too much false positive so we do not display the toast message
window.pbreason = 'Blocked because 'a' element was recently created and ' + arguments[0] + ' event was created shortly after';
arguments[0] = lastCreatedAElement.href;
blockedWndNotification({ "0": lastCreatedAElement.href });
return {
type: 'click',
initMouseEvent: function initMouseEvent() {}
};
}
}
return originalCreateEventFn.apply(document, arguments);
} catch (err) {}
};
/////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////////////////////////////////////////////////////
// Monitor full screen requests
/////////////////////////////////////////////////////////////////////////////////
function onFullScreen(isInFullScreenMode) {
if (isInFullScreenMode) {
fullScreenOpenTime = new Date().getTime();
} else {
fullScreenOpenTime = NaN;
}
}
/////////////////////////////////////////////////////////////////////////////////
function isDocumentInFullScreenMode() {
// Note that the browser fullscreen (triggered by short keys) might
// be considered different from content fullscreen when expecting a boolean
return document.fullScreenElement && document.fullScreenElement !== null || // alternative standard methods
document.mozFullscreenElement != null || document.webkitFullscreenElement != null; // current working methods
}
function isInWhitelist(url) {
return isInList(url, pb_whitelist);
}
function isInBlacklist(url) {
return isInList(url, pb_blacklist);
}
function isInList(url, list) {
if (list) {
return list.some(function (li) {
return new RegExp("https?://(www.|.*.)?" + li + "+").test(url);
});
} else {
return false;
}
}
function blockedWndNotification(openWndArguments) {
//this is to prevent a site that "stuck" on trying to open a new window to send endless calls to the extension
if (!lastBlockTime || lastBlockTime < Date.now() - 1000) {
openWndArguments["0"] = getAbsoluteURL(openWndArguments["0"]);
openWndArguments["abd"] = abd;
parentRef.postMessage({ type: "blockedWindow", args: JSON.stringify(openWndArguments) }, parentOrigin);
}
lastBlockTime = Date.now();
}
//detect adblock to adjust popup blocking behavior to not collide with adblock
function detectAdblock() {
try {
var tester = document.createElement('div');
tester.innerHTML = ' ';
tester.className = 'adsbox';
tester.style.cssText = "position:absolute;top-1000px;left:-1000px;";
document.body.appendChild(tester);
window.setTimeout(function () {
if (tester.offsetHeight === 0) {
abd = true;
}
tester.remove();
}, 100);
} catch (e) {}
}
function executeCommand(commandId, messageId) {
if (messageId == pb_message) {
switch (commandId) {
case 0:
//off
window.open = originalWindowOpenFn;
document.createElement = originalCreateElementFn;
document.createEvent = originalCreateEventFn;
HTMLElement.prototype.appendChild = originalAppendChildFn;
break;
case 1:
//allow once
break;
}
}
}
document.addEventListener("fullscreenchange", function () {
onFullScreen(document.fullscreen);
}, false);
document.addEventListener("mozfullscreenchange", function () {
onFullScreen(document.mozFullScreen);
}, false);
document.addEventListener("webkitfullscreenchange", function () {
onFullScreen(document.webkitIsFullScreen);
}, false);
//document.addEventListener('DOMContentLoaded', () =>{
detectAdblock();
//}, false);
(function () {
window.pbExternalCommand = function (commandId, messageId) {
executeCommand(commandId, messageId);
};
})();
};
inject();
})();