mirror of
https://github.com/webrecorder/pywb.git
synced 2025-03-24 06:59:52 +01:00
wombat work:
- for prototype override, ensure object exists - for domain setter, ensure location exists, default to window rules: expand facebook rule to match fbid also
This commit is contained in:
parent
7ddd3296ad
commit
b2f3a580c2
@ -59,7 +59,8 @@ rules:
|
|||||||
#=================================================================
|
#=================================================================
|
||||||
- url_prefix: 'com,facebook)/ajax/pagelet/generic.php/'
|
- url_prefix: 'com,facebook)/ajax/pagelet/generic.php/'
|
||||||
|
|
||||||
fuzzy_lookup: 'com,facebook\)/.*[?&]data=(.*?(?:[&]|query_type[^,]+))'
|
#fuzzy_lookup: 'com,facebook\)/.*[?&]data=(.*?(?:[&]|query_type[^,]+))'
|
||||||
|
fuzzy_lookup: 'com,facebook\)/.*[?&]data=(.*?(?:[&]|(?:query_type|fbid)[^,]+))'
|
||||||
|
|
||||||
- url_prefix: 'com,facebook)/ajax/ufi/'
|
- url_prefix: 'com,facebook)/ajax/ufi/'
|
||||||
|
|
||||||
|
@ -2138,6 +2138,9 @@ var _WBWombat = function($wbwindow, wbinfo) {
|
|||||||
|
|
||||||
//============================================
|
//============================================
|
||||||
function override_func_this_proxy_to_obj(cls, method) {
|
function override_func_this_proxy_to_obj(cls, method) {
|
||||||
|
if (!cls || !cls.prototype) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
var prototype = cls.prototype;
|
var prototype = cls.prototype;
|
||||||
var orig = prototype[method];
|
var orig = prototype[method];
|
||||||
|
|
||||||
@ -2150,6 +2153,9 @@ var _WBWombat = function($wbwindow, wbinfo) {
|
|||||||
|
|
||||||
//============================================
|
//============================================
|
||||||
function override_func_first_arg_proxy_to_obj(cls, method) {
|
function override_func_first_arg_proxy_to_obj(cls, method) {
|
||||||
|
if (!cls || !cls.prototype) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
var prototype = cls.prototype;
|
var prototype = cls.prototype;
|
||||||
var orig = prototype[method];
|
var orig = prototype[method];
|
||||||
|
|
||||||
@ -2415,7 +2421,9 @@ var _WBWombat = function($wbwindow, wbinfo) {
|
|||||||
|
|
||||||
// domain
|
// domain
|
||||||
var domain_setter = function(val) {
|
var domain_setter = function(val) {
|
||||||
if (ends_with(this._WB_wombat_location.hostname, val)) {
|
var loc = this._WB_wombat_location || this.defaultView._WB_wombat_location;
|
||||||
|
|
||||||
|
if (loc && ends_with(loc.hostname, val)) {
|
||||||
this.__wb_domain = val;
|
this.__wb_domain = val;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user